[openeuler:OLK-6.6 3083/3083] mm/page_alloc.c:1668:17: error: use of undeclared identifier 'MAX_PAGE_ORDER'
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 5394cae209c4a4990d81be436ba17ae56fb09d16 commit: 5a5fd38ba9135eb97df57cef7392bb457ef2ef04 [3083/3083] mm: page_isolation: prepare for hygienic freelists config: x86_64-randconfig-001-20251103 (https://download.01.org/0day-ci/archive/20251103/202511030359.alOLxYJG-lkp@i...) 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/20251103/202511030359.alOLxYJG-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/202511030359.alOLxYJG-lkp@intel.com/ All errors (new ones prefixed by >>):
mm/page_alloc.c:1668:17: error: use of undeclared identifier 'MAX_PAGE_ORDER' 1668 | if (++order > MAX_PAGE_ORDER) | ^ mm/page_alloc.c:1734:25: error: use of undeclared identifier 'MAX_PAGE_ORDER' 1734 | if (pageblock_order == MAX_PAGE_ORDER) | ^ 2 errors generated.
vim +/MAX_PAGE_ORDER +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