[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208210225.5VNIyPGA-lkp@intel.com>
Date: Sun, 21 Aug 2022 02:15:59 +0800
From: kernel test robot <lkp@...el.com>
To: Kalesh Singh <kaleshsingh@...gle.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Marc Zyngier <maz@...nel.org>, Fuad Tabba <tabba@...gle.com>
Subject: arch/arm64/kvm/hyp/nvhe/stacktrace.c:38:1: sparse: sparse: symbol
'__pcpu_scope_pkvm_stacktrace' was not declared. Should it be static?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 50cd95ac46548429e5bba7ca75cc97d11a697947
commit: 6928bcc84bc4bd9a24a1cb1986418c3de76e1d99 KVM: arm64: Allocate shared pKVM hyp stacktrace buffers
date: 4 weeks ago
config: arm64-randconfig-s033-20220820 (https://download.01.org/0day-ci/archive/20220821/202208210225.5VNIyPGA-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6928bcc84bc4bd9a24a1cb1986418c3de76e1d99
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 6928bcc84bc4bd9a24a1cb1986418c3de76e1d99
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
arch/arm64/kvm/hyp/nvhe/stacktrace.c:12:1: sparse: sparse: symbol '__pcpu_scope_overflow_stack' was not declared. Should it be static?
arch/arm64/kvm/hyp/nvhe/stacktrace.c:15:1: sparse: sparse: symbol '__pcpu_scope_kvm_stacktrace_info' was not declared. Should it be static?
>> arch/arm64/kvm/hyp/nvhe/stacktrace.c:38:1: sparse: sparse: symbol '__pcpu_scope_pkvm_stacktrace' was not declared. Should it be static?
vim +/__pcpu_scope_pkvm_stacktrace +38 arch/arm64/kvm/hyp/nvhe/stacktrace.c
11
> 12 DEFINE_PER_CPU(unsigned long [OVERFLOW_STACK_SIZE/sizeof(long)], overflow_stack)
13 __aligned(16);
14
15 DEFINE_PER_CPU(struct kvm_nvhe_stacktrace_info, kvm_stacktrace_info);
16
17 /*
18 * hyp_prepare_backtrace - Prepare non-protected nVHE backtrace.
19 *
20 * @fp : frame pointer at which to start the unwinding.
21 * @pc : program counter at which to start the unwinding.
22 *
23 * Save the information needed by the host to unwind the non-protected
24 * nVHE hypervisor stack in EL1.
25 */
26 static void hyp_prepare_backtrace(unsigned long fp, unsigned long pc)
27 {
28 struct kvm_nvhe_stacktrace_info *stacktrace_info = this_cpu_ptr(&kvm_stacktrace_info);
29 struct kvm_nvhe_init_params *params = this_cpu_ptr(&kvm_init_params);
30
31 stacktrace_info->stack_base = (unsigned long)(params->stack_hyp_va - PAGE_SIZE);
32 stacktrace_info->overflow_stack_base = (unsigned long)this_cpu_ptr(overflow_stack);
33 stacktrace_info->fp = fp;
34 stacktrace_info->pc = pc;
35 }
36
37 #ifdef CONFIG_PROTECTED_NVHE_STACKTRACE
> 38 #include <asm/stacktrace/nvhe.h>
39
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists