]> Git Repo - linux.git/commitdiff
[ARM] 2977/1: armksyms.c - make items in export table static
authorBen Dooks <[email protected]>
Wed, 12 Oct 2005 18:58:07 +0000 (19:58 +0100)
committerRussell King <[email protected]>
Wed, 12 Oct 2005 18:58:07 +0000 (19:58 +0100)
Patch from Ben Dooks

The items in the export table do not need to be
exported elsehwere, so quash the sparse warning
by making the symbol for the table entry static.

Signed-off-by: Ben Dooks <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/kernel/armksyms.c

index 835d450797a1e29378986f05b3e5ac852afd2a36..7b17a87a3311af3ece561f3cbc19debf459e4a8c 100644 (file)
@@ -45,8 +45,8 @@ extern void fp_enter(void);
 
 #define EXPORT_SYMBOL_ALIAS(sym,orig)          \
  EXPORT_CRC_ALIAS(sym)                         \
const struct kernel_symbol __ksymtab_##sym    \
-  __attribute__((section("__ksymtab"))) =      \
static const struct kernel_symbol __ksymtab_##sym     \
+  __attribute_used__ __attribute__((section("__ksymtab"))) =   \
     { (unsigned long)&orig, #sym };
 
 /*
This page took 0.053765 seconds and 4 git commands to generate.