Skip to contentSkip to conversation

arch/unicore32/kernel/ksyms.c: remote 2 export symbols to avoid compiling failure

PATCH Superseded Chen Gang 1 participant 2 messages May 21, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 arch/unicore32/kernel/ksyms.c: remote 2 export symbols to avoid compiling failure

'csum_partial' and 'csum_partial_copy_from_user' have already been exported in "lib/", so need not export them again, or it will cause compiling error.

The related error (with allmodconfig under unicore32):

LD vmlinux.o
lib/built-in.o:(___ksymtab+csum_partial+0x0): multiple definition of __ksymtab_csum_partial' arch/unicore32/kernel/built-in.o:(___ksymtab+csum_partial+0x0): first defined here lib/built-in.o:(___ksymtab+csum_partial_copy_from_user+0x0): multiple definition of __ksymtab_csum_partial_copy_from_user' arch/unicore32/kernel/built-in.o:(___ksymtab+csum_partial_copy_from_user+0x0): first defined here
make: *** [vmlinux] Error 1

---
 arch/unicore32/kernel/ksyms.c | 4 ----
 1 file changed, 4 deletions(-)
arch/unicore32/kernel/ksyms.c +0 -4
index 63afc7f..bc06140 100644
@@ -30,10 +30,6 @@ EXPORT_SYMBOL(find_next_bit);
 EXPORT_SYMBOL(__udelay);
 EXPORT_SYMBOL(__const_udelay);
 
-	/* networking */
-EXPORT_SYMBOL(csum_partial);
-EXPORT_SYMBOL(csum_partial_copy_from_user);
-
 	/* string / mem functions */
 EXPORT_SYMBOL(strchr);
 EXPORT_SYMBOL(strrchr);
Signature · 1 line
1.9.2.459.g68773ac
author
#1 lore raw

Oh, sorry, the subject has a typo issue, need use 'remove' instead of 'remote'. I will send patch v2 for it.

Quoted 35 lines · Chen Gang

'csum_partial' and 'csum_partial_copy_from_user' have already been exported in "lib/", so need not export them again, or it will cause compiling error.

The related error (with allmodconfig under unicore32):

LD vmlinux.o
lib/built-in.o:(___ksymtab+csum_partial+0x0): multiple definition of __ksymtab_csum_partial' arch/unicore32/kernel/built-in.o:(___ksymtab+csum_partial+0x0): first defined here lib/built-in.o:(___ksymtab+csum_partial_copy_from_user+0x0): multiple definition of __ksymtab_csum_partial_copy_from_user' arch/unicore32/kernel/built-in.o:(___ksymtab+csum_partial_copy_from_user+0x0): first defined here
make: *** [vmlinux] Error 1

---
 arch/unicore32/kernel/ksyms.c | 4 ----
 1 file changed, 4 deletions(-)
arch/unicore32/kernel/ksyms.c +0 -4
index 63afc7f..bc06140 100644
@@ -30,10 +30,6 @@ EXPORT_SYMBOL(find_next_bit);
 EXPORT_SYMBOL(__udelay);
 EXPORT_SYMBOL(__const_udelay);
 
-	/* networking */
-EXPORT_SYMBOL(csum_partial);
-EXPORT_SYMBOL(csum_partial_copy_from_user);
-
 	/* string / mem functions */
 EXPORT_SYMBOL(strchr);
 EXPORT_SYMBOL(strrchr);
Signature · 3 lines
Chen Gang

Open, share, and attitude like air, water, and life which God blessed