From: kernel test robot <lkp@intel.com>
To: Matteo Croce <mcroce@microsoft.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org,
Emil Renner Berthing <kernel@esmil.dk>
Subject: [esmil:visionfive 3/42] arch/riscv/lib/string.c:154:7: error: redefinition of '__memset'
Date: Fri, 9 Sep 2022 06:19:59 +0800 [thread overview]
Message-ID: <202209090619.qDykZACq-lkp@intel.com> (raw)
tree: https://github.com/esmil/linux visionfive
head: 044c1f5e968de7d30940431fbb90da599074ea1c
commit: 8999d2c8c7f28aa49f4658496266487b2e676aae [3/42] riscv: optimized memset
config: riscv-randconfig-r021-20220907 (https://download.01.org/0day-ci/archive/20220909/202209090619.qDykZACq-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1546df49f5a6d09df78f569e4137ddb365a3e827)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/esmil/linux/commit/8999d2c8c7f28aa49f4658496266487b2e676aae
git remote add esmil https://github.com/esmil/linux
git fetch --no-tags esmil visionfive
git checkout 8999d2c8c7f28aa49f4658496266487b2e676aae
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
arch/riscv/lib/string.c:90:57: warning: attribute declaration must precede definition [-Wignored-attributes]
void *memcpy(void *dest, const void *src, size_t count) __weak __alias(__memcpy);
^
include/linux/compiler_attributes.h:372:56: note: expanded from macro '__weak'
#define __weak __attribute__((__weak__))
^
arch/riscv/lib/string.c:31:7: note: previous definition is here
void *__memcpy(void *dest, const void *src, size_t count)
^
arch/riscv/lib/string.c:90:7: error: redefinition of '__memcpy'
void *memcpy(void *dest, const void *src, size_t count) __weak __alias(__memcpy);
^
arch/riscv/include/asm/string.h:21:31: note: expanded from macro 'memcpy'
#define memcpy(dst, src, len) __memcpy(dst, src, len)
^
arch/riscv/lib/string.c:31:7: note: previous definition is here
void *__memcpy(void *dest, const void *src, size_t count)
^
arch/riscv/lib/string.c:113:58: warning: attribute declaration must precede definition [-Wignored-attributes]
void *memmove(void *dest, const void *src, size_t count) __weak __alias(__memmove);
^
include/linux/compiler_attributes.h:372:56: note: expanded from macro '__weak'
#define __weak __attribute__((__weak__))
^
arch/riscv/lib/string.c:97:7: note: previous definition is here
void *__memmove(void *dest, const void *src, size_t count)
^
arch/riscv/lib/string.c:113:7: error: redefinition of '__memmove'
void *memmove(void *dest, const void *src, size_t count) __weak __alias(__memmove);
^
arch/riscv/include/asm/string.h:23:32: note: expanded from macro 'memmove'
#define memmove(dst, src, len) __memmove(dst, src, len)
^
arch/riscv/lib/string.c:97:7: note: previous definition is here
void *__memmove(void *dest, const void *src, size_t count)
^
arch/riscv/lib/string.c:154:44: warning: attribute declaration must precede definition [-Wignored-attributes]
void *memset(void *s, int c, size_t count) __weak __alias(__memset);
^
include/linux/compiler_attributes.h:372:56: note: expanded from macro '__weak'
#define __weak __attribute__((__weak__))
^
arch/riscv/lib/string.c:116:7: note: previous definition is here
void *__memset(void *s, int c, size_t count)
^
>> arch/riscv/lib/string.c:154:7: error: redefinition of '__memset'
void *memset(void *s, int c, size_t count) __weak __alias(__memset);
^
arch/riscv/include/asm/string.h:22:25: note: expanded from macro 'memset'
#define memset(s, c, n) __memset(s, c, n)
^
arch/riscv/lib/string.c:116:7: note: previous definition is here
void *__memset(void *s, int c, size_t count)
^
3 warnings and 3 errors generated.
vim +/__memset +154 arch/riscv/lib/string.c
153
> 154 void *memset(void *s, int c, size_t count) __weak __alias(__memset);
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-09-08 22:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202209090619.qDykZACq-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=kernel@esmil.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mcroce@microsoft.com \
/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®