From: kernel test robot <lkp@intel.com>
To: Isaku Yamahata <isaku.yamahata@intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Chenyi Qiang <chenyi.qiang@intel.com>
Subject: [intel-tdx:kvm 24/193] arch/x86/kernel/cpu/tsx.c:186:5: warning: no previous prototype for 'tsx_ctrl_clear'
Date: Wed, 9 Mar 2022 18:26:26 +0800 [thread overview]
Message-ID: <202203091850.dfwae6UT-lkp@intel.com> (raw)
tree: https://github.com/intel/tdx.git kvm
head: 7a7d51d52f45bbd82e264c7f940d74491305f5ce
commit: 2c9aac7eef8430d99ae51f243da09dd7892dc9cd [24/193] x86/cpu/tsx: Add helper functions to save/restore IA32_TSX_CTRL MSR
config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220309/202203091850.dfwae6UT-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/2c9aac7eef8430d99ae51f243da09dd7892dc9cd
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx kvm
git checkout 2c9aac7eef8430d99ae51f243da09dd7892dc9cd
# 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/cpu/
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/cpu/tsx.c:186:5: warning: no previous prototype for 'tsx_ctrl_clear' [-Wmissing-prototypes]
186 | u64 tsx_ctrl_clear(void)
| ^~~~~~~~~~~~~~
>> arch/x86/kernel/cpu/tsx.c:199:6: warning: no previous prototype for 'tsx_ctrl_restore' [-Wmissing-prototypes]
199 | void tsx_ctrl_restore(u64 tsx_ctrl)
| ^~~~~~~~~~~~~~~~
vim +/tsx_ctrl_clear +186 arch/x86/kernel/cpu/tsx.c
184
185 /* Clear the MSR_TSX_CTRL and return the old value if supported */
> 186 u64 tsx_ctrl_clear(void)
187 {
188 u64 tsx_ctrl = 0;
189
190 if (ia32_tsx_ctrl_supported) {
191 rdmsrl(MSR_IA32_TSX_CTRL, tsx_ctrl);
192 if (tsx_ctrl & MSR_TSX_CTRL_MASK)
193 wrmsrl(MSR_IA32_TSX_CTRL, tsx_ctrl & ~MSR_TSX_CTRL_MASK);
194 }
195 return tsx_ctrl;
196 }
197 EXPORT_SYMBOL_GPL(tsx_ctrl_clear);
198
> 199 void tsx_ctrl_restore(u64 tsx_ctrl)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-03-09 10:27 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=202203091850.dfwae6UT-lkp@intel.com \
--to=lkp@intel.com \
--cc=chenyi.qiang@intel.com \
--cc=isaku.yamahata@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.