public inbox for [email protected]
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: "Paul E. McKenney" <[email protected]>
Cc: [email protected],
	GNU/Weeb Mailing List <[email protected]>,
	[email protected]
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
Date: Fri, 27 May 2022 06:44:12 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

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/[email protected]/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 <[email protected]>

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 <[email protected]>
:::::: CC: Heiko Carstens <[email protected]>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-05-26 22:45 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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /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