* [kvm:kvm-coco-queue 30/121] arch/x86/include/asm/tdx.h:183:12: warning: 'tdx_get_nr_guest_keyids' defined but not used
@ 2025-02-21 6:19 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-21 6:19 UTC (permalink / raw)
To: Zhiming Hu; +Cc: oe-kbuild-all, kvm, Farrah Chen, Paolo Bonzini, Isaku Yamahata
tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git kvm-coco-queue
head: ff2046f9bcd0883c72158404a1466eb96781ccca
commit: 5c017bb4d89f65807c56d652443b53e7765b8b35 [30/121] KVM: TDX: Register TDX host key IDs to cgroup misc controller
config: i386-buildonly-randconfig-001-20250221 (https://download.01.org/0day-ci/archive/20250221/202502211420.jG76aLe3-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250221/202502211420.jG76aLe3-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502211420.jG76aLe3-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/x86/kernel/asm-offsets.c:22:
>> arch/x86/include/asm/tdx.h:183:12: warning: 'tdx_get_nr_guest_keyids' defined but not used [-Wunused-function]
183 | static u32 tdx_get_nr_guest_keyids(void) { return 0; }
| ^~~~~~~~~~~~~~~~~~~~~~~
--
In file included from arch/x86/kernel/asm-offsets.c:22:
>> arch/x86/include/asm/tdx.h:183:12: warning: 'tdx_get_nr_guest_keyids' defined but not used [-Wunused-function]
183 | static u32 tdx_get_nr_guest_keyids(void) { return 0; }
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/tdx_get_nr_guest_keyids +183 arch/x86/include/asm/tdx.h
162
163 u64 tdh_mng_addcx(struct tdx_td *td, struct page *tdcs_page);
164 u64 tdh_vp_addcx(struct tdx_vp *vp, struct page *tdcx_page);
165 u64 tdh_mng_key_config(struct tdx_td *td);
166 u64 tdh_mng_create(struct tdx_td *td, u16 hkid);
167 u64 tdh_vp_create(struct tdx_td *td, struct tdx_vp *vp);
168 u64 tdh_mng_rd(struct tdx_td *td, u64 field, u64 *data);
169 u64 tdh_vp_flush(struct tdx_vp *vp);
170 u64 tdh_mng_vpflushdone(struct tdx_td *td);
171 u64 tdh_mng_key_freeid(struct tdx_td *td);
172 u64 tdh_mng_init(struct tdx_td *td, u64 td_params, u64 *extended_err);
173 u64 tdh_vp_init(struct tdx_vp *vp, u64 initial_rcx, u32 x2apicid);
174 u64 tdh_vp_rd(struct tdx_vp *vp, u64 field, u64 *data);
175 u64 tdh_vp_wr(struct tdx_vp *vp, u64 field, u64 data, u64 mask);
176 u64 tdh_phymem_page_reclaim(struct page *page, u64 *tdx_pt, u64 *tdx_owner, u64 *tdx_size);
177 u64 tdh_phymem_cache_wb(bool resume);
178 u64 tdh_phymem_page_wbinvd_tdr(struct tdx_td *td);
179 #else
180 static inline void tdx_init(void) { }
181 static inline int tdx_cpu_enable(void) { return -ENODEV; }
182 static inline int tdx_enable(void) { return -ENODEV; }
> 183 static u32 tdx_get_nr_guest_keyids(void) { return 0; }
184 static inline const char *tdx_dump_mce_info(struct mce *m) { return NULL; }
185 static inline const struct tdx_sys_info *tdx_get_sysinfo(void) { return NULL; }
186 #endif /* CONFIG_INTEL_TDX_HOST */
187
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-21 6:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-21 6:19 [kvm:kvm-coco-queue 30/121] arch/x86/include/asm/tdx.h:183:12: warning: 'tdx_get_nr_guest_keyids' defined but not used kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox