tree:
https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git
meminit/descending-nodes/v1
head: 4360e9f3bf49a500417f73e62a133567fdf9842e
commit: b3e781793b0c9f7c2ae41a9fe3d6dac8a7e53e06 [2/3] dev: fix memmap init for descending
nodes
config: arm-randconfig-r034-20210622 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git/commit/?id...
git remote add rppt
https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git
git fetch --no-tags rppt meminit/descending-nodes/v1
git checkout b3e781793b0c9f7c2ae41a9fe3d6dac8a7e53e06
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
mm/page_alloc.c:2670:5: warning: no previous prototype for
'find_suitable_fallback' [-Wmissing-prototypes]
2670 | int find_suitable_fallback(struct free_area *area, unsigned int order,
| ^~~~~~~~~~~~~~~~~~~~~~
mm/page_alloc.c:3651:15: warning: no previous prototype for
'should_fail_alloc_page' [-Wmissing-prototypes]
3651 | noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
| ^~~~~~~~~~~~~~~~~~~~~~
mm/page_alloc.c: In function 'init_unavailable_range':
mm/page_alloc.c:6511:9: error: 'return' with a value, in function returning
void [-Werror=return-type]
6511 | return 0;
| ^
mm/page_alloc.c:6507:20: note: declared here
6507 | static inline void init_unavailable_range(unsigned long spfn,
| ^~~~~~~~~~~~~~~~~~~~~~
mm/page_alloc.c: In function 'memmap_init':
> mm/page_alloc.c:6545:12: warning: variable 'zone_id' set
but not used [-Wunused-but-set-variable]
6545 | int i, j, zone_id, nid;
| ^~~~~~~
cc1: some warnings being treated as errors
vim +/zone_id +6545 mm/page_alloc.c
6540
6541 static void __init memmap_init(void)
6542 {
6543 unsigned long start_pfn, end_pfn;
6544 unsigned long hole_pfn = 0;
6545 int i, j, zone_id, nid;
6546
6547 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) {
6548 struct pglist_data *node = NODE_DATA(nid);
6549
6550 for (j = 0; j < MAX_NR_ZONES; j++) {
6551 struct zone *zone = node->node_zones + j;
6552
6553 if (!populated_zone(zone))
6554 continue;
6555
6556 memmap_init_zone_range(zone, start_pfn, end_pfn,
6557 &hole_pfn);
6558 zone_id = j;
6559 }
6560 }
6561
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org