All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android16-6.12-2025-06 0/9] mm/huge_memory.c:587:43: sparse: sparse: incorrect type in initializer (different address spaces)
@ 2026-06-30 20:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-30 20:38 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android16-6.12-2025-06
head:   13ff069897df965d9039dca208b2f39dacf81957
commit: 5b8452920e50ad7219983ebbf26c8eda1110d283 [0/9] ANDROID: mm: Export several symbols
config: x86_64-randconfig-123 (https://download.01.org/0day-ci/archive/20260701/202607010457.MrHSOxYe-lkp@intel.com/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/20260701/202607010457.MrHSOxYe-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/202607010457.MrHSOxYe-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> mm/huge_memory.c:587:43: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __percpu *__vpp_verify @@     got struct mthp_stat * @@
   mm/huge_memory.c:587:43: sparse:     expected void const [noderef] __percpu *__vpp_verify
   mm/huge_memory.c:587:43: sparse:     got struct mthp_stat *
   mm/huge_memory.c:2033:20: sparse: sparse: context imbalance in 'madvise_free_huge_pmd' - unexpected unlock
   mm/huge_memory.c:2071:28: sparse: sparse: context imbalance in 'zap_huge_pmd' - unexpected unlock
   mm/huge_memory.c:2194:28: sparse: sparse: context imbalance in 'move_huge_pmd' - unexpected unlock
   mm/huge_memory.c:2334:20: sparse: sparse: context imbalance in 'change_huge_pmd' - unexpected unlock
   mm/huge_memory.c: note: in included file (through include/linux/pgtable.h, include/linux/mm.h):
   arch/x86/include/asm/pgtable.h:898:9: sparse: sparse: context imbalance in 'change_huge_pud' - unexpected unlock
   mm/huge_memory.c:2416:28: sparse: sparse: context imbalance in 'move_pages_huge_pmd' - unexpected unlock
   mm/huge_memory.c:2531:12: sparse: sparse: context imbalance in '__pmd_trans_huge_lock' - wrong count at exit
   mm/huge_memory.c:2549:12: sparse: sparse: context imbalance in '__pud_trans_huge_lock' - wrong count at exit
   mm/huge_memory.c:2575:28: sparse: sparse: context imbalance in 'zap_huge_pud' - unexpected unlock
   mm/huge_memory.c: note: in included file (through include/linux/rbtree.h, include/linux/mm_types.h, include/linux/mmzone.h, include/linux/gfp.h, ...):
   include/linux/rcupdate.h:880:25: sparse: sparse: context imbalance in '__split_huge_zero_page_pmd' - unexpected unlock
   include/linux/rcupdate.h:880:25: sparse: sparse: context imbalance in '__split_huge_pmd_locked' - unexpected unlock
   mm/huge_memory.c:3266:30: sparse: sparse: context imbalance in '__split_huge_page' - unexpected unlock
   mm/huge_memory.c:3569:17: sparse: sparse: context imbalance in 'split_huge_page_to_list_to_order' - different lock contexts for basic block
   mm/huge_memory.c:4007:17: sparse: sparse: context imbalance in 'split_huge_pages_pid' - unexpected unlock

vim +587 mm/huge_memory.c

ec33687c674934 Barry Song 2024-04-12  580  
ec33687c674934 Barry Song 2024-04-12  581  static unsigned long sum_mthp_stat(int order, enum mthp_stat_item item)
ec33687c674934 Barry Song 2024-04-12  582  {
ec33687c674934 Barry Song 2024-04-12  583  	unsigned long sum = 0;
ec33687c674934 Barry Song 2024-04-12  584  	int cpu;
ec33687c674934 Barry Song 2024-04-12  585  
ec33687c674934 Barry Song 2024-04-12  586  	for_each_possible_cpu(cpu) {
ec33687c674934 Barry Song 2024-04-12 @587  		struct mthp_stat *this = &per_cpu(mthp_stats, cpu);
ec33687c674934 Barry Song 2024-04-12  588  
ec33687c674934 Barry Song 2024-04-12  589  		sum += this->stats[order][item];
ec33687c674934 Barry Song 2024-04-12  590  	}
ec33687c674934 Barry Song 2024-04-12  591  
ec33687c674934 Barry Song 2024-04-12  592  	return sum;
ec33687c674934 Barry Song 2024-04-12  593  }
ec33687c674934 Barry Song 2024-04-12  594  

:::::: The code at line 587 was first introduced by commit
:::::: ec33687c674934dfefd782a8ffd58370b080b503 mm: add per-order mTHP anon_fault_alloc and anon_fault_fallback counters

:::::: TO: Barry Song <v-songbaohua@oppo.com>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>

--
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-06-30 20:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-30 20:38 [android-common:android16-6.12-2025-06 0/9] mm/huge_memory.c:587:43: sparse: sparse: incorrect type in initializer (different address spaces) 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.