[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202212250424.C00zpos9-lkp@intel.com>
Date: Sun, 25 Dec 2022 04:09:03 +0800
From: kernel test robot <lkp@...el.com>
To: Helge Deller <deller@....de>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: arch/parisc/kernel/firmware.c:78:15: sparse: sparse: symbol
'pdc_result2' was not declared. Should it be static?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 72a85e2b0a1e1e6fb4ee51ae902730212b2de25c
commit: 4add395bc77f19e2e5cedbef4368ffdebc89b165 parisc: Move pdc_result struct to firmware.c
date: 6 days ago
config: parisc-randconfig-s031-20221225
compiler: hppa-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=4add395bc77f19e2e5cedbef4368ffdebc89b165
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4add395bc77f19e2e5cedbef4368ffdebc89b165
# 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=parisc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc SHELL=/bin/bash arch/parisc/kernel/
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/parisc/kernel/firmware.c:78:15: sparse: sparse: symbol 'pdc_result2' was not declared. Should it be static?
arch/parisc/kernel/firmware.c:210:28: sparse: sparse: context imbalance in 'pdc_emergency_unlock' - unexpected unlock
arch/parisc/kernel/firmware.c:335:6: sparse: sparse: context imbalance in 'pdc_cpu_rendezvous_lock' - wrong count at exit
arch/parisc/kernel/firmware.c:343:6: sparse: sparse: context imbalance in 'pdc_cpu_rendezvous_unlock' - unexpected unlock
vim +/pdc_result2 +78 arch/parisc/kernel/firmware.c
76
77 unsigned long pdc_result[NUM_PDC_RESULT] __aligned(8);
> 78 unsigned long pdc_result2[NUM_PDC_RESULT] __aligned(8);
79
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (134740 bytes)
Powered by blists - more mailing lists