tree:
https://github.com/alexshi/linux.git 58lru
head: d89fa86f842f0474cc8fb76e2896e84209d99746
commit: f9f7d0891bce8957b6c28239c6bc99e4b4b8357c [16/21] mm/lru: replace pgdat lru_lock
with lruvec lock
config: nds32-allmodconfig (attached as .config)
compiler: nds32le-linux-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
git checkout f9f7d0891bce8957b6c28239c6bc99e4b4b8357c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/nds32/include/asm/page.h:57,
from include/linux/mm_types_task.h:16,
from include/linux/mm_types.h:5,
from include/linux/mmzone.h:21,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from mm//swap.c:17:
mm//internal.h: In function 'mem_map_next':
arch/nds32/include/asm/memory.h:82:32: warning: comparison of unsigned expression >=
0 is always true [-Wtype-limits]
82 | #define pfn_valid(pfn) ((pfn) >= PHYS_PFN_OFFSET && (pfn) <
(PHYS_PFN_OFFSET + max_mapnr))
| ^~
mm//internal.h:455:8: note: in expansion of macro 'pfn_valid'
455 | if (!pfn_valid(pfn))
| ^~~~~~~~~
mm//swap.c: In function 'activate_page':
> mm//swap.c:367:2: error: too many arguments to function
'__activate_page'
367 | __activate_page(page, lruvec, NULL);
| ^~~~~~~~~~~~~~~
mm//swap.c:308:13: note: declared here
308 | static void __activate_page(struct page *page, struct lruvec *lruvec)
| ^~~~~~~~~~~~~~~
mm//swap.c:362:13: warning: unused variable 'pgdat' [-Wunused-variable]
362 | pg_data_t *pgdat = page_pgdat(page);
| ^~~~~
vim +/__activate_page +367 mm//swap.c
359
360 void activate_page(struct page *page)
361 {
362 pg_data_t *pgdat = page_pgdat(page);
363 struct lruvec *lruvec;
364
365 page = compound_head(page);
366 lruvec = lock_page_lruvec_irq(page);
367 __activate_page(page, lruvec, NULL);
368 unlock_page_lruvec_irq(lruvec);
369 }
370 #endif
371
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org