From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android16-6.12-2025-06 0/9] mm/huge_memory.c:587:43: sparse: sparse: incorrect type in initializer (different address spaces)
Date: Wed, 01 Jul 2026 04:38:36 +0800 [thread overview]
Message-ID: <202607010457.MrHSOxYe-lkp@intel.com> (raw)
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
reply other threads:[~2026-06-30 20:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202607010457.MrHSOxYe-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.