linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [intel-tdx:tdx/guest-rebased 55/133] arch/x86/kernel/tdx.c:224:5: warning: no previous prototype for 'tdx_hcall_set_notify_intr'
@ 2022-01-13 18:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-13 18:04 UTC (permalink / raw)
  To: Kuppuswamy Sathyanarayanan
  Cc: kbuild-all, linux-kernel, Kirill A. Shutemov, Tony Luck,
	Andi Kleen

tree:   https://github.com/intel/tdx.git tdx/guest-rebased
head:   e3995864d37c56f431c93fc3dc454d9c65f5e9ea
commit: eff3229d99a6ea4b75fa0656fca38ac6db67ca7d [55/133] x86/tdx: Add SetupEventNotifyInterrupt TDX hypercall support
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220114/202201140147.8KQUVLdd-lkp@intel.com/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/eff3229d99a6ea4b75fa0656fca38ac6db67ca7d
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx tdx/guest-rebased
        git checkout eff3229d99a6ea4b75fa0656fca38ac6db67ca7d
        # 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@intel.com>

All warnings (new ones prefixed by >>):

>> arch/x86/kernel/tdx.c:224:5: warning: no previous prototype for 'tdx_hcall_set_notify_intr' [-Wmissing-prototypes]
     224 | int tdx_hcall_set_notify_intr(u8 vector)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~


vim +/tdx_hcall_set_notify_intr +224 arch/x86/kernel/tdx.c

   216	
   217	/*
   218	 * tdx_hcall_set_notify_intr() - Setup Event Notify Interrupt Vector.
   219	 *
   220	 * @vector        : Vector address to be used for notification.
   221	 *
   222	 * return 0 on success or failure error number.
   223	 */
 > 224	int tdx_hcall_set_notify_intr(u8 vector)
   225	{
   226		u64 ret;
   227	
   228		/* Minimum vector value allowed is 32 */
   229		if (vector < 32)
   230			return -EINVAL;
   231	
   232		/*
   233		 * Register callback vector address with VMM. More details
   234		 * about the ABI can be found in TDX Guest-Host-Communication
   235		 * Interface (GHCI), sec 3.5.
   236		 */
   237		ret = _trace_tdx_hypercall(TDVMCALL_SETUP_NOTIFY_INTR, vector, 0, 0, 0,
   238					   NULL);
   239	
   240		if (ret == TDVMCALL_SUCCESS)
   241			return 0;
   242		else if (ret == TDCALL_INVALID_OPERAND)
   243			return -EINVAL;
   244	
   245		return -EIO;
   246	}
   247	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-13 18:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-13 18:04 [intel-tdx:tdx/guest-rebased 55/133] arch/x86/kernel/tdx.c:224:5: warning: no previous prototype for 'tdx_hcall_set_notify_intr' 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).