[djwong-xfs:vectorized-scrub 149/401] fs/xfs/xfs_inode.c:953:1: sparse: sparse: symbol 'xfs_nlinks_hooks_switch' was not declared. Should it be static?
From: kernel test robot
Date: Sat Jun 04 2022 - 18:20:24 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git vectorized-scrub
head: 1fcd9cea011a657d62ee332d161966c1ec92ffd5
commit: 2067c1659a49ddc24cac9124f142ea9a7d71e7c3 [149/401] xfs: track file link count updates during live nlinks fsck
config: x86_64-randconfig-s021 (https://download.01.org/0day-ci/archive/20220605/202206050637.Fo3Yr6Kj-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-18-g56afb504-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/commit/?id=2067c1659a49ddc24cac9124f142ea9a7d71e7c3
git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs vectorized-scrub
git checkout 2067c1659a49ddc24cac9124f142ea9a7d71e7c3
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/xfs/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>
sparse warnings: (new ones prefixed by >>)
>> fs/xfs/xfs_inode.c:953:1: sparse: sparse: symbol 'xfs_nlinks_hooks_switch' was not declared. Should it be static?
Please review and possibly fold the followup patch.
--
0-DAY CI Kernel Test Service
https://01.org/lkp