security/apparmor/lsm.c:1893:15: sparse: sparse: symbol 'nulldfa' was not declared. Should it be static?

From: kernel test robot
Date: Thu Nov 09 2023 - 07:18:35 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6bc986ab839c844e78a2333a02e55f02c9e57935
commit: 98b824ff8984fd523fc264fbb13208098ab09da3 apparmor: refcount the pdb
date: 3 weeks ago
config: i386-randconfig-062-20231104 (https://download.01.org/0day-ci/archive/20231109/202311092038.lqfYnvmf-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231109/202311092038.lqfYnvmf-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311092038.lqfYnvmf-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> security/apparmor/lsm.c:1893:15: sparse: sparse: symbol 'nulldfa' was not declared. Should it be static?

vim +/nulldfa +1893 security/apparmor/lsm.c

1889
1890 static char nulldfa_src[] = {
1891 #include "nulldfa.in"
1892 };
> 1893 struct aa_dfa *nulldfa;
1894

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki