[android-common:android17-6.18-kminext 5/5] mm/mmzone.c:118:47: sparse: sparse: incorrect type in argument 1 (different base types)

kernel test robot <[email protected]> Mon, 27 Jul 2026 20:08:58 +0800
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://android.googlesource.com/kernel/common android17-6.18-kminext
head:   6ea6f1d2674f3ee03b932d9813dea9a0590e8a77
commit: aa2fcdf35fade78eec17bdfae208b652f11ab9a1 [5/5] ANDROID: mm: Create hooks for ZONE_MOVABLE allocs
config: i386-randconfig-r131-20260727 (https://download.01.org/0day-ci/archive/20260727/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260727/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
>> mm/mmzone.c:118:47: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int *flags @@     got restricted gfp_t * @@
   mm/mmzone.c:118:47: sparse:     expected unsigned int *flags
   mm/mmzone.c:118:47: sparse:     got restricted gfp_t *
--
>> mm/readahead.c:158:51: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int *flags @@     got restricted gfp_t * @@
   mm/readahead.c:158:51: sparse:     expected unsigned int *flags
   mm/readahead.c:158:51: sparse:     got restricted gfp_t *

vim +118 mm/mmzone.c

   115	
   116	enum zone_type gfp_zone(gfp_t flags)
   117	{
 > 118		trace_android_rvh_set_gfp_zone_flags(&flags);

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