[norov:demotion 4/6] mm/vmscan.c:528:12: error: 'PG_demote' undeclared
From: kernel test robot
Date: Sun Aug 08 2021 - 09:14:42 EST
tree: https://github.com/norov/linux demotion
head: 78c3964952da24c07f2e34dc2d485fd2e6d5ba82
commit: e71fae18b9c6ad0f0f71a1f80cff17fdb03bfc3b [4/6] mm/demotion: enable per-page demotion
config: openrisc-randconfig-r033-20210808 (attached as .config)
compiler: or1k-linux-gcc (GCC) 10.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://github.com/norov/linux/commit/e71fae18b9c6ad0f0f71a1f80cff17fdb03bfc3b
git remote add norov https://github.com/norov/linux
git fetch --no-tags norov demotion
git checkout e71fae18b9c6ad0f0f71a1f80cff17fdb03bfc3b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=openrisc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
mm/vmscan.c: In function 'can_demote_page':
mm/vmscan.c:524:35: error: lvalue required as unary '&' operand
524 | if (test_bit(NUMA_DEMOTION_FLAG, &numa_demotion_flags))
| ^
mm/vmscan.c:527:44: error: lvalue required as unary '&' operand
527 | if (test_bit(NUMA_DEMOTION_REQ_MADV_FLAG, &numa_demotion_flags) &&
| ^
>> mm/vmscan.c:528:12: error: 'PG_demote' undeclared (first use in this function)
528 | test_bit(PG_demote, &page->flags))
| ^~~~~~~~~
mm/vmscan.c:528:12: note: each undeclared identifier is reported only once for each function it appears in
mm/vmscan.c: In function 'can_demote':
mm/vmscan.c:536:36: error: lvalue required as unary '&' operand
536 | if (!test_bit(NUMA_DEMOTION_FLAG, &numa_demotion_flags) &&
| ^
mm/vmscan.c:537:42: error: lvalue required as unary '&' operand
537 | !test_bit(NUMA_DEMOTION_REQ_MADV_FLAG, &numa_demotion_flags))
| ^
mm/vmscan.c: In function 'demote_page_list':
mm/vmscan.c:1356:6: warning: variable 'err' set but not used [-Wunused-but-set-variable]
1356 | int err;
| ^~~
vim +/PG_demote +528 mm/vmscan.c
521
522 static bool can_demote_page(struct page *page)
523 {
524 if (test_bit(NUMA_DEMOTION_FLAG, &numa_demotion_flags))
525 return true;
526
527 if (test_bit(NUMA_DEMOTION_REQ_MADV_FLAG, &numa_demotion_flags) &&
> 528 test_bit(PG_demote, &page->flags))
529 return true;
530
531 return false;
532 }
533
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip