backports: add fixed version of __verify_pcpu_ptr
PATCH 1/1 backports: add fixed version of __verify_pcpu_ptr
From: Johannes Berg <[email protected]>
Some parts of the code (ath_cmn_is_fft_buf_full) use a per-CPU pointer to an array, so we need to backport the fixed version or this fails to compile in 3.10/3.11.
Signed-off-by Johannes Berg <[email protected]>
--- backport/backport-include/linux/percpu-defs.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 backport/backport-include/linux/percpu-defs.h
backport/backport-include/linux/percpu-defs.h new file +13 -0
@@ -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 */
Signature · 4 lines
2.14.2 -- To unsubscribe from this list: send the line "unsubscribe backports" in