[openeuler:OLK-5.10 2882/2882] fs/xfs/libxfs/xfs_alloc.c:91:1: warning: no previous prototype for 'xfs_ag_fixup_aside'

tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: b5ec139da1a4916dfc9644ee3d9426dbd6f23c13 commit: 12a5c9f8f69c682f3aaf799a18f4a3631cc9bfbc [2882/2882] xfs: fix xfs shutdown since we reserve more blocks in agfl fixup config: x86_64-buildonly-randconfig-2003-20250502 (https://download.01.org/0day-ci/archive/20250604/202506041220.e30nmQAk-lkp@i...) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250604/202506041220.e30nmQAk-lkp@i...) 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@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202506041220.e30nmQAk-lkp@intel.com/ All warnings (new ones prefixed by >>):
fs/xfs/libxfs/xfs_alloc.c:91:1: warning: no previous prototype for 'xfs_ag_fixup_aside' [-Wmissing-prototypes] 91 | xfs_ag_fixup_aside( | ^~~~~~~~~~~~~~~~~~
vim +/xfs_ag_fixup_aside +91 fs/xfs/libxfs/xfs_alloc.c 83 84 /* 85 * Twice fixup for the same ag may happen within exact one tp, and the consume 86 * of agfl after first fixup may trigger second fixup's failure, then xfs will 87 * shutdown. To avoid that, we reserve blocks which can satisfy the second 88 * fixup. 89 */ 90 xfs_extlen_t
91 xfs_ag_fixup_aside( 92 struct xfs_mount *mp) 93 { 94 xfs_extlen_t ret; 95 96 ret = 2 * mp->m_ag_maxlevels; 97 if (xfs_has_rmapbt(mp)) 98 ret += mp->m_rmap_maxlevels; 99 100 return ret; 101 } 102
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot