From: kernel test robot <lkp@intel.com>
To: Andi Kleen <ak@linux.intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy@linux.intel.com>
Subject: [intel-tdx:guest 98/136] arch/x86/kernel/tdx.c:489:14: warning: no previous prototype for function 'tdx_write_msr'
Date: Sun, 17 Dec 2023 05:16:09 +0800 [thread overview]
Message-ID: <202312170538.kmTS0vGH-lkp@intel.com> (raw)
tree: https://github.com/intel/tdx.git guest
head: f3d7a7e86bf2f0d5ce629f2fb7be11dca88ac06d
commit: 0b2ba653fca5799158883bdaefabe6176aea7db9 [98/136] x86/tdx: Use direct paravirt call for wrmsrl
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20231217/202312170538.kmTS0vGH-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231217/202312170538.kmTS0vGH-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312170538.kmTS0vGH-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/x86/kernel/tdx.c:266:5: warning: no previous prototype for function 'tdx_hcall_set_notify_intr' [-Wmissing-prototypes]
int tdx_hcall_set_notify_intr(u8 vector)
^
arch/x86/kernel/tdx.c:266:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int tdx_hcall_set_notify_intr(u8 vector)
^
static
>> arch/x86/kernel/tdx.c:489:14: warning: no previous prototype for function 'tdx_write_msr' [-Wmissing-prototypes]
void notrace tdx_write_msr(unsigned int msr, u32 low, u32 high)
^
arch/x86/kernel/tdx.c:489:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void notrace tdx_write_msr(unsigned int msr, u32 low, u32 high)
^
static
2 warnings generated.
vim +/tdx_write_msr +489 arch/x86/kernel/tdx.c
488
> 489 void notrace tdx_write_msr(unsigned int msr, u32 low, u32 high)
490 {
491 if (tdx_fast_tdcall_path_msr(msr))
492 tdx_write_msr_safe(msr, low, high);
493 else
494 native_write_msr(msr, low, high);
495 }
496
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-12-16 21:16 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=202312170538.kmTS0vGH-lkp@intel.com \
--to=lkp@intel.com \
--cc=ak@linux.intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sathyanarayanan.kuppuswamy@linux.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