mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [intel-tdx:guest-upstream 22/28] arch/x86/mm/pat/set_memory.c:1990:10: error: implicit declaration of function 'pgprot_cc_encrypted'
@ 2021-11-28 15:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-28 15:42 UTC (permalink / raw)
  To: Kirill A. Shutemov
  Cc: llvm, kbuild-all, linux-kernel, Sean Christopherson, Andi Kleen,
	Tony Luck, Kuppuswamy Sathyanarayanan

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-28 15:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-28 15:42 [intel-tdx:guest-upstream 22/28] arch/x86/mm/pat/set_memory.c:1990:10: error: implicit declaration of function 'pgprot_cc_encrypted' kernel test robot

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®