[openeuler:OLK-6.6 3064/3064] mm/page_alloc.c:1668:31: error: 'MAX_PAGE_ORDER' undeclared; did you mean 'MAX_XAS_ORDER'?
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 2f6a2b7160d59b59ef2bd08614200d0a2219b54e commit: 5a5fd38ba9135eb97df57cef7392bb457ef2ef04 [3064/3064] mm: page_isolation: prepare for hygienic freelists config: x86_64-randconfig-016-20251029 (https://download.01.org/0day-ci/archive/20251030/202510300800.0Oz3WLDb-lkp@i...) compiler: gcc-13 (Debian 13.3.0-16) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251030/202510300800.0Oz3WLDb-lkp@i...) 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/202510300800.0Oz3WLDb-lkp@intel.com/ All errors (new ones prefixed by >>): mm/page_alloc.c: In function 'find_large_buddy':
mm/page_alloc.c:1668:31: error: 'MAX_PAGE_ORDER' undeclared (first use in this function); did you mean 'MAX_XAS_ORDER'? 1668 | if (++order > MAX_PAGE_ORDER) | ^~~~~~~~~~~~~~ | MAX_XAS_ORDER mm/page_alloc.c:1668:31: note: each undeclared identifier is reported only once for each function it appears in mm/page_alloc.c: In function 'move_freepages_block_isolate': mm/page_alloc.c:1734:32: error: 'MAX_PAGE_ORDER' undeclared (first use in this function); did you mean 'MAX_XAS_ORDER'? 1734 | if (pageblock_order == MAX_PAGE_ORDER) | ^~~~~~~~~~~~~~ | MAX_XAS_ORDER
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for PTP_1588_CLOCK Depends on [n]: NET [=y] && POSIX_TIMERS [=n] Selected by [m]: - SXE [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_LINKDATA [=y] && (X86 [=y] || ARM64) && PCI [=y] - SXE_VF [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_LINKDATA [=y] && (X86 [=y] || ARM64) && PCI [=y] vim +1668 mm/page_alloc.c 1657 1658 #ifdef CONFIG_MEMORY_ISOLATION 1659 /* Look for a buddy that straddles start_pfn */ 1660 static unsigned long find_large_buddy(unsigned long start_pfn) 1661 { 1662 int order = 0; 1663 struct page *page; 1664 unsigned long pfn = start_pfn; 1665 1666 while (!PageBuddy(page = pfn_to_page(pfn))) { 1667 /* Nothing found */
1668 if (++order > MAX_PAGE_ORDER) 1669 return start_pfn; 1670 pfn &= ~0UL << order; 1671 } 1672 1673 /* 1674 * Found a preceding buddy, but does it straddle? 1675 */ 1676 if (pfn + (1 << buddy_order(page)) > start_pfn) 1677 return pfn; 1678 1679 /* Nothing found */ 1680 return start_pfn; 1681 } 1682
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot