[djwong-xfs:vectorized-scrub 115/367] fs/xfs/xfs_inode.c:956:1: warning: declaration does not declare anything

From: kernel test robot
Date: Tue Jun 07 2022 - 03:19:53 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git vectorized-scrub
head: 879e09570c469d3320e25aa7f625ded1a2f5c24e
commit: 070c22c92d6f738172c822e7bf509633c37d3d31 [115/367] xfs: track file link count updates during live nlinks fsck
config: hexagon-buildonly-randconfig-r008-20220605 (https://download.01.org/0day-ci/archive/20220607/202206071526.Y2P1K7gT-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project b92436efcb7813fc481b30f2593a4907568d917a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/commit/?id=070c22c92d6f738172c822e7bf509633c37d3d31
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 070c22c92d6f738172c822e7bf509633c37d3d31
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash fs/xfs/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> fs/xfs/xfs_inode.c:956:1: warning: declaration does not declare anything [-Wmissing-declarations]
static XFS_HOOKS_SWITCH_DEFINE(xfs_nlinks_hooks_switch);
^~~~~~
1 warning generated.


vim +956 fs/xfs/xfs_inode.c

954
955 #ifdef CONFIG_XFS_LIVE_HOOKS
> 956 static XFS_HOOKS_SWITCH_DEFINE(xfs_nlinks_hooks_switch);
957

--
0-DAY CI Kernel Test Service
https://01.org/lkp