* [patch] gcc-3.3 warns about 2.5.59 EXPORT_SYMBOL
@ 2003-01-23 14:37 Arnd Bergmann
0 siblings, 0 replies; only message in thread
From: Arnd Bergmann @ 2003-01-23 14:37 UTC (permalink / raw)
To: linux-kernel; +Cc: Rusty Russell
When building linux-2.5.59 with gcc-3.3 (on s390, if that matters),
I get a warning like "warning: `__ksymtab___foo' defined but
not used" each time that EXPORT_SYMBOL is used.
The patch below fixes this.
Arnd <><
--- ./include/linux/module.h 17 Jan 2003 13:46:37 -0000 1.15
+++ ./include/linux/module.h 23 Jan 2003 14:53:06 -0000
@@ -145,7 +145,7 @@
__attribute__((section("__ksymtab_strings"))) \
= MODULE_SYMBOL_PREFIX #sym; \
static const struct kernel_symbol __ksymtab_##sym \
- __attribute__((section("__ksymtab"))) \
+ __attribute__((section("__ksymtab"),unused)) \
= { (unsigned long)&sym, __kstrtab_##sym }
#define EXPORT_SYMBOL_NOVERS(sym) EXPORT_SYMBOL(sym)
@@ -155,7 +155,7 @@
__attribute__((section("__ksymtab_strings"))) \
= MODULE_SYMBOL_PREFIX #sym; \
static const struct kernel_symbol __ksymtab_##sym \
- __attribute__((section("__gpl_ksymtab"))) \
+ __attribute__((section("__gpl_ksymtab"),unused)) \
= { (unsigned long)&sym, __kstrtab_##sym }
struct module_ref
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-23 14:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-23 14:37 [patch] gcc-3.3 warns about 2.5.59 EXPORT_SYMBOL Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox