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 3/9] fs/f2fs/node.c:315:23: error: passing 'const struct folio *' to parameter of type 'struct folio *' discards qualifiers
Date: Thu, 8 May 2025 17:42:09 +0800 [thread overview]
Message-ID: <202505081731.c3NMzlsv-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git bugfix/common
head: 5c0d3e30440de65110257a38163686110f8f230a
commit: 0d36032e3b1c316a0afaaefec82720597fda20b0 [3/9] f2fs: introduce is_{meta,node}_folio
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20250508/202505081731.c3NMzlsv-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250508/202505081731.c3NMzlsv-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/202505081731.c3NMzlsv-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/f2fs/node.c:315:23: error: passing 'const struct folio *' to parameter of type 'struct folio *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
315 | return is_node_folio(folio) && IS_DNODE(&folio->page) &&
| ^~~~~
fs/f2fs/f2fs.h:2103:48: note: passing argument to parameter 'folio' here
2103 | static inline bool is_node_folio(struct folio *folio)
| ^
1 error generated.
vim +315 fs/f2fs/node.c
312
313 bool f2fs_in_warm_node_list(struct f2fs_sb_info *sbi, const struct folio *folio)
314 {
> 315 return is_node_folio(folio) && IS_DNODE(&folio->page) &&
316 is_cold_node(&folio->page);
317 }
318
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-05-08 9:42 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=202505081731.c3NMzlsv-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