* [chao:feature/cache 11/13] fs/f2fs/cache.c:179:23: sparse: sparse: restricted gfp_t degrades to integer
@ 2026-08-19 6:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-19 6:53 UTC (permalink / raw)
To: Chao Yu; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git feature/cache
head: cc6a23d8c232f588f3a5415d1b10a19e1e4ce860
commit: 59d0b83765584877d5f352f0a600fff033d7d4af [11/13] f2fs: cache: support fault injection
config: sparc64-randconfig-r112-20260819 (https://download.01.org/0day-ci/archive/20260819/202608191446.3rO5PGag-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260819/202608191446.3rO5PGag-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/202608191446.3rO5PGag-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> fs/f2fs/cache.c:179:23: sparse: sparse: restricted gfp_t degrades to integer
fs/f2fs/cache.c:182:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted gfp_t [usertype] gfp @@ got unsigned int flags @@
fs/f2fs/cache.c:182:16: sparse: expected restricted gfp_t [usertype] gfp
fs/f2fs/cache.c:182:16: sparse: got unsigned int flags
fs/f2fs/cache.c:182:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted gfp_t [usertype] gfp @@ got unsigned int flags @@
fs/f2fs/cache.c:182:16: sparse: expected restricted gfp_t [usertype] gfp
fs/f2fs/cache.c:182:16: sparse: got unsigned int flags
fs/f2fs/cache.c:182:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted gfp_t [usertype] gfp @@ got unsigned int flags @@
fs/f2fs/cache.c:182:16: sparse: expected restricted gfp_t [usertype] gfp
fs/f2fs/cache.c:182:16: sparse: got unsigned int flags
fs/f2fs/cache.c:192:30: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int flags @@ got restricted gfp_t @@
fs/f2fs/cache.c:192:30: sparse: expected unsigned int flags
fs/f2fs/cache.c:192:30: sparse: got restricted gfp_t
fs/f2fs/cache.c:195:23: sparse: sparse: invalid assignment: |=
fs/f2fs/cache.c:195:23: sparse: left side has type unsigned int
fs/f2fs/cache.c:195:23: sparse: right side has type restricted gfp_t
fs/f2fs/cache.c:196:25: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted gfp_t [usertype] flags @@ got unsigned int flags @@
fs/f2fs/cache.c:196:25: sparse: expected restricted gfp_t [usertype] flags
fs/f2fs/cache.c:196:25: sparse: got unsigned int flags
fs/f2fs/cache.c:196:25: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted gfp_t [usertype] flags @@ got unsigned int flags @@
fs/f2fs/cache.c:196:25: sparse: expected restricted gfp_t [usertype] flags
fs/f2fs/cache.c:196:25: sparse: got unsigned int flags
fs/f2fs/cache.c:196:25: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted gfp_t [usertype] flags @@ got unsigned int flags @@
fs/f2fs/cache.c:196:25: sparse: expected restricted gfp_t [usertype] flags
fs/f2fs/cache.c:196:25: sparse: got unsigned int flags
fs/f2fs/cache.c:198:59: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted gfp_t [usertype] flags @@ got unsigned int flags @@
fs/f2fs/cache.c:198:59: sparse: expected restricted gfp_t [usertype] flags
fs/f2fs/cache.c:198:59: sparse: got unsigned int flags
vim +179 fs/f2fs/cache.c
175
176 static struct folio *f2fs_cache_folio_alloc(struct f2fs_sb_info *sbi,
177 unsigned int flags)
178 {
> 179 if (!(flags & __GFP_NOFAIL) &&
180 time_to_inject(sbi, FAULT_PAGE_ALLOC))
181 return NULL;
182 return folio_alloc(flags, 0);
183 }
184
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-19 6:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-19 6:53 [chao:feature/cache 11/13] fs/f2fs/cache.c:179:23: sparse: sparse: restricted gfp_t degrades to integer kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.