diff options
author | Andi Kleen <[email protected]> | 2009-05-06 16:02:53 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-05-06 16:36:09 -0700 |
commit | 57adc4d2dbf968fdbe516359688094eef4d46581 (patch) | |
tree | 69e84c0feb47f0d6b677266d12635f54636528d7 /net/unix/af_unix.c | |
parent | 429aa0fca0df702fc9c81d799175a7d920398827 (diff) |
Eliminate thousands of warnings with gcc 3.2 build
When building with gcc 3.2 I get thousands of warnings such as
include/linux/gfp.h: In function `allocflags_to_migratetype':
include/linux/gfp.h:105: warning: null format string
due to passing a NULL format string to warn_slowpath() in
#define __WARN() warn_slowpath(__FILE__, __LINE__, NULL)
Split this case out into a separate call. This also shrinks the kernel
slightly:
text data bss dec hex filename
4802274 707668 712704 6222646 5ef336 vmlinux
text data bss dec hex filename
4799027 703572 712704 6215303 5ed687 vmlinux
due to removeing one argument from the commonly-called __WARN().
[[email protected]: reduce scope of `empty']
Acked-by: Jesper Nilsson <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Arjan van de Ven <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions