Skip to content

Commit

Permalink
arch/unicore32/kernel/ksyms.c: remove 2 export symbols to avoid compi…
Browse files Browse the repository at this point in the history
…ling 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

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
Signed-off-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
  • Loading branch information
Chen Gang authored and Guan Xuetao committed Jun 20, 2014
1 parent 73fa540 commit 5a5ffc9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/unicore32/kernel/ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5a5ffc9

Please sign in to comment.