tree:
https://github.com/alexshi/linux.git lruiso
head: 4ccbb7df391bca106655c01fe1fdb30db3f67899
commit: 4ccbb7df391bca106655c01fe1fdb30db3f67899 [20/20] debug
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-6) 7.4.0
reproduce:
git checkout 4ccbb7df391bca106655c01fe1fdb30db3f67899
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/swap.h:9:0,
from include/linux/suspend.h:5,
from arch/x86/kernel/asm-offsets.c:13:
include/linux/memcontrol.h: In function 'page_is_charge':
> include/linux/memcontrol.h:1359:18: error:
'PAGE_EXT_charge' undeclared (first use in this function); did you mean
'page_is_charge'?
return test_bit(PAGE_EXT_charge,
&page_ext->flags);
^~~~~~~~~~~~~~~
page_is_charge
include/linux/memcontrol.h:1359:18: note: each undeclared identifier is reported only
once for each function it appears in
> include/linux/memcontrol.h:1359:44: error: dereferencing pointer
to incomplete type 'struct page_ext'
return test_bit(PAGE_EXT_charge,
&page_ext->flags);
^~
include/linux/memcontrol.h: In function 'page_is_move':
> include/linux/memcontrol.h:1369:18: error:
'PAGE_EXT_move' undeclared (first use in this function)
return
test_bit(PAGE_EXT_move, &page_ext->flags);
^~~~~~~~~~~~~
include/linux/memcontrol.h: In function 'set_page_move':
include/linux/memcontrol.h:1379:10: error: 'PAGE_EXT_move' undeclared (first
use in this function)
set_bit(PAGE_EXT_move, &page_ext->flags);
^~~~~~~~~~~~~
include/linux/memcontrol.h: In function 'set_page_charge':
include/linux/memcontrol.h:1389:10: error: 'PAGE_EXT_charge' undeclared (first
use in this function); did you mean 'page_is_charge'?
set_bit(PAGE_EXT_charge, &page_ext->flags);
^~~~~~~~~~~~~~~
page_is_charge
make[2]: *** [scripts/Makefile.build:101: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1113: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:180: sub-make] Error 2
23 real 7 user 10 sys 76.90% cpu make prepare
vim +1359 include/linux/memcontrol.h
1351
1352 static inline bool page_is_charge(struct page *page)
1353 {
1354 struct page_ext *page_ext = lookup_page_ext(page);
1355
1356 if (unlikely(!page_ext))
1357 return false;
1358
1359 return test_bit(PAGE_EXT_charge, &page_ext->flags);
1360 }
1361
1362 static inline bool page_is_move(struct page *page)
1363 {
1364 struct page_ext *page_ext = lookup_page_ext(page);
1365
1366 if (unlikely(!page_ext))
1367 return false;
1368
1369 return test_bit(PAGE_EXT_move, &page_ext->flags);
1370 }
1371
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org