mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* arch/arm64/kvm/hyp/nvhe/stacktrace.c:38:1: sparse: sparse: symbol '__pcpu_scope_pkvm_stacktrace' was not declared. Should it be static?
@ 2022-08-20 18:15 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-20 18:15 UTC (permalink / raw)
  To: Kalesh Singh; +Cc: kbuild-all, linux-kernel, Marc Zyngier, Fuad Tabba

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@intel.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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-20 18:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-20 18:15 arch/arm64/kvm/hyp/nvhe/stacktrace.c:38:1: sparse: sparse: symbol '__pcpu_scope_pkvm_stacktrace' was not declared. Should it be static? kernel test robot

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®