tree: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev-test head: bc8610a18daa4a611d189374031fe1fa3c603423 commit: 9f506c758707749076b4ec2402007670c6f35558 [65/93] f2fs: Use a folio in f2fs_is_cp_guaranteed() config: s390-randconfig-002-20250710 (https://download.01.org/0day-ci/archive/20250710/202507101412.50nd2wex-...@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/20250710/202507101412.50nd2wex-...@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 <l...@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202507101412.50nd2wex-...@intel.com/ All errors (new ones prefixed by >>): >> fs/f2fs/data.c:58:56: error: passing 'const struct folio *' to parameter of >> type 'struct folio *' discards qualifiers >> [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 58 | return folio_test_f2fs_gcing(fscrypt_pagecache_folio(folio)); | ^~~~~ include/linux/fscrypt.h:527:67: note: passing argument to parameter 'bounce_folio' here 527 | static inline struct folio *fscrypt_pagecache_folio(struct folio *bounce_folio) | ^ 1 error generated. vim +58 fs/f2fs/data.c 49 50 bool f2fs_is_cp_guaranteed(const struct page *page) 51 { 52 const struct folio *folio = page_folio(page); 53 struct address_space *mapping = folio->mapping; 54 struct inode *inode; 55 struct f2fs_sb_info *sbi; 56 57 if (fscrypt_is_bounce_folio(folio)) > 58 return folio_test_f2fs_gcing(fscrypt_pagecache_folio(folio)); 59 60 inode = mapping->host; 61 sbi = F2FS_I_SB(inode); 62 63 if (inode->i_ino == F2FS_META_INO(sbi) || 64 inode->i_ino == F2FS_NODE_INO(sbi) || 65 S_ISDIR(inode->i_mode)) 66 return true; 67 68 if ((S_ISREG(inode->i_mode) && IS_NOQUOTA(inode)) || 69 folio_test_f2fs_gcing(folio)) 70 return true; 71 return false; 72 } 73 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel