* [arm-platforms:kvm-arm64/ptrauth-fixes 29/29] arch/arm64/kvm/arm.c:343:19: warning: variable 'cpu_data' set but not used
@ 2020-06-05 15:35 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-05 15:35 UTC (permalink / raw)
To: Marc Zyngier; +Cc: kbuild-all, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 5252 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/ptrauth-fixes
head: e91fc83d942e7ce98dd54d7a4ee789c5c75d7c6d
commit: e91fc83d942e7ce98dd54d7a4ee789c5c75d7c6d [29/29] KVM: arm64: Remove host_cpu_context member from vcpu structure
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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
git checkout e91fc83d942e7ce98dd54d7a4ee789c5c75d7c6d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
arch/arm64/kvm/arm.c:147:5: warning: no previous prototype for 'kvm_arch_create_vcpu_debugfs' [-Wmissing-prototypes]
147 | int kvm_arch_create_vcpu_debugfs(struct kvm_vcpu *vcpu)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/arm.c: In function 'kvm_arch_vcpu_load':
>> arch/arm64/kvm/arm.c:343:19: warning: variable 'cpu_data' set but not used [-Wunused-but-set-variable]
343 | kvm_host_data_t *cpu_data;
| ^~~~~~~~
vim +/cpu_data +343 arch/arm64/kvm/arm.c
d35268da66870d7 arch/arm/kvm/arm.c Christoffer Dall 2015-08-25 339
749cf76c5a363e1 arch/arm/kvm/arm.c Christoffer Dall 2013-01-20 340 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
749cf76c5a363e1 arch/arm/kvm/arm.c Christoffer Dall 2013-01-20 341 {
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 342 int *last_ran;
630a16854d2d28d virt/kvm/arm/arm.c Andrew Murray 2019-04-09 @343 kvm_host_data_t *cpu_data;
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 344
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 345 last_ran = this_cpu_ptr(vcpu->kvm->arch.last_vcpu_ran);
630a16854d2d28d virt/kvm/arm/arm.c Andrew Murray 2019-04-09 346 cpu_data = this_cpu_ptr(&kvm_host_data);
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 347
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 348 /*
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 349 * We might get preempted before the vCPU actually runs, but
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 350 * over-invalidation doesn't affect correctness.
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 351 */
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 352 if (*last_ran != vcpu->vcpu_id) {
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 353 kvm_call_hyp(__kvm_tlb_flush_local_vmid, vcpu);
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 354 *last_ran = vcpu->vcpu_id;
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 355 }
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 356
86ce85352f0da7e arch/arm/kvm/arm.c Christoffer Dall 2013-01-20 357 vcpu->cpu = cpu;
5b3e5e5bf230f56 arch/arm/kvm/arm.c Christoffer Dall 2013-01-20 358
328e56647944919 arch/arm/kvm/arm.c Christoffer Dall 2016-03-24 359 kvm_vgic_load(vcpu);
b103cc3f10c06fb virt/kvm/arm/arm.c Christoffer Dall 2016-10-16 360 kvm_timer_vcpu_load(vcpu);
bc192ceec37108b virt/kvm/arm/arm.c Christoffer Dall 2017-10-10 361 kvm_vcpu_load_sysregs(vcpu);
e6b673b741ea0d7 virt/kvm/arm/arm.c Dave Martin 2018-04-06 362 kvm_arch_vcpu_load_fp(vcpu);
435e53fb5e21ad1 virt/kvm/arm/arm.c Andrew Murray 2019-04-09 363 kvm_vcpu_pmu_restore_guest(vcpu);
8564d6372a7d8a6 virt/kvm/arm/arm.c Steven Price 2019-10-21 364 if (kvm_arm_is_pvtime_enabled(&vcpu->arch))
8564d6372a7d8a6 virt/kvm/arm/arm.c Steven Price 2019-10-21 365 kvm_make_request(KVM_REQ_RECORD_STEAL, vcpu);
de73708915adc1b virt/kvm/arm/arm.c Marc Zyngier 2018-06-21 366
de73708915adc1b virt/kvm/arm/arm.c Marc Zyngier 2018-06-21 367 if (single_task_running())
ef2e78ddadbb939 virt/kvm/arm/arm.c Marc Zyngier 2019-11-07 368 vcpu_clear_wfx_traps(vcpu);
de73708915adc1b virt/kvm/arm/arm.c Marc Zyngier 2018-06-21 369 else
ef2e78ddadbb939 virt/kvm/arm/arm.c Marc Zyngier 2019-11-07 370 vcpu_set_wfx_traps(vcpu);
384b40caa8afae4 virt/kvm/arm/arm.c Mark Rutland 2019-04-23 371
d5acf9e6f385461 arch/arm64/kvm/arm.c Marc Zyngier 2020-06-04 372 if (vcpu_has_ptrauth(vcpu))
9c4793fc62aa38e arch/arm64/kvm/arm.c Marc Zyngier 2020-06-03 373 vcpu_ptrauth_disable(vcpu);
9c4793fc62aa38e arch/arm64/kvm/arm.c Marc Zyngier 2020-06-03 374 }
749cf76c5a363e1 arch/arm/kvm/arm.c Christoffer Dall 2013-01-20 375
:::::: The code at line 343 was first introduced by commit
:::::: 630a16854d2d28d13e96ff27ab43cc5caa4609fc arm64: KVM: Encapsulate kvm_cpu_context in kvm_host_data
:::::: TO: Andrew Murray <andrew.murray@arm.com>
:::::: CC: Marc Zyngier <marc.zyngier@arm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 71775 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-05 15:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-05 15:35 [arm-platforms:kvm-arm64/ptrauth-fixes 29/29] arch/arm64/kvm/arm.c:343:19: warning: variable 'cpu_data' set but not used 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;
as well as URLs for NNTP newsgroup(s).