Building the Linux kernel with Clang and LLVM
 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/6] fs/f2fs/data.c:153:38: error: use of undeclared identifier 'sbi'
Date: Tue, 29 Apr 2025 18:43:09 +0800	[thread overview]
Message-ID: <202504291850.1MMsrq8x-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git bugfix/common
head:   0d3a805efb57a446736f275ab88d6f8b29a3ad09
commit: 238708a6490ffcfb6314c2a8b2238d2bf2b3178b [5/6] f2fs: fix to do sanity check on node footer in read_end_io
config: s390-randconfig-001-20250429 (https://download.01.org/0day-ci/archive/20250429/202504291850.1MMsrq8x-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250429/202504291850.1MMsrq8x-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/202504291850.1MMsrq8x-lkp@intel.com/

All errors (new ones prefixed by >>):

>> fs/f2fs/data.c:153:38: error: use of undeclared identifier 'sbi'
     153 |                 if (folio->mapping == NODE_MAPPING(sbi)) {
         |                                                    ^
>> fs/f2fs/data.c:154:8: error: call to undeclared function 'sanity_check_node_footer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     154 |                         if (sanity_check_node_footer(sbi, folio, folio->index,
         |                             ^
   fs/f2fs/data.c:154:33: error: use of undeclared identifier 'sbi'
     154 |                         if (sanity_check_node_footer(sbi, folio, folio->index,
         |                                                      ^
   3 errors generated.


vim +/sbi +153 fs/f2fs/data.c

   122	
   123	/*
   124	 * Update and unlock a bio's pages, and free the bio.
   125	 *
   126	 * This marks pages up-to-date only if there was no error in the bio (I/O error,
   127	 * decryption error, or verity error), as indicated by bio->bi_status.
   128	 *
   129	 * "Compressed pages" (pagecache pages backed by a compressed cluster on-disk)
   130	 * aren't marked up-to-date here, as decompression is done on a per-compression-
   131	 * cluster basis rather than a per-bio basis.  Instead, we only must do two
   132	 * things for each compressed page here: call f2fs_end_read_compressed_page()
   133	 * with failed=true if an error occurred before it would have normally gotten
   134	 * called (i.e., I/O error or decryption error, but *not* verity error), and
   135	 * release the bio's reference to the decompress_io_ctx of the page's cluster.
   136	 */
   137	static void f2fs_finish_read_bio(struct bio *bio, bool in_task)
   138	{
   139		struct folio_iter fi;
   140		struct bio_post_read_ctx *ctx = bio->bi_private;
   141	
   142		bio_for_each_folio_all(fi, bio) {
   143			struct folio *folio = fi.folio;
   144	
   145			if (f2fs_is_compressed_page(&folio->page)) {
   146				if (ctx && !ctx->decompression_attempted)
   147					f2fs_end_read_compressed_page(&folio->page, true, 0,
   148								in_task);
   149				f2fs_put_folio_dic(folio, in_task);
   150				continue;
   151			}
   152	
 > 153			if (folio->mapping == NODE_MAPPING(sbi)) {
 > 154				if (sanity_check_node_footer(sbi, folio, folio->index,
   155							NODE_TYPE_REGULAR, true))
   156					bio->bi_status = BLK_STS_IOERR;
   157			}
   158	
   159			dec_page_count(F2FS_F_SB(folio), __read_io_type(folio));
   160			folio_end_read(folio, bio->bi_status == 0);
   161		}
   162	
   163		if (ctx)
   164			mempool_free(ctx, bio_post_read_ctx_pool);
   165		bio_put(bio);
   166	}
   167	

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

                 reply	other threads:[~2025-04-29 10:44 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=202504291850.1MMsrq8x-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