Content-Type: multipart/mixed; boundary="===============1200682456117204312==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [intel-tdx:guest-upstream 24/33] arch/x86/mm/mem_encrypt.c:69:13: warning: no previous prototype for function 'mem_encrypt_init' Date: Wed, 26 Jan 2022 11:34:32 +0800 Message-ID: <202201261113.3P3URW2n-lkp@intel.com> List-Id: --===============1200682456117204312== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/intel/tdx.git guest-upstream head: 5891b2d3ab5941ec7f5fefaa09fdd84a46ec82f5 commit: 0484e85cb3942b81e2b07162a363bda055c762a0 [24/33] x86/mm/cpa: Add su= pport for TDX shared memory config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/202201= 26/202201261113.3P3URW2n-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 997e12= 8e2a78f5a5434fc75997441ae1ee76f8a4) reproduce (this is a W=3D1 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/0484e85cb3942b81e2b07162a363b= da055c762a0 git remote add intel-tdx https://github.com/intel/tdx.git git fetch --no-tags intel-tdx guest-upstream git checkout 0484e85cb3942b81e2b07162a363bda055c762a0 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash arch/x86/mm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/x86/mm/mem_encrypt.c:69:13: warning: no previous prototype for func= tion '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 i= s 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 20f07a044a76ae Kirill A. Shutemov 2021-12-06 67 = 20f07a044a76ae Kirill A. Shutemov 2021-12-06 68 /* Architecture __weak re= placement functions */ 20f07a044a76ae Kirill A. Shutemov 2021-12-06 @69 void __init mem_encrypt_i= nit(void) 20f07a044a76ae Kirill A. Shutemov 2021-12-06 70 { 20f07a044a76ae Kirill A. Shutemov 2021-12-06 71 if (!cc_platform_has(CC_= ATTR_MEM_ENCRYPT)) 20f07a044a76ae Kirill A. Shutemov 2021-12-06 72 return; 20f07a044a76ae Kirill A. Shutemov 2021-12-06 73 = 20f07a044a76ae Kirill A. Shutemov 2021-12-06 74 /* Call into SWIOTLB to = update the SWIOTLB DMA buffers */ 20f07a044a76ae Kirill A. Shutemov 2021-12-06 75 swiotlb_update_mem_attri= butes(); 20f07a044a76ae Kirill A. Shutemov 2021-12-06 76 = 20f07a044a76ae Kirill A. Shutemov 2021-12-06 77 print_mem_encrypt_featur= e_info(); 20f07a044a76ae Kirill A. Shutemov 2021-12-06 78 } 20f07a044a76ae Kirill A. Shutemov 2021-12-06 79 = :::::: The code at line 69 was first introduced by commit :::::: 20f07a044a76aebaaa0603038857229b5c460d69 x86/sev: Move common memory= encryption code to mem_encrypt.c :::::: TO: Kirill A. Shutemov :::::: CC: Borislav Petkov --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1200682456117204312==--