lkml.org 
[lkml]   [2021]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[intel-tdx:guest-upstream 22/28] arch/x86/mm/pat/set_memory.c:1990:10: error: implicit declaration of function 'pgprot_cc_encrypted'
tree:   https://github.com/intel/tdx.git guest-upstream
head: da9f66a9b3a1f4ad0e9cb76472f628acf6f22dd5
commit: 0813e6258859bba3fd520771b318dab072137527 [22/28] x86/mm/cpa: Add support for TDX shared memory
config: i386-randconfig-r002-20211128 (https://download.01.org/0day-ci/archive/20211128/202111282341.viH6fVs6-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5c64d8ef8cc0c0ed3e0f2ae693d99e7f70f20a84)
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/0813e6258859bba3fd520771b318dab072137527
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest-upstream
git checkout 0813e6258859bba3fd520771b318dab072137527
# 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=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> arch/x86/mm/pat/set_memory.c:1990:10: error: implicit declaration of function 'pgprot_cc_encrypted' [-Werror,-Wimplicit-function-declaration]
return pgprot_cc_encrypted(__pgprot(0));
^
>> arch/x86/mm/pat/set_memory.c:1990:10: error: returning 'int' from a function with incompatible result type 'pgprot_t' (aka 'struct pgprot')
return pgprot_cc_encrypted(__pgprot(0));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/mm/pat/set_memory.c:1992:10: error: implicit declaration of function 'pgprot_cc_decrypted' [-Werror,-Wimplicit-function-declaration]
return pgprot_cc_decrypted(__pgprot(0));
^
arch/x86/mm/pat/set_memory.c:1992:10: note: did you mean 'pgprot_cc_encrypted'?
arch/x86/mm/pat/set_memory.c:1990:10: note: 'pgprot_cc_encrypted' declared here
return pgprot_cc_encrypted(__pgprot(0));
^
arch/x86/mm/pat/set_memory.c:1992:10: error: returning 'int' from a function with incompatible result type 'pgprot_t' (aka 'struct pgprot')
return pgprot_cc_decrypted(__pgprot(0));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.


vim +/pgprot_cc_encrypted +1990 arch/x86/mm/pat/set_memory.c

1986
1987 static pgprot_t pgprot_cc_mask(bool enc)
1988 {
1989 if (enc)
> 1990 return pgprot_cc_encrypted(__pgprot(0));
1991 else
> 1992 return pgprot_cc_decrypted(__pgprot(0));
1993 }
1994

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

\
 
 \ /
  Last update: 2021-11-28 16:45    [W:0.030 / U:0.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site