lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 14 Jan 2022 02:04:09 +0800 From: kernel test robot <lkp@...el.com> To: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@...ux.intel.com> Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org, "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>, Tony Luck <tony.luck@...el.com>, Andi Kleen <ak@...ux.intel.com> Subject: [intel-tdx:tdx/guest-rebased 55/133] arch/x86/kernel/tdx.c:224:5: warning: no previous prototype for 'tdx_hcall_set_notify_intr' 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@...el.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
Powered by blists - more mailing lists