Re: [PATCH v2] f2fs: add checkpoint step timing statistics to debugfs

From: kernel test robot

Date: Mon Nov 16 2026 - 15:51:01 EST


Hi huang,

kernel test robot noticed the following build errors:

[auto build test ERROR on jaegeuk-f2fs/dev-test]
[also build test ERROR on jaegeuk-f2fs/dev linus/master v7.4-rc3 next-20261113]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/huang-zheng/f2fs-add-checkpoint-step-timing-statistics-to-debugfs/20261116-175011
base: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev-test
patch link: https://lore.kernel.org/r/20261116095011.2868219-1-huangzheng9869%40gmail.com
patch subject: [PATCH v2] f2fs: add checkpoint step timing statistics to debugfs
config: i386-randconfig-1010-20261116 (https://download.01.org/0day-ci/archive/20261117/202611170426.9bqr9xq4-lkp@xxxxxxxxx/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261117/202611170426.9bqr9xq4-lkp@xxxxxxxxx/reproduce)

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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611170426.9bqr9xq4-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> fs/f2fs/checkpoint.c:1744:3: error: call to undeclared function 'update_cp_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1744 | update_cp_stats(sbi, cpc);
| ^
fs/f2fs/checkpoint.c:1744:3: note: did you mean 'update_ckpt_flags'?
fs/f2fs/checkpoint.c:1616:13: note: 'update_ckpt_flags' declared here
1616 | static void update_ckpt_flags(struct f2fs_sb_info *sbi, struct cp_control *cpc)
| ^
1 error generated.


vim +/update_cp_stats +1744 fs/f2fs/checkpoint.c

1732
1733 static inline void check_cp_time(struct f2fs_sb_info *sbi, struct cp_control *cpc)
1734 {
1735 unsigned long long sb_diff, cur_diff;
1736 enum cp_time ct;
1737
1738 sb_diff = (u64)ktime_ms_delta(sbi->cp_stats.times[CP_TIME_END],
1739 sbi->cp_stats.times[CP_TIME_START]);
1740 cur_diff = (u64)ktime_ms_delta(cpc->stats.times[CP_TIME_END],
1741 cpc->stats.times[CP_TIME_START]);
1742
1743 if (cur_diff > sb_diff) {
> 1744 update_cp_stats(sbi, cpc);
1745 if (cur_diff < CP_LONG_LATENCY_THRESHOLD)
1746 return;
1747
1748 f2fs_warn(sbi, "checkpoint was blocked for %llu ms", cur_diff);
1749 for (ct = CP_TIME_START; ct < CP_TIME_MAX - 1; ct++)
1750 f2fs_warn(sbi, "Step#%d: %llu ms", ct,
1751 (u64)ktime_ms_delta(cpc->stats.times[ct + 1],
1752 cpc->stats.times[ct]));
1753 }
1754 }
1755

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki