Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa081b00 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

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: default avatarVegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7fa07729
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);					\
									\