mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [intel-tdx:guest-upstream 23/33] arch/x86/kernel/cc_platform.c:82:10: warning: no previous prototype for 'pgprot_encrypted'
@ 2022-01-07 14:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-07 14:55 UTC (permalink / raw)
  To: Kirill A. Shutemov
  Cc: kbuild-all, linux-kernel, Kuppuswamy Sathyanarayanan, Andi Kleen,
	Tony Luck

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@intel.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

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

only message in thread, other threads:[~2022-01-07 14:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 14:55 [intel-tdx:guest-upstream 23/33] arch/x86/kernel/cc_platform.c:82:10: warning: no previous prototype for 'pgprot_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

Powered by JetHome