aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/kmemcheck.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/kmemcheck.h b/include/linux/kmemcheck.h
index c8006607f947..136cdcdf92ef 100644
--- a/include/linux/kmemcheck.h
+++ b/include/linux/kmemcheck.h
@@ -145,10 +145,12 @@ static inline bool kmemcheck_is_obj_initialized(unsigned long addr, size_t size)
145 145
146#define kmemcheck_annotate_bitfield(ptr, name) \ 146#define kmemcheck_annotate_bitfield(ptr, name) \
147 do { \ 147 do { \
148 int _n; \
149 \
148 if (!ptr) \ 150 if (!ptr) \
149 break; \ 151 break; \
150 \ 152 \
151 int _n = (long) &((ptr)->name##_end) \ 153 _n = (long) &((ptr)->name##_end) \
152 - (long) &((ptr)->name##_begin); \ 154 - (long) &((ptr)->name##_begin); \
153 BUILD_BUG_ON(_n < 0); \ 155 BUILD_BUG_ON(_n < 0); \
154 \ 156 \