[intel-tdx:kvm-upstream-workaround 21/141] arch/x86/include/asm/tdx_host.h:60:35: warning: 'struct tdsysinfo_struct' declared inside parameter list will not be visible outside of this definition or declaration

From: kernel test robot
Date: Tue Feb 08 2022 - 22:10:28 EST


tree: https://github.com/intel/tdx.git kvm-upstream-workaround
head: 58f28b2fcc73d05d6a5a9f70a8fdacefa99acb85
commit: 13dd0fa9c0ba8880c196a8feecd826f4c16b18f8 [21/141] x86/cpu: make init_tdx() system wide info about TDX module
config: i386-randconfig-a003 (https://download.01.org/0day-ci/archive/20220209/202202091001.FUPeNVtq-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/13dd0fa9c0ba8880c196a8feecd826f4c16b18f8
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx kvm-upstream-workaround
git checkout 13dd0fa9c0ba8880c196a8feecd826f4c16b18f8
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/cpu/

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

All warnings (new ones prefixed by >>):

In file included from arch/x86/kernel/cpu/intel.c:30:
>> arch/x86/include/asm/tdx_host.h:60:35: warning: 'struct tdsysinfo_struct' declared inside parameter list will not be visible outside of this definition or declaration
60 | static inline int init_tdx(struct tdsysinfo_struct *r) { return -ENODEV; }
| ^~~~~~~~~~~~~~~~


vim +60 arch/x86/include/asm/tdx_host.h

53
54 void detect_tdx_keyids(struct cpuinfo_x86 *c);
55 int detect_tdx(void);
56 int init_tdx(struct tdsysinfo_struct *r);
57 #else
58 static inline void detect_tdx_keyids(struct cpuinfo_x86 *c) { }
59 static inline int detect_tdx(void) { return -ENODEV; }
> 60 static inline int init_tdx(struct tdsysinfo_struct *r) { return -ENODEV; }
61 #endif /* CONFIG_INTEL_TDX_HOST */
62

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