All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Brian Cain <brian.cain@oss.qualcomm.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [bcain:bcain/qemu_boot 47/70] mm/mm_init.c:936:37: error: 'struct zone' has no member named 'pageblock_flags'
Date: Thu, 16 Jul 2026 04:00:38 +0200	[thread overview]
Message-ID: <202607160306.Rfvcv11C-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git bcain/qemu_boot
head:   a8a4b998ba937d19200cfad69da3029fd54a8f5a
commit: 8d43a66fdb5007eb7f368b20a2ca44395e8e47d9 [47/70] mm: guard pageblock init against missing pageblock_flags
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260716/202607160306.Rfvcv11C-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260716/202607160306.Rfvcv11C-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/202607160306.Rfvcv11C-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/array_size.h:5,
                    from include/linux/kernel.h:16,
                    from mm/mm_init.c:9:
   mm/mm_init.c: In function 'memmap_init_range':
>> mm/mm_init.c:936:37: error: 'struct zone' has no member named 'pageblock_flags'
     936 |                         if (likely(z->pageblock_flags)) {
         |                                     ^~
   include/linux/compiler.h:76:45: note: in definition of macro 'likely'
      76 | # define likely(x)      __builtin_expect(!!(x), 1)
         |                                             ^


vim +936 mm/mm_init.c

   903	
   904		for (pfn = start_pfn; pfn < end_pfn; ) {
   905			/*
   906			 * There can be holes in boot-time mem_map[]s handed to this
   907			 * function.  They do not exist on hotplugged memory.
   908			 */
   909			if (context == MEMINIT_EARLY) {
   910				if (overlap_memmap_init(zone, &pfn))
   911					continue;
   912				if (defer_init(nid, pfn, zone_end_pfn)) {
   913					deferred_struct_pages = true;
   914					break;
   915				}
   916			}
   917	
   918			page = pfn_to_page(pfn);
   919			__init_single_page(page, pfn, zone, nid);
   920			if (context == MEMINIT_HOTPLUG) {
   921	#ifdef CONFIG_ZONE_DEVICE
   922				if (zone == ZONE_DEVICE)
   923					__SetPageReserved(page);
   924				else
   925	#endif
   926					__SetPageOffline(page);
   927			}
   928	
   929			/*
   930			 * Usually, we want to mark the pageblock MIGRATE_MOVABLE,
   931			 * such that unmovable allocations won't be scattered all
   932			 * over the place during system boot.
   933			 */
   934			if (pageblock_aligned(pfn)) {
   935				struct zone *z = page_zone(page);
 > 936				if (likely(z->pageblock_flags)) {
   937					init_pageblock_migratetype(page, migratetype,
   938							isolate_pageblock);
   939				} else {
   940					pr_warn_once("memmap_init_range: skipping pageblock init for pfn 0x%lx (zone %s has no pageblock_flags)\n",
   941						     pfn, z->name);
   942				}
   943				cond_resched();
   944			}
   945			pfn++;
   946		}
   947	}
   948	

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

                 reply	other threads:[~2026-07-16  2:01 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=202607160306.Rfvcv11C-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=brian.cain@oss.qualcomm.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.