tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 5b6a4bf680d61b1dd26629840f848d0df8983c62 commit: 37f44f48d52d734fe0879909f5071a6c635d255b [1876/2065] mm: multi-gen LRU: support page table walks config: sparc64-randconfig-s053-20220818 compiler: sparc64-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=37f44f48d52d734fe0879909f5071a6c635d255b git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 37f44f48d52d734fe0879909f5071a6c635d255b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> mm/vmscan.c:3232:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct lockdep_map const *lock @@ got struct lockdep_map [noderef] __rcu * @@ mm/vmscan.c:3232:9: sparse: expected struct lockdep_map const *lock mm/vmscan.c:3232:9: sparse: got struct lockdep_map [noderef] __rcu * mm/vmscan.c:1385:28: sparse: sparse: context imbalance in '__remove_mapping' - unexpected unlock mm/vmscan.c:2274:33: sparse: sparse: context imbalance in 'folio_isolate_lru' - unexpected unlock mm/vmscan.c: note: in included file (through include/linux/rculist.h, include/linux/pid.h, include/linux/sched.h, ...): include/linux/rcupdate.h:735:9: sparse: sparse: context imbalance in 'lru_gen_look_around' - different lock contexts for basic block mm/vmscan.c: note: in included file (through include/linux/swap.h): include/linux/memcontrol.h:1662:39: sparse: sparse: context imbalance in 'check_move_unevictable_folios' - unexpected unlock vim +3232 mm/vmscan.c 3226 3227 #ifdef CONFIG_MEMCG 3228 void lru_gen_migrate_mm(struct mm_struct *mm) 3229 { 3230 struct mem_cgroup *memcg; 3231 > 3232 lockdep_assert_held(&mm->owner->alloc_lock); 3233 3234 /* for mm_update_next_owner() */ 3235 if (mem_cgroup_disabled()) 3236 return; 3237 3238 rcu_read_lock(); 3239 memcg = mem_cgroup_from_task(rcu_dereference(mm->owner)); 3240 rcu_read_unlock(); 3241 if (memcg == mm->lru_gen.memcg) 3242 return; 3243 3244 VM_WARN_ON_ONCE(!mm->lru_gen.memcg); 3245 VM_WARN_ON_ONCE(list_empty(&mm->lru_gen.list)); 3246 3247 lru_gen_del_mm(mm); 3248 lru_gen_add_mm(mm); 3249 } 3250 #endif 3251 -- 0-DAY CI Kernel Test Service https://01.org/lkp