[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202105140846.p2PgYHbZ-lkp@intel.com>
Date: Fri, 14 May 2021 08:01:02 +0800
From: kernel test robot <lkp@...el.com>
To: Marc Zyngier <maz@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: arch/arm64/kvm/hyp/nvhe/mem_protect.c:26:17: sparse: sparse: symbol
'host_s2_mem' was not declared. Should it be static?
Hi Stephen,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 315d99318179b9cd5077ccc9f7f26a164c9fa998
commit: 3b7e56be786462423802ff84525b9a12539c5887 Merge branch 'kvm-arm64/nvhe-sve' into kvmarm-master/next
date: 4 weeks ago
config: arm64-randconfig-s032-20210513 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3b7e56be786462423802ff84525b9a12539c5887
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3b7e56be786462423802ff84525b9a12539c5887
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> arch/arm64/kvm/hyp/nvhe/mem_protect.c:26:17: sparse: sparse: symbol 'host_s2_mem' was not declared. Should it be static?
>> arch/arm64/kvm/hyp/nvhe/mem_protect.c:27:17: sparse: sparse: symbol 'host_s2_dev' was not declared. Should it be static?
vim +/host_s2_mem +26 arch/arm64/kvm/hyp/nvhe/mem_protect.c
1025c8c0c6accf Quentin Perret 2021-03-19 25
1025c8c0c6accf Quentin Perret 2021-03-19 @26 struct hyp_pool host_s2_mem;
1025c8c0c6accf Quentin Perret 2021-03-19 @27 struct hyp_pool host_s2_dev;
1025c8c0c6accf Quentin Perret 2021-03-19 28
:::::: The code at line 26 was first introduced by commit
:::::: 1025c8c0c6accfcbdc8f52ca1940160f65cd87d6 KVM: arm64: Wrap the host with a stage 2
:::::: TO: Quentin Perret <qperret@...gle.com>
:::::: CC: Marc Zyngier <maz@...nel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (43920 bytes)
Powered by blists - more mailing lists