From: kernel test robot <lkp@intel.com>
To: Yongpeng Yang <yangyongpeng@xiaomi.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Chao Yu <chao@kernel.org>
Subject: [chao:dev-test 2/13] fs/f2fs/node.h:425:42: error: passing 'const struct folio *' to parameter of type 'struct folio *' discards qualifiers
Date: Tue, 24 Mar 2026 13:35:41 +0800 [thread overview]
Message-ID: <202603241355.hsXvXyz1-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git dev-test
head: b559609da002e5c06340a56ff23ad93cac4f4f9a
commit: 819157dce25d2c894a6c24f04e418dc680477c2a [2/13] f2fs: refactor node footer flag setting related code
config: x86_64-randconfig-011-20260324 (https://download.01.org/0day-ci/archive/20260324/202603241355.hsXvXyz1-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260324/202603241355.hsXvXyz1-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/202603241355.hsXvXyz1-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from fs/f2fs/file.c:31:
>> fs/f2fs/node.h:425:42: error: passing 'const struct folio *' to parameter of type 'struct folio *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
425 | f2fs_inode_chksum_set(F2FS_F_SB(folio), folio);
| ^~~~~
fs/f2fs/f2fs.h:3806:68: note: passing argument to parameter 'folio' here
3806 | void f2fs_inode_chksum_set(struct f2fs_sb_info *sbi, struct folio *folio);
| ^
1 error generated.
vim +425 fs/f2fs/node.h
819157dce25d2c Yongpeng Yang 2026-03-18 419
819157dce25d2c Yongpeng Yang 2026-03-18 420 static inline void set_mark(const struct folio *folio, bool mark, int type)
819157dce25d2c Yongpeng Yang 2026-03-18 421 {
819157dce25d2c Yongpeng Yang 2026-03-18 422 __set_mark(folio, mark, type);
54c55c4e4fc7ec Weichao Guo 2018-03-09 423
54c55c4e4fc7ec Weichao Guo 2018-03-09 424 #ifdef CONFIG_F2FS_CHECK_FS
e3f1b76d877c14 Matthew Wilcox (Oracle 2025-07-08 @425) f2fs_inode_chksum_set(F2FS_F_SB(folio), folio);
:::::: The code at line 425 was first introduced by commit
:::::: e3f1b76d877c14897b4776fc5dd08af3c7751976 f2fs: Pass a folio to f2fs_inode_chksum_set()
:::::: TO: Matthew Wilcox (Oracle) <willy@infradead.org>
:::::: CC: Jaegeuk Kim <jaegeuk@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-24 5:36 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=202603241355.hsXvXyz1-lkp@intel.com \
--to=lkp@intel.com \
--cc=chao@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yangyongpeng@xiaomi.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