mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Kuppuswamy Sathyanarayanan 
	<sathyanarayanan.kuppuswamy@linux.intel.com>,
	Andi Kleen <ak@linux.intel.com>, Tony Luck <tony.luck@intel.com>
Subject: [intel-tdx:guest-upstream 23/33] arch/x86/kernel/cc_platform.c:82:10: warning: no previous prototype for 'pgprot_encrypted'
Date: Fri, 7 Jan 2022 22:55:31 +0800	[thread overview]
Message-ID: <202201072256.yQG6agRZ-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-01-07 14:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202201072256.yQG6agRZ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ak@linux.intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sathyanarayanan.kuppuswamy@linux.intel.com \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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