tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20231010-fs-freeze-v2 head: 6e25c9a3fcab3fa9de5b5924b4e87a8ccb1fbf2f commit: fba0067ff43c46c4bcca651768033d27ea31bab1 [1/13] fs: unify locking semantics for fs freeze / thaw config: i386-randconfig-a011 compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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/mcgrof/linux-next.git/commit/?id=fba0067ff43c46c4bcca651768033d27ea31bab1 git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git git fetch --no-tags mcgrof-next 20231010-fs-freeze-v2 git checkout fba0067ff43c46c4bcca651768033d27ea31bab1 # 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=i386 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/gfs2/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> fs/gfs2/super.c:665:3: error: void function 'gfs2_freeze_func' should not return a value [-Wreturn-type] return -ENOTTY; ^ ~~~~~~~ 1 error generated. -- >> fs/gfs2/sys.c:165:23: error: use of undeclared identifier 'sb' if (!grab_lock_super(sb)) ^ >> fs/gfs2/sys.c:165:23: error: use of undeclared identifier 'sb' >> fs/gfs2/sys.c:165:23: error: use of undeclared identifier 'sb' fs/gfs2/sys.c:176:27: error: use of undeclared identifier 'sb' deactivate_locked_super(sb); ^ fs/gfs2/sys.c:180:26: error: use of undeclared identifier 'sb' deactivate_locked_super(sb); ^ 5 errors generated. vim +/gfs2_freeze_func +665 fs/gfs2/super.c 656 657 void gfs2_freeze_func(struct work_struct *work) 658 { 659 int error; 660 struct gfs2_holder freeze_gh; 661 struct gfs2_sbd *sdp = container_of(work, struct gfs2_sbd, sd_freeze_work); 662 struct super_block *sb = sdp->sd_vfs; 663 664 if (!grab_lock_super(sb)) > 665 return -ENOTTY; 666 667 error = gfs2_freeze_lock(sdp, &freeze_gh, 0); 668 if (error) { 669 gfs2_assert_withdraw(sdp, 0); 670 } else { 671 atomic_set(&sdp->sd_freeze_state, SFS_UNFROZEN); 672 error = thaw_super(sb); 673 if (error) { 674 fs_info(sdp, "GFS2: couldn't thaw filesystem: %d\n", 675 error); 676 gfs2_assert_withdraw(sdp, 0); 677 } 678 gfs2_freeze_unlock(&freeze_gh); 679 } 680 deactivate_locked_super(sb); 681 clear_bit_unlock(SDF_FS_FROZEN, &sdp->sd_flags); 682 wake_up_bit(&sdp->sd_flags, SDF_FS_FROZEN); 683 return; 684 } 685 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests