[openeuler:openEuler-1.0-LTS 1941/1941] mm/page_alloc.c:3005: warning: Function parameter or member 'mt' not described in '__putback_isolated_page'
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: df8d11fbcbb07177c2500e63d7f5a36063977596 commit: 91bac2310ae7eca9d9869222c96fcc3d02851eea [1941/1941] mm: add function __putback_isolated_page config: arm64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251212/202512121956.obyBPboz-lkp@i...) compiler: aarch64-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251212/202512121956.obyBPboz-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/202512121956.obyBPboz-lkp@intel.com/ All warnings (new ones prefixed by >>): | ^ mm/page_alloc.c:7269:9: note: in expansion of macro 'adj_init_size' 7269 | adj_init_size(__init_begin, __init_end, init_data_size, | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:27: warning: comparison between two arrays [-Warray-compare] 7265 | if (start <= pos && pos < end && size > adj) \ | ^~ mm/page_alloc.c:7271:9: note: in expansion of macro 'adj_init_size' 7271 | adj_init_size(_stext, _etext, codesize, _sinittext, init_code_size); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:27: note: use '&_stext[0] <= &_sinittext[0]' to compare the addresses 7265 | if (start <= pos && pos < end && size > adj) \ | ^~ mm/page_alloc.c:7271:9: note: in expansion of macro 'adj_init_size' 7271 | adj_init_size(_stext, _etext, codesize, _sinittext, init_code_size); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:41: warning: comparison between two arrays [-Warray-compare] 7265 | if (start <= pos && pos < end && size > adj) \ | ^ mm/page_alloc.c:7271:9: note: in expansion of macro 'adj_init_size' 7271 | adj_init_size(_stext, _etext, codesize, _sinittext, init_code_size); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:41: note: use '&_sinittext[0] < &_etext[0]' to compare the addresses 7265 | if (start <= pos && pos < end && size > adj) \ | ^ mm/page_alloc.c:7271:9: note: in expansion of macro 'adj_init_size' 7271 | adj_init_size(_stext, _etext, codesize, _sinittext, init_code_size); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:27: warning: comparison between two arrays [-Warray-compare] 7265 | if (start <= pos && pos < end && size > adj) \ | ^~ mm/page_alloc.c:7272:9: note: in expansion of macro 'adj_init_size' 7272 | adj_init_size(_sdata, _edata, datasize, __init_begin, init_data_size); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:27: note: use '&_sdata[0] <= &__init_begin[0]' to compare the addresses 7265 | if (start <= pos && pos < end && size > adj) \ | ^~ mm/page_alloc.c:7272:9: note: in expansion of macro 'adj_init_size' 7272 | adj_init_size(_sdata, _edata, datasize, __init_begin, init_data_size); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:41: warning: comparison between two arrays [-Warray-compare] 7265 | if (start <= pos && pos < end && size > adj) \ | ^ mm/page_alloc.c:7272:9: note: in expansion of macro 'adj_init_size' 7272 | adj_init_size(_sdata, _edata, datasize, __init_begin, init_data_size); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:41: note: use '&__init_begin[0] < &_edata[0]' to compare the addresses 7265 | if (start <= pos && pos < end && size > adj) \ | ^ mm/page_alloc.c:7272:9: note: in expansion of macro 'adj_init_size' 7272 | adj_init_size(_sdata, _edata, datasize, __init_begin, init_data_size); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:27: warning: comparison between two arrays [-Warray-compare] 7265 | if (start <= pos && pos < end && size > adj) \ | ^~ mm/page_alloc.c:7273:9: note: in expansion of macro 'adj_init_size' 7273 | adj_init_size(_stext, _etext, codesize, __start_rodata, rosize); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:27: note: use '&_stext[0] <= &__start_rodata[0]' to compare the addresses 7265 | if (start <= pos && pos < end && size > adj) \ | ^~ mm/page_alloc.c:7273:9: note: in expansion of macro 'adj_init_size' 7273 | adj_init_size(_stext, _etext, codesize, __start_rodata, rosize); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:41: warning: comparison between two arrays [-Warray-compare] 7265 | if (start <= pos && pos < end && size > adj) \ | ^ mm/page_alloc.c:7273:9: note: in expansion of macro 'adj_init_size' 7273 | adj_init_size(_stext, _etext, codesize, __start_rodata, rosize); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:41: note: use '&__start_rodata[0] < &_etext[0]' to compare the addresses 7265 | if (start <= pos && pos < end && size > adj) \ | ^ mm/page_alloc.c:7273:9: note: in expansion of macro 'adj_init_size' 7273 | adj_init_size(_stext, _etext, codesize, __start_rodata, rosize); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:27: warning: comparison between two arrays [-Warray-compare] 7265 | if (start <= pos && pos < end && size > adj) \ | ^~ mm/page_alloc.c:7274:9: note: in expansion of macro 'adj_init_size' 7274 | adj_init_size(_sdata, _edata, datasize, __start_rodata, rosize); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:27: note: use '&_sdata[0] <= &__start_rodata[0]' to compare the addresses 7265 | if (start <= pos && pos < end && size > adj) \ | ^~ mm/page_alloc.c:7274:9: note: in expansion of macro 'adj_init_size' 7274 | adj_init_size(_sdata, _edata, datasize, __start_rodata, rosize); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:41: warning: comparison between two arrays [-Warray-compare] 7265 | if (start <= pos && pos < end && size > adj) \ | ^ mm/page_alloc.c:7274:9: note: in expansion of macro 'adj_init_size' 7274 | adj_init_size(_sdata, _edata, datasize, __start_rodata, rosize); | ^~~~~~~~~~~~~ mm/page_alloc.c:7265:41: note: use '&__start_rodata[0] < &_edata[0]' to compare the addresses 7265 | if (start <= pos && pos < end && size > adj) \ | ^ mm/page_alloc.c:7274:9: note: in expansion of macro 'adj_init_size' 7274 | adj_init_size(_sdata, _edata, datasize, __start_rodata, rosize); | ^~~~~~~~~~~~~
mm/page_alloc.c:3005: warning: Function parameter or member 'mt' not described in '__putback_isolated_page'
vim +3005 mm/page_alloc.c 2995 2996 /** 2997 * __putback_isolated_page - Return a now-isolated page back where we got it 2998 * @page: Page that was isolated 2999 * @order: Order of the isolated page 3000 * 3001 * This function is meant to return a page pulled from the free lists via 3002 * __isolate_free_page back to the free lists they were pulled from. 3003 */ 3004 void __putback_isolated_page(struct page *page, unsigned int order, int mt)
3005 { 3006 struct zone *zone = page_zone(page); 3007 3008 /* zone lock should be held when this function is called */ 3009 lockdep_assert_held(&zone->lock); 3010 3011 /* Return isolated page to tail of freelist. */ 3012 __free_one_page(page, page_to_pfn(page), zone, order, mt); 3013 } 3014
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot