[norov:demotion4 3/6] include/linux/page-flags-layout.h:105:2: error: #error "Not enough bits in page flags"

From: kernel test robot
Date: Mon Aug 09 2021 - 03:33:46 EST


tree: https://github.com/norov/linux demotion4
head: 04f3fe952ed6bade909568a7ef3676b84e8afa48
commit: 141534a979a1648767710bdf57c4977d4a169b56 [3/6] mm/demotion: introduce MPOL_F_DEMOTE for mbind() and set_mempolicy()
config: i386-randconfig-r015-20210808 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/norov/linux/commit/141534a979a1648767710bdf57c4977d4a169b56
git remote add norov https://github.com/norov/linux
git fetch --no-tags norov demotion4
git checkout 141534a979a1648767710bdf57c4977d4a169b56
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 prepare

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

In file included from include/linux/mmzone.h:19,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets.c:9:
>> include/linux/page-flags-layout.h:105:2: error: #error "Not enough bits in page flags"
105 | #error "Not enough bits in page flags"
| ^~~~~
--
In file included from include/linux/mmzone.h:19,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets.c:9:
>> include/linux/page-flags-layout.h:105:2: error: #error "Not enough bits in page flags"
105 | #error "Not enough bits in page flags"
| ^~~~~
make[2]: *** [scripts/Makefile.build:118: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1311: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:227: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
error: no override and no default toolchain set
init/Kconfig:70:warning: 'RUSTC_VERSION': number is invalid
In file included from include/linux/mmzone.h:19,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets.c:9:
>> include/linux/page-flags-layout.h:105:2: error: #error "Not enough bits in page flags"
105 | #error "Not enough bits in page flags"
| ^~~~~
make[2]: *** [scripts/Makefile.build:118: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1311: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:227: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.


vim +105 include/linux/page-flags-layout.h

bbeae5b05ef6e4 Peter Zijlstra 2013-02-22 102
1587db62d8c0db Yu Zhao 2021-04-29 103 #if ZONES_WIDTH + SECTIONS_WIDTH + NODES_WIDTH + KASAN_TAG_WIDTH + LAST_CPUPID_WIDTH \
1587db62d8c0db Yu Zhao 2021-04-29 104 > BITS_PER_LONG - NR_PAGEFLAGS
1587db62d8c0db Yu Zhao 2021-04-29 @105 #error "Not enough bits in page flags"
75980e97daccfc Peter Zijlstra 2013-02-22 106 #endif
75980e97daccfc Peter Zijlstra 2013-02-22 107

:::::: The code at line 105 was first introduced by commit
:::::: 1587db62d8c0dbd943752f657b452213e1c4d8d4 include/linux/page-flags-layout.h: cleanups

:::::: TO: Yu Zhao <yuzhao@xxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip