[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <202208141746.ABdEd5xo-lkp@intel.com>
Date: Sun, 14 Aug 2022 17:10:53 +0800
From: kernel test robot <lkp@...el.com>
To: Dao Lu <daolu@...osinc.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Palmer Dabbelt <palmer@...osinc.com>,
Heiko Stuebner <heiko@...ech.de>
Subject: arch/riscv/include/asm/jump_label.h:42:3: error: invalid operand for
inline asm constraint 'i'
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@...el.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@...il.dk>
:::::: CC: Palmer Dabbelt <palmerdabbelt@...gle.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists