tree: https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git noboot head: f62800992e5917f2bed143dbcdce2501bc6933a9 commit: f62800992e5917f2bed143dbcdce2501bc6933a9 [4/4] ia64: switch to NO_BOOTMEM config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 8.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout f62800992e5917f2bed143dbcdce2501bc6933a9 # save the attached .config to linux build tree GCC_VERSION=8.1.0 make.cross ARCH=ia64 All errors (new ones prefixed by >>): mm/page_alloc.c: In function 'update_defer_init': >> mm/page_alloc.c:321:14: error: 'PAGES_PER_SECTION' undeclared (first use in this function); did you mean 'USEC_PER_SEC'? (pfn & (PAGES_PER_SECTION - 1)) == 0) { ^~~~~~~~~~~~~~~~~ USEC_PER_SEC mm/page_alloc.c:321:14: note: each undeclared identifier is reported only once for each function it appears in In file included from include/linux/cache.h:5, from include/linux/printk.h:9, from include/linux/kernel.h:14, from include/asm-generic/bug.h:18, from arch/ia64/include/asm/bug.h:17, from include/linux/bug.h:5, from include/linux/mmdebug.h:5, from include/linux/mm.h:9, from mm/page_alloc.c:18: mm/page_alloc.c: In function 'deferred_grow_zone': mm/page_alloc.c:1624:52: error: 'PAGES_PER_SECTION' undeclared (first use in this function); did you mean 'USEC_PER_SEC'? unsigned long nr_pages_needed = ALIGN(1 << order, PAGES_PER_SECTION); ^~~~~~~~~~~~~~~~~ include/uapi/linux/kernel.h:11:47: note: in definition of macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^~~~ include/linux/kernel.h:58:22: note: in expansion of macro '__ALIGN_KERNEL' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^~~~~~~~~~~~~~ mm/page_alloc.c:1624:34: note: in expansion of macro 'ALIGN' unsigned long nr_pages_needed = ALIGN(1 << order, PAGES_PER_SECTION); ^~~~~ In file included from include/asm-generic/bug.h:18, from arch/ia64/include/asm/bug.h:17, from include/linux/bug.h:5, from include/linux/mmdebug.h:5, from include/linux/mm.h:9, from mm/page_alloc.c:18: mm/page_alloc.c: In function 'free_area_init_node': mm/page_alloc.c:6379:50: error: 'PAGES_PER_SECTION' undeclared (first use in this function); did you mean 'USEC_PER_SEC'? pgdat->static_init_pgcnt = min_t(unsigned long, PAGES_PER_SECTION, ^~~~~~~~~~~~~~~~~ include/linux/kernel.h:812:22: note: in definition of macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ include/linux/kernel.h:836:24: note: in expansion of macro '__safe_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~ include/linux/kernel.h:904:27: note: in expansion of macro '__careful_cmp' #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <) ^~~~~~~~~~~~~ mm/page_alloc.c:6379:29: note: in expansion of macro 'min_t' pgdat->static_init_pgcnt = min_t(unsigned long, PAGES_PER_SECTION, ^~~~~ include/linux/kernel.h:836:2: error: first argument to '__builtin_choose_expr' not a constant __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~~~~~~ include/linux/kernel.h:904:27: note: in expansion of macro '__careful_cmp' #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <) ^~~~~~~~~~~~~ mm/page_alloc.c:6379:29: note: in expansion of macro 'min_t' pgdat->static_init_pgcnt = min_t(unsigned long, PAGES_PER_SECTION, ^~~~~ vim +321 mm/page_alloc.c 3a80a7fa Mel Gorman 2015-06-30 307 3a80a7fa Mel Gorman 2015-06-30 308 /* 3a80a7fa Mel Gorman 2015-06-30 309 * Returns false when the remaining initialisation should be deferred until 3a80a7fa Mel Gorman 2015-06-30 310 * later in the boot cycle when it can be parallelised. 3a80a7fa Mel Gorman 2015-06-30 311 */ 3a80a7fa Mel Gorman 2015-06-30 312 static inline bool update_defer_init(pg_data_t *pgdat, 3a80a7fa Mel Gorman 2015-06-30 313 unsigned long pfn, unsigned long zone_end, 3a80a7fa Mel Gorman 2015-06-30 314 unsigned long *nr_initialised) 3a80a7fa Mel Gorman 2015-06-30 315 { 3c2c6488 Shile Zhang 2018-01-31 316 /* Always populate low zones for address-constrained allocations */ 3a80a7fa Mel Gorman 2015-06-30 317 if (zone_end < pgdat_end_pfn(pgdat)) 3a80a7fa Mel Gorman 2015-06-30 318 return true; 3a80a7fa Mel Gorman 2015-06-30 319 (*nr_initialised)++; d135e575 Pavel Tatashin 2017-11-15 320 if ((*nr_initialised > pgdat->static_init_pgcnt) && 3a80a7fa Mel Gorman 2015-06-30 @321 (pfn & (PAGES_PER_SECTION - 1)) == 0) { 3a80a7fa Mel Gorman 2015-06-30 322 pgdat->first_deferred_pfn = pfn; 3a80a7fa Mel Gorman 2015-06-30 323 return false; 3a80a7fa Mel Gorman 2015-06-30 324 } 3a80a7fa Mel Gorman 2015-06-30 325 3a80a7fa Mel Gorman 2015-06-30 326 return true; 3a80a7fa Mel Gorman 2015-06-30 327 } 3a80a7fa Mel Gorman 2015-06-30 328 #else 3a80a7fa Mel Gorman 2015-06-30 329 static inline bool early_page_uninitialised(unsigned long pfn) 3a80a7fa Mel Gorman 2015-06-30 330 { 3a80a7fa Mel Gorman 2015-06-30 331 return false; 3a80a7fa Mel Gorman 2015-06-30 332 } 3a80a7fa Mel Gorman 2015-06-30 333 :::::: The code at line 321 was first introduced by commit :::::: 3a80a7fa7989fbb6aa56bb6ad31811b62cf99e60 mm: meminit: initialise a subset of struct pages if CONFIG_DEFERRED_STRUCT_PAGE_INIT is set :::::: TO: Mel Gorman <mgorman@xxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip
![]() |