diff options
Diffstat (limited to 'include/linux/kmemcheck.h')
-rw-r--r-- | include/linux/kmemcheck.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/kmemcheck.h b/include/linux/kmemcheck.h index 47b39b7c7e84..06c6c5501f13 100644 --- a/include/linux/kmemcheck.h +++ b/include/linux/kmemcheck.h | |||
@@ -137,7 +137,10 @@ static inline void kmemcheck_mark_initialized_pages(struct page *p, | |||
137 | int name##_end[0]; | 137 | int name##_end[0]; |
138 | 138 | ||
139 | #define kmemcheck_annotate_bitfield(ptr, name) \ | 139 | #define kmemcheck_annotate_bitfield(ptr, name) \ |
140 | do if (ptr) { \ | 140 | do { \ |
141 | if (!ptr) \ | ||
142 | break; \ | ||
143 | \ | ||
141 | int _n = (long) &((ptr)->name##_end) \ | 144 | int _n = (long) &((ptr)->name##_end) \ |
142 | - (long) &((ptr)->name##_begin); \ | 145 | - (long) &((ptr)->name##_begin); \ |
143 | BUILD_BUG_ON(_n < 0); \ | 146 | BUILD_BUG_ON(_n < 0); \ |