[intel-tdx:guest-attest-wip 2/3] drivers/virt/coco/tdx-guest/tdx-guest.c:129:32: warning: 'tdx_guest_ids' defined but not used

From: kernel test robot
Date: Wed Sep 21 2022 - 04:46:53 EST


tree: https://github.com/intel/tdx.git guest-attest-wip
head: 33cc9e3b6141b4339bceb2591c188d866c7a9052
commit: 3a38d73702055606f2b0a1ea0610767e7142e0cb [2/3] virt: Add TDX guest driver
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220921/202209211607.tCtTWKbV-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/tdx/commit/3a38d73702055606f2b0a1ea0610767e7142e0cb
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest-attest-wip
git checkout 3a38d73702055606f2b0a1ea0610767e7142e0cb
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/virt/coco/tdx-guest/

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

All warnings (new ones prefixed by >>):

>> drivers/virt/coco/tdx-guest/tdx-guest.c:129:32: warning: 'tdx_guest_ids' defined but not used [-Wunused-const-variable=]
129 | static const struct x86_cpu_id tdx_guest_ids[] = {
| ^~~~~~~~~~~~~


vim +/tdx_guest_ids +129 drivers/virt/coco/tdx-guest/tdx-guest.c

128
> 129 static const struct x86_cpu_id tdx_guest_ids[] = {
130 X86_MATCH_FEATURE(X86_FEATURE_TDX_GUEST, NULL),
131 {}
132 };
133 MODULE_DEVICE_TABLE(x86cpu, tdx_guest_ids);
134

--
0-DAY CI Kernel Test Service
https://01.org/lkp