diff options
Diffstat (limited to 'backport-include/linux/percpu-defs.h')
-rw-r--r-- | backport-include/linux/percpu-defs.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/backport-include/linux/percpu-defs.h b/backport-include/linux/percpu-defs.h new file mode 100644 index 0000000..87a92e0 --- /dev/null +++ b/backport-include/linux/percpu-defs.h @@ -0,0 +1,13 @@ +#ifndef __BACKPORT_PERCPU_DEFS_H +#define __BACKPORT_PERCPU_DEFS_H +#include_next <linux/percpu-defs.h> + +/* override this with the array-safe version */ +#undef __verify_pcpu_ptr +#define __verify_pcpu_ptr(ptr) \ +do { \ + const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \ + (void)__vpp_verify; \ +} while (0) + +#endif /* __BACKPORT_PERCPU_DEFS_H */ |