* [intel-tdx:guest-rtmr 5/6] arch/x86/coco/tdx/tdx.c:91: warning: expecting prototype for tdg_vm_td(). Prototype was for tdg_vm_rd() instead
@ 2024-01-24 2:16 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-24 2:16 UTC (permalink / raw)
To: Kuppuswamy Sathyanarayanan; +Cc: llvm, oe-kbuild-all
tree: https://github.com/intel/tdx.git guest-rtmr
head: 69224edf428babfd955487a0de70c537098e040e
commit: 9fb6a741dc8e5c42c78c97b9762686526aa1e04c [5/6] x86/tdx: Add RTMR read/update interfaces
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240124/202401241058.BAepzLFx-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/20240124/202401241058.BAepzLFx-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/202401241058.BAepzLFx-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/x86/coco/tdx/tdx.c:91: warning: expecting prototype for tdg_vm_td(). Prototype was for tdg_vm_rd() instead
vim +91 arch/x86/coco/tdx/tdx.c
79
80 /**
81 * tdg_vm_td() - Wrapper to read a TD-scope metadata field.
82 * @field: Metadata identifier ID
83 * @data: Buffer pointer to store the field value.
84 *
85 * Refer to section titled "TDG.VM.RD Leaf" in the TDX Module
86 * v1.0 specification for more information on TDG.VM.RD TDCALL.
87 *
88 * Return 0 on success or errno on failure.
89 */
90 static int tdg_vm_rd(u64 field, u64 *data)
> 91 {
92 struct tdx_module_args args = {
93 .rcx = 0,
94 .rdx = field,
95 };
96 u64 ret;
97
98 ret = __tdcall(TDG_VM_RD, &args);
99 if (ret)
100 return -EIO;
101
102 *data = args.r8;
103
104 return 0;
105 }
106
--
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-01-24 2:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-24 2:16 [intel-tdx:guest-rtmr 5/6] arch/x86/coco/tdx/tdx.c:91: warning: expecting prototype for tdg_vm_td(). Prototype was for tdg_vm_rd() instead 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 NNTP newsgroup(s).