* [avpatel:riscv_sbi_nested_v1 73/76] arch/riscv/kvm/vcpu_switch.S:260:81: error: invalid reassignment of non-absolute variable '.L__sym_size___kvm_riscv_switch_to'
@ 2023-02-05 7:51 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-05 7:51 UTC (permalink / raw)
To: Anup Patel; +Cc: llvm, oe-kbuild-all
tree: https://github.com/avpatel/linux.git riscv_sbi_nested_v1
head: 27e6109638389f74b42fe02858caa9c7a381cbbe
commit: fc8669baa9be564edf22b657eccef98fe454d843 [73/76] RISC-V: KVM: Use SBI sync SRET call when available
config: riscv-randconfig-r042-20230205 (https://download.01.org/0day-ci/archive/20230205/202302051538.MrDEDSEQ-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
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://github.com/avpatel/linux/commit/fc8669baa9be564edf22b657eccef98fe454d843
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_sbi_nested_v1
git checkout fc8669baa9be564edf22b657eccef98fe454d843
# 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 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/
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 >>):
>> arch/riscv/kvm/vcpu_switch.S:260:81: error: invalid reassignment of non-absolute variable '.L__sym_size___kvm_riscv_switch_to'
.type __kvm_riscv_switch_to STT_FUNC ; .set .L__sym_size___kvm_riscv_switch_to, .-__kvm_riscv_switch_to ; .size __kvm_riscv_switch_to, .L__sym_size___kvm_riscv_switch_to
^
vim +260 arch/riscv/kvm/vcpu_switch.S
fc8669baa9be56 Anup Patel 2022-10-09 230
fc8669baa9be56 Anup Patel 2022-10-09 231 /*
fc8669baa9be56 Anup Patel 2022-10-09 232 * Parameters:
fc8669baa9be56 Anup Patel 2022-10-09 233 * A0 <= Pointer to struct kvm_vcpu_arch
fc8669baa9be56 Anup Patel 2022-10-09 234 * A1 <= SBI extension ID
fc8669baa9be56 Anup Patel 2022-10-09 235 * A2 <= SBI function ID
fc8669baa9be56 Anup Patel 2022-10-09 236 * A3 <= Flags for SBI sync SRET call
fc8669baa9be56 Anup Patel 2022-10-09 237 */
fc8669baa9be56 Anup Patel 2022-10-09 238 ENTRY(__kvm_riscv_nacl_switch_to)
fc8669baa9be56 Anup Patel 2022-10-09 239 SAVE_HOST_GPRS
fc8669baa9be56 Anup Patel 2022-10-09 240
fc8669baa9be56 Anup Patel 2022-10-09 241 SAVE_HOST_AND_RESTORE_GUEST_CSRS __kvm_riscv_nacl_switch_to_return
fc8669baa9be56 Anup Patel 2022-10-09 242
fc8669baa9be56 Anup Patel 2022-10-09 243 /* Resume Guest using SBI nested acceleration */
fc8669baa9be56 Anup Patel 2022-10-09 244 add a0, a3, zero
fc8669baa9be56 Anup Patel 2022-10-09 245 add a6, a2, zero
fc8669baa9be56 Anup Patel 2022-10-09 246 add a7, a1, zero
fc8669baa9be56 Anup Patel 2022-10-09 247 ecall
fc8669baa9be56 Anup Patel 2022-10-09 248
fc8669baa9be56 Anup Patel 2022-10-09 249 /* Back to Host */
fc8669baa9be56 Anup Patel 2022-10-09 250 .align 2
fc8669baa9be56 Anup Patel 2022-10-09 251 __kvm_riscv_nacl_switch_to_return:
fc8669baa9be56 Anup Patel 2022-10-09 252 SAVE_GUEST_GPRS
fc8669baa9be56 Anup Patel 2022-10-09 253
fc8669baa9be56 Anup Patel 2022-10-09 254 SAVE_GUEST_AND_RESTORE_HOST_CSRS
fc8669baa9be56 Anup Patel 2022-10-09 255
fc8669baa9be56 Anup Patel 2022-10-09 256 RESTORE_HOST_GPRS
34bde9d8b9e6e5 Anup Patel 2021-09-27 257
34bde9d8b9e6e5 Anup Patel 2021-09-27 258 /* Return to C code */
34bde9d8b9e6e5 Anup Patel 2021-09-27 259 ret
34bde9d8b9e6e5 Anup Patel 2021-09-27 @260 ENDPROC(__kvm_riscv_switch_to)
9f7013265112a9 Anup Patel 2021-09-27 261
:::::: The code at line 260 was first introduced by commit
:::::: 34bde9d8b9e6e5249db3c07cf1ebfe75c23c671c RISC-V: KVM: Implement VCPU world-switch
:::::: TO: Anup Patel <anup.patel@wdc.com>
:::::: CC: Anup Patel <anup@brainfault.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-05 7:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-05 7:51 [avpatel:riscv_sbi_nested_v1 73/76] arch/riscv/kvm/vcpu_switch.S:260:81: error: invalid reassignment of non-absolute variable '.L__sym_size___kvm_riscv_switch_to' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox