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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201072256.yQG6agRZ-lkp@intel.com>
Date:   Fri, 7 Jan 2022 22:55:31 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Kuppuswamy Sathyanarayanan 
        <sathyanarayanan.kuppuswamy@...ux.intel.com>,
        Andi Kleen <ak@...ux.intel.com>,
        Tony Luck <tony.luck@...el.com>
Subject: [intel-tdx:guest-upstream 23/33]
 arch/x86/kernel/cc_platform.c:82:10: warning: no previous prototype for
 'pgprot_encrypted'

tree:   https://github.com/intel/tdx.git guest-upstream
head:   a19e5eff857e7bb62ae28f50bf8416a71fee443d
commit: f4b36432cc6c6a9388da5f75da8bffa78d6a74a9 [23/33] x86/tdx: Make pages shared in ioremap()
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220107/202201072256.yQG6agRZ-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/tdx/commit/f4b36432cc6c6a9388da5f75da8bffa78d6a74a9
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest-upstream
        git checkout f4b36432cc6c6a9388da5f75da8bffa78d6a74a9
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/

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

All warnings (new ones prefixed by >>):

>> arch/x86/kernel/cc_platform.c:82:10: warning: no previous prototype for 'pgprot_encrypted' [-Wmissing-prototypes]
      82 | pgprot_t pgprot_encrypted(pgprot_t prot)
         |          ^~~~~~~~~~~~~~~~
>> arch/x86/kernel/cc_platform.c:93:10: warning: no previous prototype for 'pgprot_decrypted' [-Wmissing-prototypes]
      93 | pgprot_t pgprot_decrypted(pgprot_t prot)
         |          ^~~~~~~~~~~~~~~~


vim +/pgprot_encrypted +82 arch/x86/kernel/cc_platform.c

    81	
  > 82	pgprot_t pgprot_encrypted(pgprot_t prot)
    83	{
    84	        if (sme_me_mask)
    85	                return __pgprot(__sme_set(pgprot_val(prot)));
    86	        else if (is_tdx_guest())
    87			return __pgprot(pgprot_val(prot) & ~tdx_shared_mask());
    88	
    89	        return prot;
    90	}
    91	EXPORT_SYMBOL_GPL(pgprot_encrypted);
    92	
  > 93	pgprot_t pgprot_decrypted(pgprot_t prot)

---
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