diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2009-09-22 19:43:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:27 -0400 |
commit | fa081b00a80ef3f4575c99af6e97d29e1628cf51 (patch) | |
tree | 7124419e4f0bb4789d2c2e3b909dc1046c2bbe20 /include/linux/kmemcheck.h | |
parent | 7fa07729e439a6184bd824746d06a49cca553f15 (diff) |
include/linux/kmemcheck.h: fix a trillion warnings
of the form
include/net/inet_sock.h:208: warning: ISO C90 forbids mixed declarations and code
Cc: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/kmemcheck.h')
-rw-r--r-- | include/linux/kmemcheck.h | 4 |
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 | \ |