* [sean-jc:x86/sched_in_cleanup 1/3] arch/arm64/kvm/arm.c:431:6: error: conflicting types for 'kvm_arch_vcpu_load'
@ 2024-04-28 8:58 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-28 8:58 UTC (permalink / raw)
To: Sean Christopherson; +Cc: llvm, oe-kbuild-all
tree: https://github.com/sean-jc/linux x86/sched_in_cleanup
head: f857e355f9536935b6c96bf389119576043aeb75
commit: 5d14663b4abaf97f4e415eef00c813aeaf823bbc [1/3] KVM: Plumb in a @sched_in flag to kvm_arch_vcpu_load()
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20240428/202404281607.Jwewi1zO-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 5ef5eb66fb428aaf61fb51b709f065c069c11242)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240428/202404281607.Jwewi1zO-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/202404281607.Jwewi1zO-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/arm64/kvm/arm.c:9:
In file included from include/linux/entry-kvm.h:6:
In file included from include/linux/resume_user_mode.h:8:
In file included from include/linux/memcontrol.h:21:
In file included from include/linux/mm.h:2208:
include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
509 | item];
| ~~~~
include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
516 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
528 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
537 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kvm/arm.c:431:6: error: conflicting types for 'kvm_arch_vcpu_load'
431 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
| ^
include/linux/kvm_host.h:1501:6: note: previous declaration is here
1501 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu, bool sched_in);
| ^
5 warnings and 1 error generated.
vim +/kvm_arch_vcpu_load +431 arch/arm64/kvm/arm.c
d35268da66870d7 arch/arm/kvm/arm.c Christoffer Dall 2015-08-25 430
749cf76c5a363e1 arch/arm/kvm/arm.c Christoffer Dall 2013-01-20 @431 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
749cf76c5a363e1 arch/arm/kvm/arm.c Christoffer Dall 2013-01-20 432 {
a0e50aa3f4a8a5c arch/arm64/kvm/arm.c Christoffer Dall 2019-01-04 433 struct kvm_s2_mmu *mmu;
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 434 int *last_ran;
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 435
a0e50aa3f4a8a5c arch/arm64/kvm/arm.c Christoffer Dall 2019-01-04 436 mmu = vcpu->arch.hw_mmu;
a0e50aa3f4a8a5c arch/arm64/kvm/arm.c Christoffer Dall 2019-01-04 437 last_ran = this_cpu_ptr(mmu->last_vcpu_ran);
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 438
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 439 /*
01dc9262ff5797b arch/arm64/kvm/arm.c Marc Zyngier 2021-03-03 440 * We guarantee that both TLBs and I-cache are private to each
01dc9262ff5797b arch/arm64/kvm/arm.c Marc Zyngier 2021-03-03 441 * vcpu. If detecting that a vcpu from the same VM has
01dc9262ff5797b arch/arm64/kvm/arm.c Marc Zyngier 2021-03-03 442 * previously run on the same physical CPU, call into the
01dc9262ff5797b arch/arm64/kvm/arm.c Marc Zyngier 2021-03-03 443 * hypervisor code to nuke the relevant contexts.
01dc9262ff5797b arch/arm64/kvm/arm.c Marc Zyngier 2021-03-03 444 *
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 445 * We might get preempted before the vCPU actually runs, but
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 446 * over-invalidation doesn't affect correctness.
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 447 */
5f4bd815ec71899 arch/arm64/kvm/arm.c Marc Zyngier 2023-09-27 448 if (*last_ran != vcpu->vcpu_idx) {
01dc9262ff5797b arch/arm64/kvm/arm.c Marc Zyngier 2021-03-03 449 kvm_call_hyp(__kvm_flush_cpu_context, mmu);
5f4bd815ec71899 arch/arm64/kvm/arm.c Marc Zyngier 2023-09-27 450 *last_ran = vcpu->vcpu_idx;
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 451 }
94d0e5980d6791b arch/arm/kvm/arm.c Marc Zyngier 2016-10-18 452
86ce85352f0da7e arch/arm/kvm/arm.c Christoffer Dall 2013-01-20 453 vcpu->cpu = cpu;
5b3e5e5bf230f56 arch/arm/kvm/arm.c Christoffer Dall 2013-01-20 454
328e56647944919 arch/arm/kvm/arm.c Christoffer Dall 2016-03-24 455 kvm_vgic_load(vcpu);
b103cc3f10c06fb virt/kvm/arm/arm.c Christoffer Dall 2016-10-16 456 kvm_timer_vcpu_load(vcpu);
13aeb9b400c5d7c arch/arm64/kvm/arm.c David Brazdil 2020-06-25 457 if (has_vhe())
27cde4c0fe28eab arch/arm64/kvm/arm.c Oliver Upton 2023-10-18 458 kvm_vcpu_load_vhe(vcpu);
e6b673b741ea0d7 virt/kvm/arm/arm.c Dave Martin 2018-04-06 459 kvm_arch_vcpu_load_fp(vcpu);
435e53fb5e21ad1 virt/kvm/arm/arm.c Andrew Murray 2019-04-09 460 kvm_vcpu_pmu_restore_guest(vcpu);
8564d6372a7d8a6 virt/kvm/arm/arm.c Steven Price 2019-10-21 461 if (kvm_arm_is_pvtime_enabled(&vcpu->arch))
8564d6372a7d8a6 virt/kvm/arm/arm.c Steven Price 2019-10-21 462 kvm_make_request(KVM_REQ_RECORD_STEAL, vcpu);
de73708915adc1b virt/kvm/arm/arm.c Marc Zyngier 2018-06-21 463
de73708915adc1b virt/kvm/arm/arm.c Marc Zyngier 2018-06-21 464 if (single_task_running())
ef2e78ddadbb939 virt/kvm/arm/arm.c Marc Zyngier 2019-11-07 465 vcpu_clear_wfx_traps(vcpu);
de73708915adc1b virt/kvm/arm/arm.c Marc Zyngier 2018-06-21 466 else
ef2e78ddadbb939 virt/kvm/arm/arm.c Marc Zyngier 2019-11-07 467 vcpu_set_wfx_traps(vcpu);
384b40caa8afae4 virt/kvm/arm/arm.c Mark Rutland 2019-04-23 468
29eb5a3c57f7e06 arch/arm64/kvm/arm.c Marc Zyngier 2020-06-04 469 if (vcpu_has_ptrauth(vcpu))
ef3e40a7ea8dbe2 arch/arm64/kvm/arm.c Marc Zyngier 2020-06-03 470 vcpu_ptrauth_disable(vcpu);
d2602bb4f5a4506 arch/arm64/kvm/arm.c Suzuki K Poulose 2021-04-05 471 kvm_arch_vcpu_load_debug_state_flags(vcpu);
583cda1b0e7d5d4 arch/arm64/kvm/arm.c Alexandru Elisei 2022-01-27 472
1ba11daef0a9b06 arch/arm64/kvm/arm.c Shaoqin Huang 2023-07-27 473 if (!cpumask_test_cpu(cpu, vcpu->kvm->arch.supported_cpus))
583cda1b0e7d5d4 arch/arm64/kvm/arm.c Alexandru Elisei 2022-01-27 474 vcpu_set_on_unsupported_cpu(vcpu);
749cf76c5a363e1 arch/arm/kvm/arm.c Christoffer Dall 2013-01-20 475 }
749cf76c5a363e1 arch/arm/kvm/arm.c Christoffer Dall 2013-01-20 476
:::::: The code at line 431 was first introduced by commit
:::::: 749cf76c5a363e1383108a914ea09530bfa0bd43 KVM: ARM: Initial skeleton to compile KVM support
:::::: TO: Christoffer Dall <c.dall@virtualopensystems.com>
:::::: CC: Christoffer Dall <c.dall@virtualopensystems.com>
--
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:[~2024-04-28 8:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-28 8:58 [sean-jc:x86/sched_in_cleanup 1/3] arch/arm64/kvm/arm.c:431:6: error: conflicting types for 'kvm_arch_vcpu_load' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.