* [chao:bugfix/common 5/5] fs/f2fs/super.c:4320:8: error: call to undeclared function 'f2fs_zone_is_seq'; ISO C99 and later do not support implicit function declarations
@ 2025-03-22 19:11 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-22 19:11 UTC (permalink / raw)
To: Chao Yu, Chao Yu; +Cc: llvm, oe-kbuild-all, Chao Yu, Chao Yu
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git bugfix/common
head: 40cbb3a09cebf75b7141934e954fff0738704918
commit: 40cbb3a09cebf75b7141934e954fff0738704918 [5/5] f2fs: zone: fix to avoid inconsistence in between SIT and SSA
config: hexagon-randconfig-001-20250323 (https://download.01.org/0day-ci/archive/20250323/202503230328.DBv5fVsk-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project c2692afc0a92cd5da140dfcdfff7818a5b8ce997)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250323/202503230328.DBv5fVsk-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503230328.DBv5fVsk-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/f2fs/super.c:4320:8: error: call to undeclared function 'f2fs_zone_is_seq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
4320 | if (f2fs_zone_is_seq(sbi, devi, zone))
| ^
fs/f2fs/super.c:4320:8: note: did you mean 'bdev_zone_is_seq'?
include/linux/blkdev.h:1406:20: note: 'bdev_zone_is_seq' declared here
1406 | static inline bool bdev_zone_is_seq(struct block_device *bdev, sector_t sector)
| ^
1 error generated.
vim +/f2fs_zone_is_seq +4320 fs/f2fs/super.c
4307
4308 static inline unsigned int get_first_zoned_segno(struct f2fs_sb_info *sbi)
4309 {
4310 unsigned int segno;
4311 int devi, i;
4312
4313 for (devi = 0; devi < sbi->s_ndevs; devi++) {
4314 if (!bdev_is_zoned(FDEV(devi).bdev))
4315 continue;
4316
4317 segno = GET_SEGNO(sbi, FDEV(devi).start_blk);
4318 for (i = 0; i < FDEV(devi).total_segments; i++) {
4319 unsigned int zone = GET_ZONE_FROM_SEG(sbi, segno);
> 4320 if (f2fs_zone_is_seq(sbi, devi, zone))
4321 return segno;
4322 }
4323 }
4324 return NULL_SEGNO;
4325 }
4326
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-22 19:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-22 19:11 [chao:bugfix/common 5/5] fs/f2fs/super.c:4320:8: error: call to undeclared function 'f2fs_zone_is_seq'; ISO C99 and later do not support implicit function declarations kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox