projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fa0772
)
include/linux/kmemcheck.h: fix a trillion warnings
author
Andrew Morton
<
[email protected]
>
Tue, 22 Sep 2009 23:43:27 +0000
(16:43 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 23 Sep 2009 14:39:27 +0000
(07:39 -0700)
of the form
include/net/inet_sock.h:208: warning: ISO C90 forbids mixed declarations and code
Cc: Johannes Berg <
[email protected]
>
Acked-by: Vegard Nossum <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/kmemcheck.h
patch
|
blob
|
history
diff --git
a/include/linux/kmemcheck.h
b/include/linux/kmemcheck.h
index c8006607f947e74048fbf54be2263948c7a46e39..136cdcdf92ef474a438c7767c1541b38036cef90 100644
(file)
--- 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)
#define kmemcheck_annotate_bitfield(ptr, name) \
do { \
+ int _n; \
+ \
if (!ptr) \
break; \
\
-
int _n = (long) &((ptr)->name##_end)
\
+
_n = (long) &((ptr)->name##_end)
\
- (long) &((ptr)->name##_begin); \
BUILD_BUG_ON(_n < 0); \
\