lkml.org 
[lkml]   [2022]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[intel-tdx:guest-upstream 6/32] arch/x86/coco/tdx/tdx.c:33:6: warning: no previous prototype for function '__tdx_hypercall_failed'
tree:   https://github.com/intel/tdx.git guest-upstream
head: 8e1641a390cef993022d8c7fcd7e212e06ba7cd3
commit: 414852218596d11d52aa9f51f8484450c7a23712 [6/32] x86/tdx: Extend the confidential computing API to support TDX guests
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20220319/202203191320.LNIsYlbh-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a6e70e4056dff962ec634c5bd4f2f4105a0bef71)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel/tdx/commit/414852218596d11d52aa9f51f8484450c7a23712
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest-upstream
git checkout 414852218596d11d52aa9f51f8484450c7a23712
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/coco/tdx/

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/coco/tdx/tdx.c:33:6: warning: no previous prototype for function '__tdx_hypercall_failed' [-Wmissing-prototypes]
void __tdx_hypercall_failed(void)
^
arch/x86/coco/tdx/tdx.c:33:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __tdx_hypercall_failed(void)
^
static
arch/x86/coco/tdx/tdx.c:18:19: warning: unused function '_tdx_hypercall' [-Wunused-function]
static inline u64 _tdx_hypercall(u64 fn, u64 r12, u64 r13, u64 r14, u64 r15)
^
2 warnings generated.


vim +/__tdx_hypercall_failed +33 arch/x86/coco/tdx/tdx.c

3878b00acc0802 Kuppuswamy Sathyanarayanan 2021-02-21 31
3878b00acc0802 Kuppuswamy Sathyanarayanan 2021-02-21 32 /* Called from __tdx_hypercall() for unrecoverable failure */
3878b00acc0802 Kuppuswamy Sathyanarayanan 2021-02-21 @33 void __tdx_hypercall_failed(void)
3878b00acc0802 Kuppuswamy Sathyanarayanan 2021-02-21 34 {
3878b00acc0802 Kuppuswamy Sathyanarayanan 2021-02-21 35 panic("TDVMCALL failed. TDX module bug?");
3878b00acc0802 Kuppuswamy Sathyanarayanan 2021-02-21 36 }
414852218596d1 Kirill A. Shutemov 2022-02-18 37

:::::: The code at line 33 was first introduced by commit
:::::: 3878b00acc0802659680a4f4ed957d30a364961b x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions

:::::: TO: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
:::::: CC: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>

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

\
 
 \ /
  Last update: 2022-03-19 06:54    [W:0.266 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site