public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>
Subject: [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
Date: Sun, 23 Mar 2025 03:11:19 +0800	[thread overview]
Message-ID: <202503230328.DBv5fVsk-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-03-22 19:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202503230328.DBv5fVsk-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chao@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=yuchao0@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox