Re: [PATCHv2] mm: Account pud page tables

From: kbuild test robot
Date: Sat Sep 30 2017 - 20:38:58 EST


Hi Kirill,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.14-rc2]
[cannot apply to next-20170929]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Kirill-A-Shutemov/mm-Account-pud-page-tables/20170926-031536
config: microblaze-nommu_defconfig (attached as .config)
compiler: microblaze-linux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=microblaze

All errors (new ones prefixed by >>):

In file included from arch/microblaze/include/uapi/asm/byteorder.h:7:0,
from include/asm-generic/bitops/le.h:5,
from include/asm-generic/bitops.h:34,
from ./arch/microblaze/include/generated/asm/bitops.h:1,
from include/linux/bitops.h:37,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:15,
from ./arch/microblaze/include/generated/asm/bug.h:1,
from include/linux/bug.h:4,
from include/linux/page-flags.h:9,
from kernel/bounds.c:9:
include/linux/byteorder/big_endian.h:7:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp]
#warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN
^~~~~~~
In file included from arch/microblaze/include/uapi/asm/byteorder.h:7:0,
from include/asm-generic/bitops/le.h:5,
from include/asm-generic/bitops.h:34,
from ./arch/microblaze/include/generated/asm/bitops.h:1,
from include/linux/bitops.h:37,
from include/linux/kernel.h:10,
from include/linux/list.h:8,
from include/linux/rculist.h:9,
from include/linux/pid.h:4,
from include/linux/sched.h:13,
from arch/microblaze/kernel/asm-offsets.c:13:
include/linux/byteorder/big_endian.h:7:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp]
#warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN
^~~~~~~
In file included from arch/microblaze/include/asm/io.h:17:0,
from include/linux/io.h:25,
from include/linux/irq.h:24,
from include/asm-generic/hardirq.h:12,
from ./arch/microblaze/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:8,
from include/linux/interrupt.h:12,
from include/linux/kernel_stat.h:8,
from arch/microblaze/kernel/asm-offsets.c:14:
include/linux/mm.h: In function 'mm_nr_puds_init':
>> include/linux/mm.h:1622:21: error: 'struct mm_struct' has no member named 'nr_puds'; did you mean 'nr_ptes'?
atomic_long_set(&mm->nr_puds, 0);
^~
include/linux/mm.h: In function 'mm_nr_puds':
>> include/linux/mm.h:1627:29: error: 'const struct mm_struct' has no member named 'nr_puds'; did you mean 'nr_ptes'?
return atomic_long_read(&mm->nr_puds);
^~
include/linux/mm.h: In function 'mm_inc_nr_puds':
include/linux/mm.h:1632:21: error: 'struct mm_struct' has no member named 'nr_puds'; did you mean 'nr_ptes'?
atomic_long_inc(&mm->nr_puds);
^~
include/linux/mm.h: In function 'mm_dec_nr_puds':
include/linux/mm.h:1637:21: error: 'struct mm_struct' has no member named 'nr_puds'; did you mean 'nr_ptes'?
atomic_long_dec(&mm->nr_puds);
^~
make[2]: *** [arch/microblaze/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2

vim +1622 include/linux/mm.h

1619
1620 static inline void mm_nr_puds_init(struct mm_struct *mm)
1621 {
> 1622 atomic_long_set(&mm->nr_puds, 0);
1623 }
1624
1625 static inline unsigned long mm_nr_puds(const struct mm_struct *mm)
1626 {
> 1627 return atomic_long_read(&mm->nr_puds);
1628 }
1629

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip