[esmil:visionfive 38/42] drivers/nvdla/engine.c:86:9: sparse: sparse: symbol 'bdma_grp_sts' was not declared. Should it be static?
From: kernel test robot
Date: Fri Sep 16 2022 - 09:10:32 EST
tree: https://github.com/esmil/linux visionfive
head: 6ddc6d1b0947a4433b734808f228d1ff253dc46a
commit: 42c828888fd79d43a7eda2ed2d92aad848b98591 [38/42] nvdla: add NVDLA driver
config: arm64-randconfig-s041-20220916 (https://download.01.org/0day-ci/archive/20220916/202209162028.i6FOASKl-lkp@xxxxxxxxx/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://github.com/esmil/linux/commit/42c828888fd79d43a7eda2ed2d92aad848b98591
git remote add esmil https://github.com/esmil/linux
git fetch --no-tags esmil visionfive
git checkout 42c828888fd79d43a7eda2ed2d92aad848b98591
# 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 drivers/nvdla/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>
sparse warnings: (new ones prefixed by >>)
>> drivers/nvdla/engine.c:86:9: sparse: sparse: symbol 'bdma_grp_sts' was not declared. Should it be static?
>> drivers/nvdla/engine.c:91:21: sparse: sparse: symbol 'roi_desc' was not declared. Should it be static?
vim +/bdma_grp_sts +86 drivers/nvdla/engine.c
85
> 86 uint8_t bdma_grp_sts[2] = {
87 FIELD_ENUM(BDMA_STATUS_0, IDLE, YES),
88 FIELD_ENUM(BDMA_STATUS_0, IDLE, YES)
89 };
90
> 91 struct dla_roi_desc roi_desc;
92
--
0-DAY CI Kernel Test Service
https://01.org/lkp