Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Martin KaFai Lau <martin.lau@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Alexei Starovoitov <ast@kernel.org>,
	Amery Hung <ameryhung@gmail.com>
Subject: [linux-next:master 6668/14185] arch/s390/include/asm/jump_label.h:43:11: error: invalid operand for inline asm constraint 'i'
Date: Sun, 04 Oct 2026 04:57:08 +0800	[thread overview]
Message-ID: <202610040408.xH9o1XiH-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f0406245cb9855e6318335a8a223551354291a46
commit: 369d9dcd8fb855f103a83454f0e1cd1cbc9118be [6668/14185] bpf: Add infrastructure to support attaching struct_ops to cgroups
config: s390-randconfig-1001-20261003 (https://download.01.org/0day-ci/archive/20261004/202610040408.xH9o1XiH-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 5f609f950d2e80addf5566623013db68394334db)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261004/202610040408.xH9o1XiH-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/202610040408.xH9o1XiH-lkp@intel.com/

Note: the linux-next/master HEAD f0406245cb9855e6318335a8a223551354291a46 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   In file included from kernel/bpf/cgroup.c:8:
   In file included from include/linux/kernel.h:23:
   In file included from include/linux/bitops.h:67:
   In file included from arch/s390/include/asm/bitops.h:75:
   In file included from include/asm-generic/bitops/atomic.h:5:
   In file included from include/linux/atomic.h:7:
   In file included from arch/s390/include/asm/atomic.h:16:
   In file included from arch/s390/include/asm/cmpxchg.h:11:
   In file included from include/linux/mmdebug.h:5:
   In file included from include/linux/bug.h:5:
   In file included from arch/s390/include/asm/bug.h:139:
   In file included from include/asm-generic/bug.h:31:
   In file included from include/linux/printk.h:620:
   In file included from include/linux/dynamic_debug.h:6:
   In file included from include/linux/jump_label.h:106:
>> arch/s390/include/asm/jump_label.h:43:11: error: invalid operand for inline asm constraint 'i'
      43 |         asm goto(ARCH_STATIC_BRANCH_ASM("%0+%1", "%l[label]")
         |                  ^
   arch/s390/include/asm/jump_label.h:34:2: note: expanded from macro 'ARCH_STATIC_BRANCH_ASM'
      34 |         "0:     brcl 0," label "\n"             \
         |         ^
   1 error generated.


vim +/i +43 arch/s390/include/asm/jump_label.h

146448524bddbf Ilya Leoshkevich 2019-02-06  21  
6900bec59d0f54 Jan Polensky     2026-06-01  22  #define ARCH_JUMP_TABLE_ENTRY(key, label, local_label)	\
6900bec59d0f54 Jan Polensky     2026-06-01  23  	".pushsection __jump_table,\"aw\"\n"		\
6900bec59d0f54 Jan Polensky     2026-06-01  24  	".balign	8\n"				\
6900bec59d0f54 Jan Polensky     2026-06-01  25  	".long	" local_label "-.," label "-.\n"	\
6900bec59d0f54 Jan Polensky     2026-06-01  26  	".quad	" key "-.\n"				\
6900bec59d0f54 Jan Polensky     2026-06-01  27  	".popsection\n"
6900bec59d0f54 Jan Polensky     2026-06-01  28  
d5caa4dbf9bd2a Heiko Carstens   2015-01-29  29  /*
0c3b61e00a0d08 Ard Biesheuvel   2022-06-15  30   * We use a brcl 0,<offset> instruction for jump labels so it
d5caa4dbf9bd2a Heiko Carstens   2015-01-29  31   * can be easily distinguished from a hotpatch generated instruction.
d5caa4dbf9bd2a Heiko Carstens   2015-01-29  32   */
6900bec59d0f54 Jan Polensky     2026-06-01  33  #define ARCH_STATIC_BRANCH_ASM(key, label)	\
6900bec59d0f54 Jan Polensky     2026-06-01  34  	"0:	brcl 0," label "\n"		\
6900bec59d0f54 Jan Polensky     2026-06-01  35  	ARCH_JUMP_TABLE_ENTRY(key, label, "0b")
6900bec59d0f54 Jan Polensky     2026-06-01  36  
6900bec59d0f54 Jan Polensky     2026-06-01  37  #define ARCH_STATIC_BRANCH_JUMP_ASM(key, label)	\
6900bec59d0f54 Jan Polensky     2026-06-01  38  	"0:	brcl 15," label "\n"		\
6900bec59d0f54 Jan Polensky     2026-06-01  39  	ARCH_JUMP_TABLE_ENTRY(key, label, "0b")
6900bec59d0f54 Jan Polensky     2026-06-01  40  
7f032febb665f6 Heiko Carstens   2019-10-04  41  static __always_inline bool arch_static_branch(struct static_key *key, bool branch)
5373db886b791b Jan Glauber      2011-03-16  42  {
6900bec59d0f54 Jan Polensky     2026-06-01 @43  	asm goto(ARCH_STATIC_BRANCH_ASM("%0+%1", "%l[label]")
146448524bddbf Ilya Leoshkevich 2019-02-06  44  		: : JUMP_LABEL_STATIC_KEY_CONSTRAINT (key), "i" (branch) : : label);
11276d5306b8e5 Peter Zijlstra   2015-07-24  45  	return false;
11276d5306b8e5 Peter Zijlstra   2015-07-24  46  label:
11276d5306b8e5 Peter Zijlstra   2015-07-24  47  	return true;
11276d5306b8e5 Peter Zijlstra   2015-07-24  48  }
11276d5306b8e5 Peter Zijlstra   2015-07-24  49  

:::::: The code at line 43 was first introduced by commit
:::::: 6900bec59d0f54dbb94d0799d204bcd44fbdb623 s390/jump_label: Implement ARCH_STATIC_BRANCH_JUMP_ASM and ARCH_STATIC_BRANCH_ASM macros

:::::: TO: Jan Polensky <japo@linux.ibm.com>
:::::: CC: Alexander Gordeev <agordeev@linux.ibm.com>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-10-03 20:57 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=202610040408.xH9o1XiH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ameryhung@gmail.com \
    --cc=ast@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=martin.lau@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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