[intel-tdx:kvm-upstream-workaround 86/141] arch/x86/kvm/vmx/tdx_stubs.c:26:5: warning: no previous prototype for 'tdx_deliver_posted_interrupt'

From: kernel test robot
Date: Wed Feb 09 2022 - 02:38:46 EST


tree: https://github.com/intel/tdx.git kvm-upstream-workaround
head: 58f28b2fcc73d05d6a5a9f70a8fdacefa99acb85
commit: c4a72d4d1cfe13ebb2ee11e183fc4ebc9bc831d0 [86/141] KVM: TDX: Implement interrupt injection
config: x86_64-randconfig-a002 (https://download.01.org/0day-ci/archive/20220209/202202091551.vEzKN4Pb-lkp@xxxxxxxxx/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/tdx/commit/c4a72d4d1cfe13ebb2ee11e183fc4ebc9bc831d0
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx kvm-upstream-workaround
git checkout c4a72d4d1cfe13ebb2ee11e183fc4ebc9bc831d0
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kvm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

arch/x86/kvm/vmx/tdx_stubs.c:9:5: warning: no previous prototype for 'tdx_module_setup' [-Wmissing-prototypes]
9 | int tdx_module_setup(void) { return -EOPNOTSUPP; };
| ^~~~~~~~~~~~~~~~
>> arch/x86/kvm/vmx/tdx_stubs.c:26:5: warning: no previous prototype for 'tdx_deliver_posted_interrupt' [-Wmissing-prototypes]
26 | int tdx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) { return 0; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/tdx_deliver_posted_interrupt +26 arch/x86/kvm/vmx/tdx_stubs.c

24
25 void tdx_apicv_post_state_restore(struct kvm_vcpu *vcpu) {}
> 26 int tdx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) { return 0; }
27

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx