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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sat, 19 Mar 2022 13:52:05 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Dave Hansen <dave.hansen@...ux.intel.com>,
        Borislav Petkov <bp@...e.de>
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@...el.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@...ux.intel.com>
:::::: CC: Kirill A. Shutemov <kirill.shutemov@...ux.intel.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ