* [avpatel:riscv_acpi_b2_v1 66/91] arch/riscv/kvm/vcpu_switch.S:259:81: error: invalid reassignment of non-absolute variable '.L__sym_size___kvm_riscv_switch_to'
@ 2023-08-05 0:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-05 0:02 UTC (permalink / raw)
To: Anup Patel; +Cc: llvm, oe-kbuild-all
Hi Anup,
First bad commit (maybe != root cause):
tree: https://github.com/avpatel/linux.git riscv_acpi_b2_v1
head: b09364548457cec51680b8f8b1a5e917b5e74cf5
commit: c25a9f5b7daa98ba6276a4ad01b2f70f86dfb99c [66/91] RISC-V: KVM: Use SBI sync SRET call when available
config: riscv-randconfig-r042-20230731 (https://download.01.org/0day-ci/archive/20230805/202308050707.uCLdENbS-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230805/202308050707.uCLdENbS-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/202308050707.uCLdENbS-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/riscv/kvm/vcpu_switch.S:259: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 +259 arch/riscv/kvm/vcpu_switch.S
c25a9f5b7daa98 Anup Patel 2022-10-09 230
c25a9f5b7daa98 Anup Patel 2022-10-09 231 /*
c25a9f5b7daa98 Anup Patel 2022-10-09 232 * Parameters:
c25a9f5b7daa98 Anup Patel 2022-10-09 233 * A0 <= Pointer to struct kvm_vcpu_arch
c25a9f5b7daa98 Anup Patel 2022-10-09 234 * A1 <= SBI extension ID
c25a9f5b7daa98 Anup Patel 2022-10-09 235 * A2 <= SBI function ID
c25a9f5b7daa98 Anup Patel 2022-10-09 236 * A3 <= Flags for SBI sync SRET call
c25a9f5b7daa98 Anup Patel 2022-10-09 237 */
c25a9f5b7daa98 Anup Patel 2022-10-09 238 ENTRY(__kvm_riscv_nacl_switch_to)
c25a9f5b7daa98 Anup Patel 2022-10-09 239 SAVE_HOST_GPRS
c25a9f5b7daa98 Anup Patel 2022-10-09 240
c25a9f5b7daa98 Anup Patel 2022-10-09 241 SAVE_HOST_AND_RESTORE_GUEST_CSRS __kvm_riscv_nacl_switch_to_return
c25a9f5b7daa98 Anup Patel 2022-10-09 242
c25a9f5b7daa98 Anup Patel 2022-10-09 243 /* Resume Guest using SBI nested acceleration */
c25a9f5b7daa98 Anup Patel 2022-10-09 244 add a6, a2, zero
c25a9f5b7daa98 Anup Patel 2022-10-09 245 add a7, a1, zero
c25a9f5b7daa98 Anup Patel 2022-10-09 246 ecall
c25a9f5b7daa98 Anup Patel 2022-10-09 247
c25a9f5b7daa98 Anup Patel 2022-10-09 248 /* Back to Host */
c25a9f5b7daa98 Anup Patel 2022-10-09 249 .align 2
c25a9f5b7daa98 Anup Patel 2022-10-09 250 __kvm_riscv_nacl_switch_to_return:
c25a9f5b7daa98 Anup Patel 2022-10-09 251 SAVE_GUEST_GPRS
c25a9f5b7daa98 Anup Patel 2022-10-09 252
c25a9f5b7daa98 Anup Patel 2022-10-09 253 SAVE_GUEST_AND_RESTORE_HOST_CSRS
c25a9f5b7daa98 Anup Patel 2022-10-09 254
c25a9f5b7daa98 Anup Patel 2022-10-09 255 RESTORE_HOST_GPRS
34bde9d8b9e6e5 Anup Patel 2021-09-27 256
34bde9d8b9e6e5 Anup Patel 2021-09-27 257 /* Return to C code */
34bde9d8b9e6e5 Anup Patel 2021-09-27 258 ret
34bde9d8b9e6e5 Anup Patel 2021-09-27 @259 ENDPROC(__kvm_riscv_switch_to)
9f7013265112a9 Anup Patel 2021-09-27 260
:::::: The code at line 259 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/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-05 0:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-05 0:02 [avpatel:riscv_acpi_b2_v1 66/91] arch/riscv/kvm/vcpu_switch.S:259: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