From: kernel test robot <lkp@intel.com>
To: Matteo Croce <mcroce@microsoft.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Emil Renner Berthing <emil.renner.berthing@canonical.com>
Subject: [esmil:visionfive 2/50] arch/riscv/include/asm/string.h:25:31: error: redefinition of '__memcpy'
Date: Wed, 6 Jul 2022 09:03:51 +0800 [thread overview]
Message-ID: <202207060838.WP0TpRCc-lkp@intel.com> (raw)
tree: https://github.com/esmil/linux visionfive
head: 943858df470556d0b7f3b31fcc10931603f0f3cc
commit: 6a48862f530a593cadaab50ae4006b3a70a112e6 [2/50] riscv: optimized memcpy
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20220706/202207060838.WP0TpRCc-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 11.3.0
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
# https://github.com/esmil/linux/commit/6a48862f530a593cadaab50ae4006b3a70a112e6
git remote add esmil https://github.com/esmil/linux
git fetch --no-tags esmil visionfive
git checkout 6a48862f530a593cadaab50ae4006b3a70a112e6
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
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 >>):
In file included from include/linux/string.h:20,
from include/linux/bitmap.h:11,
from include/linux/cpumask.h:12,
from include/linux/mm_types_task.h:14,
from include/linux/mm_types.h:5,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from arch/riscv/lib/string.c:11:
>> arch/riscv/include/asm/string.h:25:31: error: redefinition of '__memcpy'
25 | #define memcpy(dst, src, len) __memcpy(dst, src, len)
| ^~~~~~~~
arch/riscv/lib/string.c:90:7: note: in expansion of macro 'memcpy'
90 | void *memcpy(void *dest, const void *src, size_t count) __weak __alias(__memcpy);
| ^~~~~~
arch/riscv/lib/string.c:31:7: note: previous definition of '__memcpy' with type 'void *(void *, const void *, size_t)' {aka 'void *(void *, const void *, long unsigned int)'}
31 | void *__memcpy(void *dest, const void *src, size_t count)
| ^~~~~~~~
vim +/__memcpy +25 arch/riscv/include/asm/string.h
6a48862f530a59 Matteo Croce 2021-09-29 19
04091d6c0535f6 Nylon Chen 2020-11-30 20 #define __HAVE_ARCH_MEMMOVE
04091d6c0535f6 Nylon Chen 2020-11-30 21 extern asmlinkage void *memmove(void *, const void *, size_t);
04091d6c0535f6 Nylon Chen 2020-11-30 22 extern asmlinkage void *__memmove(void *, const void *, size_t);
8ad8b72721d0f0 Nick Hu 2020-01-06 23 /* For those files which don't want to check by kasan. */
8ad8b72721d0f0 Nick Hu 2020-01-06 24 #if defined(CONFIG_KASAN) && !defined(__SANITIZE_ADDRESS__)
8ad8b72721d0f0 Nick Hu 2020-01-06 @25 #define memcpy(dst, src, len) __memcpy(dst, src, len)
8ad8b72721d0f0 Nick Hu 2020-01-06 26 #define memset(s, c, n) __memset(s, c, n)
04091d6c0535f6 Nylon Chen 2020-11-30 27 #define memmove(dst, src, len) __memmove(dst, src, len)
9530141455c968 Kefeng Wang 2021-02-25 28
:::::: The code at line 25 was first introduced by commit
:::::: 8ad8b72721d0f07fa02dbe71f901743f9c71c8e6 riscv: Add KASAN support
:::::: TO: Nick Hu <nickhu@andestech.com>
:::::: CC: Palmer Dabbelt <palmerdabbelt@google.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-07-06 1:04 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=202207060838.WP0TpRCc-lkp@intel.com \
--to=lkp@intel.com \
--cc=emil.renner.berthing@canonical.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.