[lkml]   [2020]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectarch/s390/include/asm/atomic_ops.h:56:45: error: invalid operand for inline asm constraint 'i'
Hi Vasily,

FYI, the error/warning still remains.

tree: master
head: c4d6fe7311762f2e03b3c27ad38df7c40c80cc93
commit: f0cbd3b83ed47803df941865f720934c69abb803 s390/atomic: circumvent gcc 10 build regression
date: 2 months ago
config: s390-randconfig-r024-20201021 (attached as .config)
compiler: clang version 12.0.0 ( 2eac8ce820e6c9fe51bf93b55cb8a781b8b9fc7c)
reproduce (this is a W=1 build):
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
git remote add linus
git fetch --no-tags linus master
git checkout f0cbd3b83ed47803df941865f720934c69abb803
# save the attached .config to linux build tree

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <>

All errors (new ones prefixed by >>):

In file included from drivers/tty/tty_buffer.c:8:
In file included from include/linux/tty.h:5:
In file included from include/linux/fs.h:6:
In file included from include/linux/wait_bit.h:8:
In file included from include/linux/wait.h:7:
In file included from include/linux/list.h:9:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:29:
In file included from arch/s390/include/asm/bitops.h:39:
>> arch/s390/include/asm/atomic_ops.h:56:45: error: invalid operand for inline asm constraint 'i'
__ATOMIC_CONST_OPS(__atomic_add_const, int, "asi")
1 error generated.

vim +/i +56 arch/s390/include/asm/atomic_ops.h

126b30c3cb476ce Martin Schwidefsky 2016-11-11 51
eb3b7b848fb3dd0 Martin Schwidefsky 2017-03-24 52 #define __ATOMIC_CONST_OPS(op_name, op_type, op_string) \
eb3b7b848fb3dd0 Martin Schwidefsky 2017-03-24 53 __ATOMIC_CONST_OP(op_name, op_type, op_string, "\n") \
eb3b7b848fb3dd0 Martin Schwidefsky 2017-03-24 54 __ATOMIC_CONST_OP(op_name##_barrier, op_type, op_string, "bcr 14,0\n")
eb3b7b848fb3dd0 Martin Schwidefsky 2017-03-24 55
eb3b7b848fb3dd0 Martin Schwidefsky 2017-03-24 @56 __ATOMIC_CONST_OPS(__atomic_add_const, int, "asi")
eb3b7b848fb3dd0 Martin Schwidefsky 2017-03-24 57 __ATOMIC_CONST_OPS(__atomic64_add_const, long, "agsi")
eb3b7b848fb3dd0 Martin Schwidefsky 2017-03-24 58

:::::: The code at line 56 was first introduced by commit
:::::: eb3b7b848fb3dd00f7a57d633d4ae4d194aa7865 s390/rwlock: introduce rwlock wait queueing

:::::: TO: Martin Schwidefsky <>
:::::: CC: Martin Schwidefsky <>

0-DAY CI Kernel Test Service, Intel Corporation
[unhandled content-type:application/gzip]
 \ /
  Last update: 2020-10-21 13:57    [W:0.057 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site