linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [intel-tdx:guest 54/144] arch/x86/kernel/tdx.c:225:5: warning: no previous prototype for 'tdx_hcall_set_notify_intr'
@ 2021-12-07 20:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-07 20:56 UTC (permalink / raw)
  To: Kuppuswamy Sathyanarayanan
  Cc: kbuild-all, linux-kernel, Tony Luck, Andi Kleen

tree:   https://github.com/intel/tdx.git guest
head:   41fe88a1b3c28543f49fa6ed9e0e9b6650ed7614
commit: 7315ae7f753386e793da1941e073c4cb1112e767 [54/144] x86/tdx: Add SetupEventNotifyInterrupt TDX hypercall support
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20211208/202112080412.ewbt4zCb-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/7315ae7f753386e793da1941e073c4cb1112e767
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest
        git checkout 7315ae7f753386e793da1941e073c4cb1112e767
        # 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:225:5: warning: no previous prototype for 'tdx_hcall_set_notify_intr' [-Wmissing-prototypes]
     225 | int tdx_hcall_set_notify_intr(u8 vector)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~


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

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

---
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:[~2021-12-07 20:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07 20:56 [intel-tdx:guest 54/144] arch/x86/kernel/tdx.c:225: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).