oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [intel-tdx:guest-tdx-asm 41/41] arch/x86/hyperv/ivm.c:395:12: error: call to undeclared function '__tdx_hypercall'; ISO C99 and later do not support implicit function declarations
@ 2024-04-19  2:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-19  2:51 UTC (permalink / raw
  To: Kirill A. Shutemov; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/intel/tdx.git guest-tdx-asm
head:   c579a842993d071476b16a8c24221b1ed3387b35
commit: c579a842993d071476b16a8c24221b1ed3387b35 [41/41] drop unused TDCALL wrappers
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240419/202404191044.kNOxYlUp-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240419/202404191044.kNOxYlUp-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/202404191044.kNOxYlUp-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/x86/hyperv/ivm.c:395:12: error: call to undeclared function '__tdx_hypercall'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     395 |         u64 ret = __tdx_hypercall(&args);
         |                   ^
   arch/x86/hyperv/ivm.c:395:12: note: did you mean 'hv_tdx_hypercall'?
   include/asm-generic/mshyperv.h:288:5: note: 'hv_tdx_hypercall' declared here
     288 | u64 hv_tdx_hypercall(u64 control, u64 param1, u64 param2);
         |     ^
   arch/x86/hyperv/ivm.c:408:12: error: call to undeclared function '__tdx_hypercall'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     408 |         u64 ret = __tdx_hypercall(&args);
         |                   ^
   arch/x86/hyperv/ivm.c:424:8: error: call to undeclared function '__tdx_hypercall'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     424 |         (void)__tdx_hypercall(&args);
         |               ^
   3 errors generated.


vim +/__tdx_hypercall +395 arch/x86/hyperv/ivm.c

d3a9d7e49d1531 Dexuan Cui 2023-08-24  384  
b9b4fe3a72b60c Dexuan Cui 2023-08-24  385  #ifdef CONFIG_INTEL_TDX_GUEST
b9b4fe3a72b60c Dexuan Cui 2023-08-24  386  static void hv_tdx_msr_write(u64 msr, u64 val)
b9b4fe3a72b60c Dexuan Cui 2023-08-24  387  {
8a8544bde858e5 Kai Huang  2023-08-15  388  	struct tdx_module_args args = {
b9b4fe3a72b60c Dexuan Cui 2023-08-24  389  		.r10 = TDX_HYPERCALL_STANDARD,
b9b4fe3a72b60c Dexuan Cui 2023-08-24  390  		.r11 = EXIT_REASON_MSR_WRITE,
b9b4fe3a72b60c Dexuan Cui 2023-08-24  391  		.r12 = msr,
b9b4fe3a72b60c Dexuan Cui 2023-08-24  392  		.r13 = val,
b9b4fe3a72b60c Dexuan Cui 2023-08-24  393  	};
b9b4fe3a72b60c Dexuan Cui 2023-08-24  394  
b9b4fe3a72b60c Dexuan Cui 2023-08-24 @395  	u64 ret = __tdx_hypercall(&args);
b9b4fe3a72b60c Dexuan Cui 2023-08-24  396  
b9b4fe3a72b60c Dexuan Cui 2023-08-24  397  	WARN_ONCE(ret, "Failed to emulate MSR write: %lld\n", ret);
b9b4fe3a72b60c Dexuan Cui 2023-08-24  398  }
b9b4fe3a72b60c Dexuan Cui 2023-08-24  399  

:::::: The code at line 395 was first introduced by commit
:::::: b9b4fe3a72b60c8d74a9ffb61aa778f04eaddd87 x86/hyperv: Use TDX GHCI to access some MSRs in a TDX VM with the paravisor

:::::: TO: Dexuan Cui <decui@microsoft.com>
:::::: CC: Wei Liu <wei.liu@kernel.org>

-- 
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:[~2024-04-19  2:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-19  2:51 [intel-tdx:guest-tdx-asm 41/41] arch/x86/hyperv/ivm.c:395:12: error: call to undeclared function '__tdx_hypercall'; ISO C99 and later do not support implicit function declarations 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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).