From: kernel test robot <lkp@intel.com>
To: Isaku Yamahata <isaku.yamahata@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [intel-tdx:kvm-upstream-workaround 122/365] arch/x86/kvm/vmx/main.c:247:6: warning: no previous prototype for function 'vt_set_memory_attributes'
Date: Sun, 16 Jul 2023 12:04:13 +0800 [thread overview]
Message-ID: <202307161113.f3EF293Q-lkp@intel.com> (raw)
tree: https://github.com/intel/tdx.git kvm-upstream-workaround
head: da8c3aa0cbb638a0dff13401bc17f817272110e6
commit: 7ead2f69626501b5fc9041b2c111f6d082e23bc4 [122/365] KVM: TDX: implement set_memory_attributes() callback
config: x86_64-randconfig-x004-20230716 (https://download.01.org/0day-ci/archive/20230716/202307161113.f3EF293Q-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20230716/202307161113.f3EF293Q-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/202307161113.f3EF293Q-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/x86/kvm/vmx/main.c:4:
In file included from arch/x86/kvm/vmx/x86_ops.h:5:
include/linux/kvm_host.h:2370:6: warning: no previous prototype for function 'kvm_arch_gmem_invalidate' [-Wmissing-prototypes]
void kvm_arch_gmem_invalidate(struct kvm *kvm, kvm_pfn_t start, kvm_pfn_t end) { }
^
include/linux/kvm_host.h:2370:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kvm_arch_gmem_invalidate(struct kvm *kvm, kvm_pfn_t start, kvm_pfn_t end) { }
^
static
arch/x86/kvm/vmx/main.c:185:3: error: call to undeclared function 'tdx_flush_tlb_current'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
tdx_flush_tlb_current(vcpu);
^
arch/x86/kvm/vmx/main.c:185:3: note: did you mean 'vmx_flush_tlb_current'?
arch/x86/kvm/vmx/x86_ops.h:99:6: note: 'vmx_flush_tlb_current' declared here
void vmx_flush_tlb_current(struct kvm_vcpu *vcpu);
^
>> arch/x86/kvm/vmx/main.c:247:6: warning: no previous prototype for function 'vt_set_memory_attributes' [-Wmissing-prototypes]
bool vt_set_memory_attributes(struct kvm *kvm, struct kvm_gfn_range *range)
^
arch/x86/kvm/vmx/main.c:247:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool vt_set_memory_attributes(struct kvm *kvm, struct kvm_gfn_range *range)
^
static
2 warnings and 1 error generated.
vim +/vt_set_memory_attributes +247 arch/x86/kvm/vmx/main.c
246
> 247 bool vt_set_memory_attributes(struct kvm *kvm, struct kvm_gfn_range *range)
248 {
249 if (is_td(kvm))
250 return tdx_set_memory_attributes(kvm, range);
251
252 if (kvm->arch.vm_type == KVM_X86_PROTECTED_VM)
253 return kvm_unmap_gfn_range(kvm, range);
254 return false;
255 }
256
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-07-16 4:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-16 4:04 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-07-16 4:15 [intel-tdx:kvm-upstream-workaround 122/365] arch/x86/kvm/vmx/main.c:247:6: warning: no previous prototype for function 'vt_set_memory_attributes' kernel test robot
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=202307161113.f3EF293Q-lkp@intel.com \
--to=lkp@intel.com \
--cc=isaku.yamahata@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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;
as well as URLs for NNTP newsgroup(s).