[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202205270626.brEm5KpN-lkp@intel.com>
Date: Fri, 27 May 2022 06:44:12 +0800
From: kernel test robot <lkp@...el.com>
To: "Paul E. McKenney" <paulmck@...nel.org>
Cc: kbuild-all@...ts.01.org,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
linux-kernel@...r.kernel.org
Subject: [ammarfaizi2-block:paulmck/linux-rcu/dev.2022.05.23b 64/68]
arch/s390/include/asm/cmpxchg.h:160:17: error: cast to union type from type
not present in union
tree: https://github.com/ammarfaizi2/linux-block paulmck/linux-rcu/dev.2022.05.23b
head: 29fe03d9190c37a93b96078e34ddd95344ef8b0f
commit: 2b23adb3446ac4098c17dee98414df6fca07f6c9 [64/68] squash! rcu-tasks: Atomically update .b.need_qs to obviate count
config: s390-randconfig-r044-20220524 (https://download.01.org/0day-ci/archive/20220527/202205270626.brEm5KpN-lkp@intel.com/config)
compiler: s390-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/ammarfaizi2/linux-block/commit/2b23adb3446ac4098c17dee98414df6fca07f6c9
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block paulmck/linux-rcu/dev.2022.05.23b
git checkout 2b23adb3446ac4098c17dee98414df6fca07f6c9
# 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=s390 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from kernel/rcu/update.c:606:
kernel/rcu/tasks.h: In function 'rcu_trc_cmpxchg_need_qs':
kernel/rcu/tasks.h:1243:9: error: aggregate value used where an integer was expected
1243 | ret = cmpxchg(&t->trc_reader_special, trs_old, trs_new);
| ^~~
kernel/rcu/tasks.h:1243:9: error: aggregate value used where an integer was expected
In file included from arch/s390/include/asm/percpu.h:6,
from include/linux/irqflags.h:17,
from include/linux/spinlock.h:58,
from kernel/rcu/update.c:23:
>> arch/s390/include/asm/cmpxchg.h:160:17: error: cast to union type from type not present in union
160 | __ret = (__typeof__(*(ptr))) \
| ^
include/linux/atomic/atomic-instrumented.h:1916:9: note: in expansion of macro 'arch_cmpxchg'
1916 | arch_cmpxchg(__ai_ptr, __VA_ARGS__); \
| ^~~~~~~~~~~~
kernel/rcu/tasks.h:1243:15: note: in expansion of macro 'cmpxchg'
1243 | ret = cmpxchg(&t->trc_reader_special, trs_old, trs_new);
| ^~~~~~~
vim +160 arch/s390/include/asm/cmpxchg.h
d2b1f6d2d35043 Heiko Carstens 2021-04-06 155
000174233b9134 Heiko Carstens 2021-04-06 156 #define arch_cmpxchg(ptr, o, n) \
6b894a409e8c0f Heiko Carstens 2012-05-29 157 ({ \
d2b1f6d2d35043 Heiko Carstens 2021-04-06 158 __typeof__(*(ptr)) __ret; \
d2b1f6d2d35043 Heiko Carstens 2021-04-06 159 \
d2b1f6d2d35043 Heiko Carstens 2021-04-06 @160 __ret = (__typeof__(*(ptr))) \
13525f0a62cc25 Heiko Carstens 2021-04-13 161 __cmpxchg((unsigned long)(ptr), (unsigned long)(o), \
d2b1f6d2d35043 Heiko Carstens 2021-04-06 162 (unsigned long)(n), sizeof(*(ptr))); \
d2b1f6d2d35043 Heiko Carstens 2021-04-06 163 __ret; \
54eaae3028e6b0 Heiko Carstens 2011-03-23 164 })
54eaae3028e6b0 Heiko Carstens 2011-03-23 165
:::::: The code at line 160 was first introduced by commit
:::::: d2b1f6d2d35043d2c9d079c1595f10c93bfca7d2 s390/cmpxchg: get rid of gcc atomic builtins
:::::: TO: Heiko Carstens <hca@...ux.ibm.com>
:::::: CC: Heiko Carstens <hca@...ux.ibm.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists