aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-03-28 04:56:20 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-28 12:16:02 -0500
commitf83ca9fe3ee390755f18b4a7780c25ce593b484a (patch)
tree7517b8739a05218690ff421f78820d46728908f1 /kernel
parent6d9eac34104654aa129e365b8d48bbb8c957f186 (diff)
[PATCH] symversion warning fix
gcc-4.2: kernel/module.c: In function '__find_symbol': kernel/module.c:158: warning: the address of '__start___kcrctab', will always evaluate as 'true' kernel/module.c:165: warning: the address of '__start___kcrctab_gpl', will always evaluate as 'true' kernel/module.c:182: warning: the address of '__start___kcrctab_gpl_future', will always evaluate as 'true' Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c
index 4fafd58038a0..bd088a7c1499 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -127,7 +127,7 @@ extern const unsigned long __start___kcrctab_gpl_future[];
127#ifndef CONFIG_MODVERSIONS 127#ifndef CONFIG_MODVERSIONS
128#define symversion(base, idx) NULL 128#define symversion(base, idx) NULL
129#else 129#else
130#define symversion(base, idx) ((base) ? ((base) + (idx)) : NULL) 130#define symversion(base, idx) ((base != NULL) ? ((base) + (idx)) : NULL)
131#endif 131#endif
132 132
133/* lookup symbol in given range of kernel_symbols */ 133/* lookup symbol in given range of kernel_symbols */