[amir73il:ovl-watch 18/27] fs/overlayfs/super.c:2164:6: warning: no previous prototype for function 'ovl_kill_super'
From: kernel test robot
Date: Sun Sep 05 2021 - 08:46:24 EST
tree: https://github.com/amir73il/linux ovl-watch
head: 854541356b2eb98d7779c0f548d5cfb51f80f358
commit: e8140137d1b0304da823ba9954324acae62fb3e1 [18/27] ovl: introduce an fsnotify watch
config: arm-randconfig-r024-20210905 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6fe2beba7d2a41964af658c8c59dd172683ef739)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/amir73il/linux/commit/e8140137d1b0304da823ba9954324acae62fb3e1
git remote add amir73il https://github.com/amir73il/linux
git fetch --no-tags amir73il ovl-watch
git checkout e8140137d1b0304da823ba9954324acae62fb3e1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
>> fs/overlayfs/super.c:2164:6: warning: no previous prototype for function 'ovl_kill_super' [-Wmissing-prototypes]
void ovl_kill_super(struct super_block *sb)
^
fs/overlayfs/super.c:2164:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void ovl_kill_super(struct super_block *sb)
^
static
1 warning generated.
vim +/ovl_kill_super +2164 fs/overlayfs/super.c
2163
> 2164 void ovl_kill_super(struct super_block *sb)
2165 {
2166 /*
2167 * We need to destroy the fsnotify group and wait on all pending events
2168 * *before* shutting down super block, because event handler is
2169 * derefernecing this sb from group->private.
2170 */
2171 if (sb->s_root)
2172 ovl_free_watch(sb->s_fs_info);
2173 kill_anon_super(sb);
2174 }
2175
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip