* [bcain:bcain/boot_qemu 42/43] mm/mm_init.c:920:18: error: no member named 'pageblock_flags' in 'struct zone'
@ 2026-05-30 7:21 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-05-30 7:21 UTC (permalink / raw)
To: Brian Cain; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git bcain/boot_qemu
head: dea73df6b6f456832390a9acd2c44cf235110d30
commit: a2a98cd08700b29ee25458e078d1c20cc3cb4131 [42/43] mm: guard pageblock init against missing pageblock_flags
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260530/202605300909.7HlejklT-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260530/202605300909.7HlejklT-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/202605300909.7HlejklT-lkp@intel.com/
All errors (new ones prefixed by >>):
>> mm/mm_init.c:920:18: error: no member named 'pageblock_flags' in 'struct zone'
920 | if (likely(z->pageblock_flags)) {
| ~ ^
include/linux/compiler.h:76:40: note: expanded from macro 'likely'
76 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
1 error generated.
vim +920 mm/mm_init.c
887
888 for (pfn = start_pfn; pfn < end_pfn; ) {
889 /*
890 * There can be holes in boot-time mem_map[]s handed to this
891 * function. They do not exist on hotplugged memory.
892 */
893 if (context == MEMINIT_EARLY) {
894 if (overlap_memmap_init(zone, &pfn))
895 continue;
896 if (defer_init(nid, pfn, zone_end_pfn)) {
897 deferred_struct_pages = true;
898 break;
899 }
900 }
901
902 page = pfn_to_page(pfn);
903 __init_single_page(page, pfn, zone, nid);
904 if (context == MEMINIT_HOTPLUG) {
905 #ifdef CONFIG_ZONE_DEVICE
906 if (zone == ZONE_DEVICE)
907 __SetPageReserved(page);
908 else
909 #endif
910 __SetPageOffline(page);
911 }
912
913 /*
914 * Usually, we want to mark the pageblock MIGRATE_MOVABLE,
915 * such that unmovable allocations won't be scattered all
916 * over the place during system boot.
917 */
918 if (pageblock_aligned(pfn)) {
919 struct zone *z = page_zone(page);
> 920 if (likely(z->pageblock_flags)) {
921 init_pageblock_migratetype(page, migratetype,
922 isolate_pageblock);
923 } else {
924 pr_warn_once("memmap_init_range: skipping pageblock init for pfn 0x%lx (zone %s has no pageblock_flags)\n",
925 pfn, z->name);
926 }
927 cond_resched();
928 }
929 pfn++;
930 }
931 }
932
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [bcain:bcain/boot_qemu 42/43] mm/mm_init.c:920:18: error: no member named 'pageblock_flags' in 'struct zone'
@ 2026-05-30 10:40 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-05-30 10:40 UTC (permalink / raw)
To: Brian Cain; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git bcain/boot_qemu
head: dea73df6b6f456832390a9acd2c44cf235110d30
commit: a2a98cd08700b29ee25458e078d1c20cc3cb4131 [42/43] mm: guard pageblock init against missing pageblock_flags
config: s390-allnoconfig (https://download.01.org/0day-ci/archive/20260530/202605301801.LxwJTUEe-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 9409c07de6378507397ecdb6f05f628f58110112)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260530/202605301801.LxwJTUEe-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/202605301801.LxwJTUEe-lkp@intel.com/
All errors (new ones prefixed by >>):
>> mm/mm_init.c:920:18: error: no member named 'pageblock_flags' in 'struct zone'
920 | if (likely(z->pageblock_flags)) {
| ~ ^
1 error generated.
vim +920 mm/mm_init.c
887
888 for (pfn = start_pfn; pfn < end_pfn; ) {
889 /*
890 * There can be holes in boot-time mem_map[]s handed to this
891 * function. They do not exist on hotplugged memory.
892 */
893 if (context == MEMINIT_EARLY) {
894 if (overlap_memmap_init(zone, &pfn))
895 continue;
896 if (defer_init(nid, pfn, zone_end_pfn)) {
897 deferred_struct_pages = true;
898 break;
899 }
900 }
901
902 page = pfn_to_page(pfn);
903 __init_single_page(page, pfn, zone, nid);
904 if (context == MEMINIT_HOTPLUG) {
905 #ifdef CONFIG_ZONE_DEVICE
906 if (zone == ZONE_DEVICE)
907 __SetPageReserved(page);
908 else
909 #endif
910 __SetPageOffline(page);
911 }
912
913 /*
914 * Usually, we want to mark the pageblock MIGRATE_MOVABLE,
915 * such that unmovable allocations won't be scattered all
916 * over the place during system boot.
917 */
918 if (pageblock_aligned(pfn)) {
919 struct zone *z = page_zone(page);
> 920 if (likely(z->pageblock_flags)) {
921 init_pageblock_migratetype(page, migratetype,
922 isolate_pageblock);
923 } else {
924 pr_warn_once("memmap_init_range: skipping pageblock init for pfn 0x%lx (zone %s has no pageblock_flags)\n",
925 pfn, z->name);
926 }
927 cond_resched();
928 }
929 pfn++;
930 }
931 }
932
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-30 10:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-30 10:40 [bcain:bcain/boot_qemu 42/43] mm/mm_init.c:920:18: error: no member named 'pageblock_flags' in 'struct zone' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-05-30 7:21 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox