All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [tglx-devel:rseq/cid 60/64] include/linux/compiler.h:85:20: error: expected expression before '__asm__'
Date: Thu, 16 Oct 2025 04:57:57 +0800	[thread overview]
Message-ID: <202510160407.PRl7dIAf-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-10-15 20:58 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=202510160407.PRl7dIAf-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tglx@linutronix.de \
    /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 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.