mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Dave Hansen <dave.hansen@linux.intel.com>,
	Borislav Petkov <bp@suse.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'
Date: Sat, 19 Mar 2022 13:52:05 +0800	[thread overview]
Message-ID: <202203191320.LNIsYlbh-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-03-19  5:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202203191320.LNIsYlbh-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bp@suse.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®