tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 3946cd385042069ec57d3f04240def53b4eed7e5 commit: 5d2f33872046e7ffdd62dd80472cd466ea8407ac [7986/8610] mm, vmacache: hash addresses based on pmd config: microblaze-nommu_defconfig (attached as .config) compiler: microblaze-linux-gcc (GCC) 8.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 5d2f33872046e7ffdd62dd80472cd466ea8407ac # save the attached .config to linux build tree GCC_VERSION=8.1.0 make.cross ARCH=microblaze Note: the linux-next/master HEAD 3946cd385042069ec57d3f04240def53b4eed7e5 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): mm/vmacache.c: In function 'vmacache_update': >> mm/vmacache.c:14:39: error: 'PMD_SHIFT' undeclared (first use in this function); did you mean 'NMI_SHIFT'? #define VMACACHE_HASH(addr) ((addr >> PMD_SHIFT) & VMACACHE_MASK) ^~~~~~~~~ mm/vmacache.c:71:26: note: in expansion of macro 'VMACACHE_HASH' current->vmacache.vmas[VMACACHE_HASH(addr)] = newvma; ^~~~~~~~~~~~~ mm/vmacache.c:14:39: note: each undeclared identifier is reported only once for each function it appears in #define VMACACHE_HASH(addr) ((addr >> PMD_SHIFT) & VMACACHE_MASK) ^~~~~~~~~ mm/vmacache.c:71:26: note: in expansion of macro 'VMACACHE_HASH' current->vmacache.vmas[VMACACHE_HASH(addr)] = newvma; ^~~~~~~~~~~~~ mm/vmacache.c: In function 'vmacache_find': >> mm/vmacache.c:14:39: error: 'PMD_SHIFT' undeclared (first use in this function); did you mean 'NMI_SHIFT'? #define VMACACHE_HASH(addr) ((addr >> PMD_SHIFT) & VMACACHE_MASK) ^~~~~~~~~ mm/vmacache.c:96:12: note: in expansion of macro 'VMACACHE_HASH' int idx = VMACACHE_HASH(addr); ^~~~~~~~~~~~~ mm/vmacache.c: In function 'vmacache_find_exact': mm/vmacache.c:127:26: error: 'addr' undeclared (first use in this function) int idx = VMACACHE_HASH(addr); ^~~~ mm/vmacache.c:14:31: note: in definition of macro 'VMACACHE_HASH' #define VMACACHE_HASH(addr) ((addr >> PMD_SHIFT) & VMACACHE_MASK) ^~~~ >> mm/vmacache.c:14:39: error: 'PMD_SHIFT' undeclared (first use in this function); did you mean 'NMI_SHIFT'? #define VMACACHE_HASH(addr) ((addr >> PMD_SHIFT) & VMACACHE_MASK) ^~~~~~~~~ mm/vmacache.c:127:12: note: in expansion of macro 'VMACACHE_HASH' int idx = VMACACHE_HASH(addr); ^~~~~~~~~~~~~ vim +14 mm/vmacache.c 9 10 /* 11 * Hash based on the pmd of addr. Provides a good hit rate for workloads with 12 * spatial locality. 13 */ > 14 #define VMACACHE_HASH(addr) ((addr >> PMD_SHIFT) & VMACACHE_MASK) 15 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip