tree: git://git.cmpxchg.org/linux-mmotm.git master head: 745388a34645dd2b69f5e7115ad47fea7a218726 commit: 358ab62d860b706d6cd8c34afad63d64317b297b [66/152] mm: page_alloc: skip over regions of invalid pfns on UMA config: sparc-defconfig (attached as .config) compiler: sparc-linux-gcc (GCC) 7.2.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 358ab62d860b706d6cd8c34afad63d64317b297b # save the attached .config to linux build tree make.cross ARCH=sparc All errors (new ones prefixed by >>): mm/page_alloc.c: In function 'memmap_init_zone': >> mm/page_alloc.c:5449:11: error: implicit declaration of function 'memblock_next_valid_pfn'; did you mean 'memblock_virt_alloc_low'? [-Werror=implicit-function-declaration] pfn = memblock_next_valid_pfn(pfn, end_pfn) - 1; ^~~~~~~~~~~~~~~~~~~~~~~ memblock_virt_alloc_low cc1: some warnings being treated as errors vim +5449 mm/page_alloc.c ^1da177e4 Linus Torvalds 2005-04-16 5423 22b31eec6 Hugh Dickins 2009-01-06 5424 if (highest_memmap_pfn < end_pfn - 1) 22b31eec6 Hugh Dickins 2009-01-06 5425 highest_memmap_pfn = end_pfn - 1; 22b31eec6 Hugh Dickins 2009-01-06 5426 4b94ffdc4 Dan Williams 2016-01-15 5427 /* 4b94ffdc4 Dan Williams 2016-01-15 5428 * Honor reservation requested by the driver for this ZONE_DEVICE 4b94ffdc4 Dan Williams 2016-01-15 5429 * memory 4b94ffdc4 Dan Williams 2016-01-15 5430 */ 4b94ffdc4 Dan Williams 2016-01-15 5431 if (altmap && start_pfn == altmap->base_pfn) 4b94ffdc4 Dan Williams 2016-01-15 5432 start_pfn += altmap->reserve; 4b94ffdc4 Dan Williams 2016-01-15 5433 cbe8dd4af Greg Ungerer 2006-01-12 5434 for (pfn = start_pfn; pfn < end_pfn; pfn++) { a2f3aa025 Dave Hansen 2007-01-10 5435 /* b72d0ffb5 Andrew Morton 2016-03-15 5436 * There can be holes in boot-time mem_map[]s handed to this b72d0ffb5 Andrew Morton 2016-03-15 5437 * function. They do not exist on hotplugged memory. a2f3aa025 Dave Hansen 2007-01-10 5438 */ b72d0ffb5 Andrew Morton 2016-03-15 5439 if (context != MEMMAP_EARLY) b72d0ffb5 Andrew Morton 2016-03-15 5440 goto not_early; b72d0ffb5 Andrew Morton 2016-03-15 5441 b92df1de5 Paul Burton 2017-02-22 5442 if (!early_pfn_valid(pfn)) { b92df1de5 Paul Burton 2017-02-22 5443 /* b92df1de5 Paul Burton 2017-02-22 5444 * Skip to the pfn preceding the next valid one (or b92df1de5 Paul Burton 2017-02-22 5445 * end_pfn), such that we hit a valid pfn (or end_pfn) b92df1de5 Paul Burton 2017-02-22 5446 * on our next iteration of the loop. b92df1de5 Paul Burton 2017-02-22 5447 */ 358ab62d8 Eugeniu Rosca 2018-02-21 5448 if (IS_ENABLED(CONFIG_HAVE_MEMBLOCK)) b92df1de5 Paul Burton 2017-02-22 @5449 pfn = memblock_next_valid_pfn(pfn, end_pfn) - 1; d41dee369 Andy Whitcroft 2005-06-23 5450 continue; b92df1de5 Paul Burton 2017-02-22 5451 } 751679573 Andy Whitcroft 2006-10-21 5452 if (!early_pfn_in_nid(pfn, nid)) 751679573 Andy Whitcroft 2006-10-21 5453 continue; b72d0ffb5 Andrew Morton 2016-03-15 5454 if (!update_defer_init(pgdat, pfn, end_pfn, &nr_initialised)) 3a80a7fa7 Mel Gorman 2015-06-30 5455 break; 342332e6a Taku Izumi 2016-03-15 5456 :::::: The code at line 5449 was first introduced by commit :::::: b92df1de5d289c0b5d653e72414bf0850b8511e0 mm: page_alloc: skip over regions of invalid pfns where possible :::::: TO: Paul Burton <paul.burton@xxxxxxxxxx> :::::: 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