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,
	Sean Christopherson <sean.j.christopherson@intel.com>,
	Kuppuswamy Sathyanarayanan 
	<sathyanarayanan.kuppuswamy@linux.intel.com>,
	Andi Kleen <ak@linux.intel.com>, Tony Luck <tony.luck@intel.com>
Subject: [intel-tdx:guest-upstream 25/33] arch/x86/mm/mem_encrypt.c:69:13: warning: no previous prototype for function 'mem_encrypt_init'
Date: Sun, 9 Jan 2022 17:15:39 +0800	[thread overview]
Message-ID: <202201091704.eZKOuCWs-lkp@intel.com> (raw)

tree:   https://github.com/intel/tdx.git guest-upstream
head:   ce71b1628ffd76a06c99780f94767aad8e44305e
commit: 6cff98f39a336faa10ace47660265207d2f7a605 [25/33] x86/mm/cpa: Add support for TDX shared memory
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20220109/202201091704.eZKOuCWs-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f3a344d2125fa37e59bae1b0874442c650a19607)
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/6cff98f39a336faa10ace47660265207d2f7a605
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest-upstream
        git checkout 6cff98f39a336faa10ace47660265207d2f7a605
        # 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/mm/

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/mm/mem_encrypt.c:69:13: warning: no previous prototype for function 'mem_encrypt_init' [-Wmissing-prototypes]
   void __init mem_encrypt_init(void)
               ^
   arch/x86/mm/mem_encrypt.c:69:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __init mem_encrypt_init(void)
   ^
   static 
   1 warning generated.


vim +/mem_encrypt_init +69 arch/x86/mm/mem_encrypt.c

c329da7c594493 Kirill A. Shutemov 2020-03-18  67  
c329da7c594493 Kirill A. Shutemov 2020-03-18  68  /* Architecture __weak replacement functions */
c329da7c594493 Kirill A. Shutemov 2020-03-18 @69  void __init mem_encrypt_init(void)
c329da7c594493 Kirill A. Shutemov 2020-03-18  70  {
c329da7c594493 Kirill A. Shutemov 2020-03-18  71  	if (!cc_platform_has(CC_ATTR_MEM_ENCRYPT))
c329da7c594493 Kirill A. Shutemov 2020-03-18  72  		return;
c329da7c594493 Kirill A. Shutemov 2020-03-18  73  
c329da7c594493 Kirill A. Shutemov 2020-03-18  74  	/* Call into SWIOTLB to update the SWIOTLB DMA buffers */
c329da7c594493 Kirill A. Shutemov 2020-03-18  75  	swiotlb_update_mem_attributes();
c329da7c594493 Kirill A. Shutemov 2020-03-18  76  
c329da7c594493 Kirill A. Shutemov 2020-03-18  77  	print_mem_encrypt_feature_info();
c329da7c594493 Kirill A. Shutemov 2020-03-18  78  }
c329da7c594493 Kirill A. Shutemov 2020-03-18  79  

:::::: The code at line 69 was first introduced by commit
:::::: c329da7c594493b04b3edf8941dca27fedb214c7 x86: Move common memory encryption code to mem_encrypt.c

:::::: TO: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
:::::: CC: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>

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

                 reply	other threads:[~2022-01-09  9:31 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=202201091704.eZKOuCWs-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ak@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 \
    --cc=sathyanarayanan.kuppuswamy@linux.intel.com \
    --cc=sean.j.christopherson@intel.com \
    --cc=tony.luck@intel.com \
    /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

Powered by JetHome