lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111282341.viH6fVs6-lkp@intel.com>
Date:   Sun, 28 Nov 2021 23:42:14 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Sean Christopherson <sean.j.christopherson@...el.com>,
        Andi Kleen <ak@...ux.intel.com>,
        Tony Luck <tony.luck@...el.com>,
        Kuppuswamy Sathyanarayanan 
        <sathyanarayanan.kuppuswamy@...ux.intel.com>
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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ