* [tglx-devel:rseq/cid 60/64] include/linux/compiler.h:85:20: error: expected expression before '__asm__'
@ 2025-10-15 20:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-10-15 20:57 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git rseq/cid
head: e196d67a03daa4beb27afc2961845664ac3ef3d5
commit: a430e9c31893c17c9c13bcef7dfbdad1aa857761 [60/64] sched/mmcid: Provide new scheduler CID mechanism
config: s390-randconfig-002-20251016 (https://download.01.org/0day-ci/archive/20251016/202510160407.PRl7dIAf-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 13.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251016/202510160407.PRl7dIAf-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/202510160407.PRl7dIAf-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/build_bug.h:5,
from include/linux/container_of.h:5,
from include/linux/list.h:5,
from include/linux/smp.h:12,
from include/linux/sched/clock.h:5,
from kernel/sched/build_utility.c:12:
kernel/sched/sched.h: In function 'mm_get_cid':
>> include/linux/compiler.h:85:20: error: expected expression before '__asm__'
85 | # define barrier() __asm__ __volatile__("": : :"memory")
| ^~~~~~~
arch/s390/include/asm/processor.h:291:21: note: in expansion of macro 'barrier'
291 | #define cpu_relax() barrier()
| ^~~~~~~
kernel/sched/sched.h:3595:37: note: in expansion of macro 'cpu_relax'
3595 | for (; cid == MM_CID_UNSET; cpu_relax())
| ^~~~~~~~~
vim +/__asm__ +85 include/linux/compiler.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 81
^1da177e4c3f41 Linus Torvalds 2005-04-16 82 /* Optimization barrier */
^1da177e4c3f41 Linus Torvalds 2005-04-16 83 #ifndef barrier
3347acc6fcd4ee Arvind Sankar 2020-11-13 84 /* The "volatile" is due to gcc bugs */
3347acc6fcd4ee Arvind Sankar 2020-11-13 @85 # define barrier() __asm__ __volatile__("": : :"memory")
^1da177e4c3f41 Linus Torvalds 2005-04-16 86 #endif
^1da177e4c3f41 Linus Torvalds 2005-04-16 87
:::::: The code at line 85 was first introduced by commit
:::::: 3347acc6fcd4ee71ad18a9ff9d9dac176b517329 compiler.h: fix barrier_data() on clang
:::::: TO: Arvind Sankar <nivedita@alum.mit.edu>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-10-15 20:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-15 20:57 [tglx-devel:rseq/cid 60/64] include/linux/compiler.h:85:20: error: expected expression before '__asm__' kernel test robot
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.