Skip to contentSkip to conversation

arch/arm64/kvm/arm.c:493:15: warning: no previous prototype for function 'kvm_arch_vcpu_get_ip'

PATCH kernel test robot 1 participant 1 message Nov 26

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

Hi Sean,

FYI, the error/warning still remains.

tree:   https://android.googlesource.com/kernel/common android14-5.15
head:   36e3098ebf6d37570aab9dc5f8f4d24bd5ffdd06
commit: a2aa2a6c9491a807bb898220acb1062dd8226a12 [65/65] BACKPORT: KVM: Move x86's perf guest info callbacks to generic KVM
config: arm64-randconfig-2200-20261126 (https://download.01.org/0day-ci/archive/20261126/[email protected]/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project a2bea097c8bf336f31f45e88e96f20d88e37ff5a)
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261126/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> arch/arm64/kvm/arm.c:493:15: warning: no previous prototype for function 'kvm_arch_vcpu_get_ip' [-Wmissing-prototypes]
     493 | unsigned long kvm_arch_vcpu_get_ip(struct kvm_vcpu *vcpu)
         |               ^
   arch/arm64/kvm/arm.c:493:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     493 | unsigned long kvm_arch_vcpu_get_ip(struct kvm_vcpu *vcpu)
         | ^
         | static 

1 warning generated.

vim +/kvm_arch_vcpu_get_ip +493 arch/arm64/kvm/arm.c

492

 > 493	unsigned long kvm_arch_vcpu_get_ip(struct kvm_vcpu *vcpu)

494 {
495 return *vcpu_pc(vcpu);
496 }
497

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki