From: kernel test robot <lkp@intel.com>
To: Dao Lu <daolu@rivosinc.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org,
Palmer Dabbelt <palmer@rivosinc.com>,
Heiko Stuebner <heiko@sntech.de>
Subject: arch/riscv/include/asm/jump_label.h:42:3: error: invalid operand for inline asm constraint 'i'
Date: Sun, 14 Aug 2022 17:10:53 +0800 [thread overview]
Message-ID: <202208141746.ABdEd5xo-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: aea23e7c464bfdec04b52cf61edb62030e9e0d0a
commit: 8eb060e10185cfc97ef0200d197ec246ba0f9f8c arch/riscv: add Zihintpause support
date: 3 days ago
config: riscv-randconfig-r005-20220814 (https://download.01.org/0day-ci/archive/20220814/202208141746.ABdEd5xo-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 3329cec2f79185bafd678f310fafadba2a8c76d2)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8eb060e10185cfc97ef0200d197ec246ba0f9f8c
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 8eb060e10185cfc97ef0200d197ec246ba0f9f8c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv prepare
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from <built-in>:4:
In file included from lib/vdso/gettimeofday.c:5:
In file included from include/vdso/datapage.h:17:
In file included from include/vdso/processor.h:10:
In file included from arch/riscv/include/asm/vdso/processor.h:7:
In file included from include/linux/jump_label.h:112:
>> arch/riscv/include/asm/jump_label.h:42:3: error: invalid operand for inline asm constraint 'i'
" .option push \n\t"
^
1 error generated.
make[2]: *** [scripts/Makefile.build:249: arch/riscv/kernel/vdso/vgettimeofday.o] Error 1
make[2]: Target 'include/generated/vdso-offsets.h' not remade because of errors.
make[1]: *** [arch/riscv/Makefile:128: vdso_prepare] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/i +42 arch/riscv/include/asm/jump_label.h
ebc00dde8a975a Emil Renner Berthing 2020-07-14 37
ebc00dde8a975a Emil Renner Berthing 2020-07-14 38 static __always_inline bool arch_static_branch_jump(struct static_key *key,
ebc00dde8a975a Emil Renner Berthing 2020-07-14 39 bool branch)
ebc00dde8a975a Emil Renner Berthing 2020-07-14 40 {
ebc00dde8a975a Emil Renner Berthing 2020-07-14 41 asm_volatile_goto(
ebc00dde8a975a Emil Renner Berthing 2020-07-14 @42 " .option push \n\t"
ebc00dde8a975a Emil Renner Berthing 2020-07-14 43 " .option norelax \n\t"
ebc00dde8a975a Emil Renner Berthing 2020-07-14 44 " .option norvc \n\t"
ebc00dde8a975a Emil Renner Berthing 2020-07-14 45 "1: jal zero, %l[label] \n\t"
ebc00dde8a975a Emil Renner Berthing 2020-07-14 46 " .option pop \n\t"
ebc00dde8a975a Emil Renner Berthing 2020-07-14 47 " .pushsection __jump_table, \"aw\" \n\t"
ebc00dde8a975a Emil Renner Berthing 2020-07-14 48 " .align " RISCV_LGPTR " \n\t"
ebc00dde8a975a Emil Renner Berthing 2020-07-14 49 " .long 1b - ., %l[label] - . \n\t"
ebc00dde8a975a Emil Renner Berthing 2020-07-14 50 " " RISCV_PTR " %0 - . \n\t"
ebc00dde8a975a Emil Renner Berthing 2020-07-14 51 " .popsection \n\t"
ebc00dde8a975a Emil Renner Berthing 2020-07-14 52 : : "i"(&((char *)key)[branch]) : : label);
ebc00dde8a975a Emil Renner Berthing 2020-07-14 53
ebc00dde8a975a Emil Renner Berthing 2020-07-14 54 return false;
ebc00dde8a975a Emil Renner Berthing 2020-07-14 55 label:
ebc00dde8a975a Emil Renner Berthing 2020-07-14 56 return true;
ebc00dde8a975a Emil Renner Berthing 2020-07-14 57 }
ebc00dde8a975a Emil Renner Berthing 2020-07-14 58
:::::: The code at line 42 was first introduced by commit
:::::: ebc00dde8a975a543f5e1a7cdac93fef89fefe58 riscv: Add jump-label implementation
:::::: TO: Emil Renner Berthing <kernel@esmil.dk>
:::::: CC: Palmer Dabbelt <palmerdabbelt@google.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next reply other threads:[~2022-08-14 9:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-14 9:10 kernel test robot [this message]
2022-08-15 19:54 ` arch/riscv/include/asm/jump_label.h:42:3: error: invalid operand for inline asm constraint 'i' Nathan Chancellor
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=202208141746.ABdEd5xo-lkp@intel.com \
--to=lkp@intel.com \
--cc=daolu@rivosinc.com \
--cc=heiko@sntech.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=palmer@rivosinc.com \
/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