From: kernel test robot <lkp@intel.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [paulmck-rcu:dev.2024.03.27b 63/69] arch/sh/include/asm/cmpxchg.h:60:24: error: implicit declaration of function 'cmpxchg_emu_u8'
Date: Fri, 29 Mar 2024 23:19:47 +0800 [thread overview]
Message-ID: <202403292318.88dppMPt-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2024.03.27b
head: 786fab3085d764055a78edb54023420920344333
commit: 4977f14819143065158973013b51a3c1f926e61e [63/69] sh: Emulate one-byte and two-byte cmpxchg
config: sh-defconfig (https://download.01.org/0day-ci/archive/20240329/202403292318.88dppMPt-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240329/202403292318.88dppMPt-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403292318.88dppMPt-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/sh/include/asm/atomic.h:19,
from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/sh/include/asm/bitops.h:63,
from include/linux/bitops.h:68,
from include/linux/log2.h:12,
from kernel/bounds.c:13:
arch/sh/include/asm/cmpxchg.h: In function '__cmpxchg':
>> arch/sh/include/asm/cmpxchg.h:60:24: error: implicit declaration of function 'cmpxchg_emu_u8' [-Werror=implicit-function-declaration]
60 | return cmpxchg_emu_u8((volatile u8 *)ptr, old, new);
| ^~~~~~~~~~~~~~
>> arch/sh/include/asm/cmpxchg.h:62:24: error: implicit declaration of function 'cmpxchg_emu_u16' [-Werror=implicit-function-declaration]
62 | return cmpxchg_emu_u16((volatile u16 *)ptr, old, new);
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1197: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:240: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/cmpxchg_emu_u8 +60 arch/sh/include/asm/cmpxchg.h
54
55 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old,
56 unsigned long new, int size)
57 {
58 switch (size) {
59 case 1:
> 60 return cmpxchg_emu_u8((volatile u8 *)ptr, old, new);
61 case 2:
> 62 return cmpxchg_emu_u16((volatile u16 *)ptr, old, new);
63 case 4:
64 return __cmpxchg_u32(ptr, old, new);
65 }
66 __cmpxchg_called_with_bad_pointer();
67 return old;
68 }
69
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-03-29 15:19 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=202403292318.88dppMPt-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=paulmck@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®