mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: 管雪涛 <gxt@pku.edu.cn>
To: Chen Gang <gang.chen.5i5j@gmail.com>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] arch/unicore32/kernel/ksyms.c: remove 2 export\r
 symbols to avoid compiling failure
Date: Wed, 21 May 2014 15:08:53 +0800 (CST)	[thread overview]
Message-ID: <1304349982.40103.1400656133055.JavaMail.root@bj-mail03.pku.edu.cn> (raw)
In-Reply-To: <537BFA11.4050809@gmail.com>

Thanks, and this is a common error in most architectures.

Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>

----- Chen Gang <gang.chen.5i5j@gmail.com> 写道:
> '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>
> ---
>  arch/unicore32/kernel/ksyms.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/arch/unicore32/kernel/ksyms.c b/arch/unicore32/kernel/ksyms.c
> index 63afc7f..bc06140 100644
> --- a/arch/unicore32/kernel/ksyms.c
> +++ b/arch/unicore32/kernel/ksyms.c
> @@ -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);
> -- 
> 1.9.2.459.g68773ac


      reply	other threads:[~2014-05-21  7:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-21  0:57 Chen Gang
2014-05-21  7:08 ` 管雪涛 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1304349982.40103.1400656133055.JavaMail.root@bj-mail03.pku.edu.cn \
    --to=gxt@pku.edu.cn \
    --cc=gang.chen.5i5j@gmail.com \
    --cc=gxt@mprc.pku.edu.cn \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®