[intel-tdx:tdx/guest-rebased 104/133] arch/x86/kernel/tdx.c:508:14: warning: no previous prototype for 'tdx_write_msr'

From: kernel test robot
Date: Thu Jan 13 2022 - 14:37:08 EST


tree: https://github.com/intel/tdx.git tdx/guest-rebased
head: e3995864d37c56f431c93fc3dc454d9c65f5e9ea
commit: 95bf288c8d7a4e30ca710931bfb0deb2a6f020e7 [104/133] x86/tdx: Use direct paravirt call for wrmsrl
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220114/202201140330.80EFnRRg-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/95bf288c8d7a4e30ca710931bfb0deb2a6f020e7
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx tdx/guest-rebased
git checkout 95bf288c8d7a4e30ca710931bfb0deb2a6f020e7
# 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/kernel/

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/kernel/tdx.c:267:5: warning: no previous prototype for 'tdx_hcall_set_notify_intr' [-Wmissing-prototypes]
267 | int tdx_hcall_set_notify_intr(u8 vector)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/kernel/tdx.c:508:14: warning: no previous prototype for 'tdx_write_msr' [-Wmissing-prototypes]
508 | void notrace tdx_write_msr(unsigned int msr, u32 low, u32 high)
| ^~~~~~~~~~~~~


vim +/tdx_write_msr +508 arch/x86/kernel/tdx.c

507
> 508 void notrace tdx_write_msr(unsigned int msr, u32 low, u32 high)
509 {
510 if (tdx_fast_tdcall_path_msr(msr))
511 __tdx_write_msr(msr, low, high);
512 else
513 native_write_msr(msr, low, high);
514 }
515

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