[intel-tdx:guest-upstream 5/32] arch/x86/coco/tdx/tdx.c:29:6: warning: no previous prototype for '__tdx_hypercall_failed'

From: kernel test robot
Date: Wed Mar 16 2022 - 08:15:31 EST


tree: https://github.com/intel/tdx.git guest-upstream
head: 8e1641a390cef993022d8c7fcd7e212e06ba7cd3
commit: 3878b00acc0802659680a4f4ed957d30a364961b [5/32] x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220316/202203162038.wMUgXWKE-lkp@xxxxxxxxx/config)
compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
reproduce (this is a W=1 build):
# https://github.com/intel/tdx/commit/3878b00acc0802659680a4f4ed957d30a364961b
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest-upstream
git checkout 3878b00acc0802659680a4f4ed957d30a364961b
# 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/coco/tdx/

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/coco/tdx/tdx.c:29:6: warning: no previous prototype for '__tdx_hypercall_failed' [-Wmissing-prototypes]
29 | void __tdx_hypercall_failed(void)
| ^~~~~~~~~~~~~~~~~~~~~~


vim +/__tdx_hypercall_failed +29 arch/x86/coco/tdx/tdx.c

27
28 /* Called from __tdx_hypercall() for unrecoverable failure */
> 29 void __tdx_hypercall_failed(void)

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