From: kernel test robot <lkp@intel.com>
To: Fuad Tabba <tabba@google.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org, Quentin Perret <qperret@google.com>
Subject: [arm-perf:kvm/mm-hacking 20/22] arch/arm64/kvm/hyp/nvhe/hyp-main.c:40:6: warning: no previous prototype for function 'put_shadow_vcpu'
Date: Tue, 19 Oct 2021 06:20:52 +0800 [thread overview]
Message-ID: <202110190647.KW99hQ3r-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3506 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git kvm/mm-hacking
head: e5759e0ca29728e31bd3fd0137ec905eecb15bf9
commit: a77ba8a5f9ded36915ebab3e8bb3c75430c9ad92 [20/22] BACKPORT: KVM: arm64: Shadow table for KVM EL2 state
config: arm64-randconfig-r035-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git/commit/?id=a77ba8a5f9ded36915ebab3e8bb3c75430c9ad92
git remote add arm-perf https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git
git fetch --no-tags arm-perf kvm/mm-hacking
git checkout a77ba8a5f9ded36915ebab3e8bb3c75430c9ad92
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64
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/arm64/kvm/hyp/nvhe/hyp-main.c:40:6: warning: no previous prototype for function 'put_shadow_vcpu' [-Wmissing-prototypes]
void put_shadow_vcpu(struct kvm_vcpu *vcpu, int exit_code)
^
arch/arm64/kvm/hyp/nvhe/hyp-main.c:40:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void put_shadow_vcpu(struct kvm_vcpu *vcpu, int exit_code)
^
static
arch/arm64/kvm/hyp/nvhe/hyp-main.c:292:6: warning: no previous prototype for function 'handle_trap' [-Wmissing-prototypes]
void handle_trap(struct kvm_cpu_context *host_ctxt)
^
arch/arm64/kvm/hyp/nvhe/hyp-main.c:292:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void handle_trap(struct kvm_cpu_context *host_ctxt)
^
static
2 warnings generated.
--
>> arch/arm64/kvm/hyp/nvhe/pkvm.c:90:6: warning: no previous prototype for function 'clear_shadow_cache' [-Wmissing-prototypes]
void clear_shadow_cache(void)
^
arch/arm64/kvm/hyp/nvhe/pkvm.c:90:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void clear_shadow_cache(void)
^
static
arch/arm64/kvm/hyp/nvhe/pkvm.c:329:8: error: implicit declaration of function 'check_host_memory_addr' [-Werror,-Wimplicit-function-declaration]
ret = check_host_memory_addr((u64)kvm, sizeof(*kvm));
^
arch/arm64/kvm/hyp/nvhe/pkvm.c:404:15: error: implicit declaration of function 'check_host_memory_addr' [-Werror,-Wimplicit-function-declaration]
if (unlikely(check_host_memory_addr((u64)kvm, sizeof(*kvm))))
^
arch/arm64/kvm/hyp/nvhe/pkvm.c:399:14: warning: unused variable 'shadow_kvm_pa' [-Wunused-variable]
phys_addr_t shadow_kvm_pa;
^
2 warnings and 2 errors generated.
vim +/put_shadow_vcpu +40 arch/arm64/kvm/hyp/nvhe/hyp-main.c
39
> 40 void put_shadow_vcpu(struct kvm_vcpu *vcpu, int exit_code)
41 {
42 }
43
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39605 bytes --]
reply other threads:[~2021-10-18 22:21 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=202110190647.KW99hQ3r-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=qperret@google.com \
--cc=tabba@google.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
all inboxes | Powered by JetHome®