[linux-next:master 7971/10444] include/linux/pageblock-flags.h:66:53: error: 'HPAGE_PMD_ORDER' undeclared
kernel test robot <[email protected]> Thu, 30 Jul 2026 10:52:56 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 78bc8af4affb9a732504eb22eeac7d1e50883853 commit: f476132a8999edf2225185652dce98a42347e8c9 [7971/10444] mm/mm_init: don't rely on memblock to get KHO scratch migratetype config: x86_64-randconfig-123-20260729 (https://download.01.org/0day-ci/archive/20260730/[email protected]/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/20260730/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): In file included from include/linux/nodemask.h:92, from include/linux/numa.h:6, from include/linux/cpumask.h:15, from arch/x86/include/asm/paravirt.h:19, from arch/x86/include/asm/irqflags.h:100, from include/linux/irqflags.h:18, from arch/x86/include/asm/special_insns.h:10, from arch/x86/include/asm/io.h:45, from include/linux/io.h:12, from mm/memfd_luo.c:76: include/linux/kexec_handover.h: In function 'kho_scratch_migratetype': >> include/linux/pageblock-flags.h:66:53: error: 'HPAGE_PMD_ORDER' undeclared (first use in this function) 66 | #define pageblock_order MIN_T(unsigned int, HPAGE_PMD_ORDER, PAGE_BLOCK_MAX_ORDER) | ^~~~~~~~~~~~~~~ include/linux/minmax.h:83:27: note: in definition of macro '__cmp' 83 | #define __cmp(op, x, y) ((x) __cmp_op_##op (y) ? (x) : (y)) | ^ include/linux/pageblock-flags.h:66:33: note: in expansion of macro 'MIN_T' 66 | #define pageblock_order MIN_T(unsigned int, HPAGE_PMD_ORDER, PAGE_BLOCK_MAX_ORDER) | ^~~~~ include/linux/pageblock-flags.h:75:41: note: in expansion of macro 'pageblock_order' 75 | #define pageblock_nr_pages (1UL << pageblock_order) | ^~~~~~~~~~~~~~~ include/linux/kexec_handover.h:47:48: note: in expansion of macro 'pageblock_nr_pages' 47 | if (kho_scratch_overlap(PFN_PHYS(pfn), pageblock_nr_pages << PAGE_SHIFT)) | ^~~~~~~~~~~~~~~~~~ include/linux/pageblock-flags.h:66:53: note: each undeclared identifier is reported only once for each function it appears in 66 | #define pageblock_order MIN_T(unsigned int, HPAGE_PMD_ORDER, PAGE_BLOCK_MAX_ORDER) | ^~~~~~~~~~~~~~~ include/linux/minmax.h:83:27: note: in definition of macro '__cmp' 83 | #define __cmp(op, x, y) ((x) __cmp_op_##op (y) ? (x) : (y)) | ^ include/linux/pageblock-flags.h:66:33: note: in expansion of macro 'MIN_T' 66 | #define pageblock_order MIN_T(unsigned int, HPAGE_PMD_ORDER, PAGE_BLOCK_MAX_ORDER) | ^~~~~ include/linux/pageblock-flags.h:75:41: note: in expansion of macro 'pageblock_order' 75 | #define pageblock_nr_pages (1UL << pageblock_order) | ^~~~~~~~~~~~~~~ include/linux/kexec_handover.h:47:48: note: in expansion of macro 'pageblock_nr_pages' 47 | if (kho_scratch_overlap(PFN_PHYS(pfn), pageblock_nr_pages << PAGE_SHIFT)) | ^~~~~~~~~~~~~~~~~~ vim +/HPAGE_PMD_ORDER +66 include/linux/pageblock-flags.h 72801513b2bfb6 Baolin Wang 2024-04-05 65 3800d55250976b Zi Yan 2025-06-04 @66 #define pageblock_order MIN_T(unsigned int, HPAGE_PMD_ORDER, PAGE_BLOCK_MAX_ORDER) 72801513b2bfb6 Baolin Wang 2024-04-05 67 :::::: The code at line 66 was first introduced by commit :::::: 3800d55250976b7a4bd42c255b267bc242669709 mm: rename CONFIG_PAGE_BLOCK_ORDER to CONFIG_PAGE_BLOCK_MAX_ORDER :::::: TO: Zi Yan <[email protected]> :::::: CC: Andrew Morton <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki