tree:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-4.9.y
head: d7f83e4f45e886d919bc985bd225b8355ddd9284
commit: 83c3684d71eba85d8020e345e08d9b1ba2d3a922 [9719/9999] MIPS: Disable Loongson MMI
instructions for kernel build
config: mips-randconfig-r013-20210512 (attached as .config)
compiler: mips64el-linux-gcc (GCC) 9.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://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.9.y
git checkout 83c3684d71eba85d8020e345e08d9b1ba2d3a922
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from include/linux/pid_namespace.h:6,
from include/linux/ptrace.h:8,
from arch/mips/kernel/cpu-probe.c:16:
> include/asm-generic/pgtable.h:15:2: error: #error
CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 |
#error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from include/linux/pid_namespace.h:6,
from include/linux/ptrace.h:8,
from arch/mips/kernel/cpu-probe.c:16:
include/linux/mm.h: In function 'mm_nr_pmds_init':
> include/linux/mm.h:1589:23: error: 'struct mm_struct' has
no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 |
atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
arch/mips/kernel/cpu-probe.c: In function 'set_isa':
arch/mips/kernel/cpu-probe.c:480:16: error: this statement may fall through
[-Werror=implicit-fallthrough=]
480 | c->isa_level |= MIPS_CPU_ISA_M32R2 | MIPS_CPU_ISA_M64R2;
arch/mips/kernel/cpu-probe.c:481:2: note: here
481 | case MIPS_CPU_ISA_M64R1:
| ^~~~
arch/mips/kernel/cpu-probe.c:482:16: error: this statement may fall through
[-Werror=implicit-fallthrough=]
482 | c->isa_level |= MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M64R1;
arch/mips/kernel/cpu-probe.c:483:2: note: here
483 | case MIPS_CPU_ISA_V:
| ^~~~
arch/mips/kernel/cpu-probe.c:484:16: error: this statement may fall through
[-Werror=implicit-fallthrough=]
484 | c->isa_level |= MIPS_CPU_ISA_V;
arch/mips/kernel/cpu-probe.c:485:2: note: here
485 | case MIPS_CPU_ISA_IV:
| ^~~~
arch/mips/kernel/cpu-probe.c:486:16: error: this statement may fall through
[-Werror=implicit-fallthrough=]
486 | c->isa_level |= MIPS_CPU_ISA_IV;
arch/mips/kernel/cpu-probe.c:487:2: note: here
487 | case MIPS_CPU_ISA_III:
| ^~~~
arch/mips/kernel/cpu-probe.c:493:16: error: this statement may fall through
[-Werror=implicit-fallthrough=]
493 | c->isa_level |= MIPS_CPU_ISA_M32R6 | MIPS_CPU_ISA_M64R6;
arch/mips/kernel/cpu-probe.c:494:2: note: here
494 | case MIPS_CPU_ISA_M32R6:
| ^~~~
arch/mips/kernel/cpu-probe.c:499:16: error: this statement may fall through
[-Werror=implicit-fallthrough=]
499 | c->isa_level |= MIPS_CPU_ISA_M32R2;
arch/mips/kernel/cpu-probe.c:500:2: note: here
500 | case MIPS_CPU_ISA_M32R1:
| ^~~~
arch/mips/kernel/cpu-probe.c:501:16: error: this statement may fall through
[-Werror=implicit-fallthrough=]
501 | c->isa_level |= MIPS_CPU_ISA_M32R1;
arch/mips/kernel/cpu-probe.c:502:2: note: here
502 | case MIPS_CPU_ISA_II:
| ^~~~
cc1: all warnings being treated as errors
--
In file included from arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from arch/mips/kernel/irq.c:17:
> include/asm-generic/pgtable.h:15:2: error: #error
CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 |
#error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from arch/mips/kernel/irq.c:17:
include/linux/mm.h: In function 'mm_nr_pmds_init':
> include/linux/mm.h:1589:23: error: 'struct mm_struct' has
no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 |
atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
arch/mips/kernel/irq.c: At top level:
arch/mips/kernel/irq.c:52:13: error: no previous prototype for 'init_IRQ'
[-Werror=missing-prototypes]
52 | void __init init_IRQ(void)
| ^~~~~~~~
cc1: all warnings being treated as errors
--
In file included from arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from arch/mips/kernel/process.c:16:
> include/asm-generic/pgtable.h:15:2: error: #error
CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 |
#error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from arch/mips/kernel/process.c:16:
include/linux/mm.h: In function 'mm_nr_pmds_init':
> include/linux/mm.h:1589:23: error: 'struct mm_struct' has
no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 |
atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
arch/mips/kernel/process.c: At top level:
arch/mips/kernel/process.c:88:5: error: no previous prototype for
'arch_dup_task_struct' [-Werror=missing-prototypes]
88 | int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/process.c:630:15: error: no previous prototype for
'arch_align_stack' [-Werror=missing-prototypes]
630 | unsigned long arch_align_stack(unsigned long sp)
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
In file included from arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from arch/mips/kernel/ptrace.c:22:
> include/asm-generic/pgtable.h:15:2: error: #error
CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 |
#error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from arch/mips/kernel/ptrace.c:22:
include/linux/mm.h: In function 'mm_nr_pmds_init':
> include/linux/mm.h:1589:23: error: 'struct mm_struct' has
no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 |
atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
--
In file included from arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from include/linux/memblock.h:18,
from arch/mips/kernel/setup.c:17:
> include/asm-generic/pgtable.h:15:2: error: #error
CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 |
#error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from include/linux/memblock.h:18,
from arch/mips/kernel/setup.c:17:
include/linux/mm.h: In function 'mm_nr_pmds_init':
> include/linux/mm.h:1589:23: error: 'struct mm_struct' has
no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 |
atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
arch/mips/kernel/setup.c: At top level:
arch/mips/kernel/setup.c:156:13: error: no previous prototype for
'memory_region_available' [-Werror=missing-prototypes]
156 | bool __init memory_region_available(phys_addr_t start, phys_addr_t size)
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/setup.c: In function 'bootmem_init':
arch/mips/kernel/setup.c:443:25: error: comparison of unsigned expression < 0 is
always false [-Werror=type-limits]
443 | } else if (min_low_pfn < ARCH_PFN_OFFSET) {
| ^
cc1: all warnings being treated as errors
--
In file included from arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from arch/mips/kernel/signal.c:15:
> include/asm-generic/pgtable.h:15:2: error: #error
CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 |
#error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from arch/mips/kernel/signal.c:15:
include/linux/mm.h: In function 'mm_nr_pmds_init':
> include/linux/mm.h:1589:23: error: 'struct mm_struct' has
no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 |
atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
In file included from arch/mips/include/asm/sim.h:13,
from arch/mips/kernel/signal.c:35:
arch/mips/include/asm/asm-offsets.h: At top level:
arch/mips/include/asm/asm-offsets.h:1:10: fatal error: generated/asm-offsets.h: No such
file or directory
1 | #include <generated/asm-offsets.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
--
In file included from arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from arch/mips/kernel/traps.c:25:
> include/asm-generic/pgtable.h:15:2: error: #error
CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 |
#error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from arch/mips/kernel/traps.c:25:
include/linux/mm.h: In function 'mm_nr_pmds_init':
> include/linux/mm.h:1589:23: error: 'struct mm_struct' has
no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 |
atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named
'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
arch/mips/kernel/traps.c: At top level:
arch/mips/kernel/traps.c:357:6: error: no previous prototype for
'show_registers' [-Werror=missing-prototypes]
357 | void show_registers(struct pt_regs *regs)
| ^~~~~~~~~~~~~~
arch/mips/kernel/traps.c:438:17: error: no previous prototype for 'do_be'
[-Werror=missing-prototypes]
438 | asmlinkage void do_be(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:699:17: error: no previous prototype for 'do_ov'
[-Werror=missing-prototypes]
699 | asmlinkage void do_ov(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:835:17: error: no previous prototype for 'do_fpe'
[-Werror=missing-prototypes]
835 | asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31)
| ^~~~~~
arch/mips/kernel/traps.c:958:17: error: no previous prototype for 'do_bp'
[-Werror=missing-prototypes]
958 | asmlinkage void do_bp(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1050:17: error: no previous prototype for 'do_tr'
[-Werror=missing-prototypes]
1050 | asmlinkage void do_tr(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1092:17: error: no previous prototype for 'do_ri'
[-Werror=missing-prototypes]
1092 | asmlinkage void do_ri(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1365:17: error: no previous prototype for 'do_cpu'
[-Werror=missing-prototypes]
1365 | asmlinkage void do_cpu(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1462:17: error: no previous prototype for 'do_msa_fpe'
[-Werror=missing-prototypes]
1462 | asmlinkage void do_msa_fpe(struct pt_regs *regs, unsigned int msacsr)
| ^~~~~~~~~~
arch/mips/kernel/traps.c:1482:17: error: no previous prototype for 'do_msa'
[-Werror=missing-prototypes]
1482 | asmlinkage void do_msa(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1503:17: error: no previous prototype for 'do_mdmx'
[-Werror=missing-prototypes]
1503 | asmlinkage void do_mdmx(struct pt_regs *regs)
| ^~~~~~~
arch/mips/kernel/traps.c:1515:17: error: no previous prototype for 'do_watch'
[-Werror=missing-prototypes]
1515 | asmlinkage void do_watch(struct pt_regs *regs)
| ^~~~~~~~
arch/mips/kernel/traps.c:1543:17: error: no previous prototype for 'do_mcheck'
[-Werror=missing-prototypes]
1543 | asmlinkage void do_mcheck(struct pt_regs *regs)
| ^~~~~~~~~
arch/mips/kernel/traps.c: In function 'do_mcheck':
arch/mips/kernel/traps.c:1546:17: error: variable 'prev_state' set but not used
[-Werror=unused-but-set-variable]
1546 | enum ctx_state prev_state;
| ^~~~~~~~~~
arch/mips/kernel/traps.c: At top level:
arch/mips/kernel/traps.c:1574:17: error: no previous prototype for 'do_mt'
[-Werror=missing-prototypes]
1574 | asmlinkage void do_mt(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1610:17: error: no previous prototype for 'do_dsp'
[-Werror=missing-prototypes]
1610 | asmlinkage void do_dsp(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1618:17: error: no previous prototype for
'do_reserved' [-Werror=missing-prototypes]
1618 | asmlinkage void do_reserved(struct pt_regs *regs)
| ^~~~~~~~~~~
arch/mips/kernel/traps.c:1794:17: error: no previous prototype for
'cache_parity_error' [-Werror=missing-prototypes]
1794 | asmlinkage void cache_parity_error(void)
| ^~~~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:1842:17: error: no previous prototype for 'do_ftlb'
[-Werror=missing-prototypes]
1842 | asmlinkage void do_ftlb(void)
| ^~~~~~~
arch/mips/kernel/traps.c:1875:6: error: no previous prototype for
'ejtag_exception_handler' [-Werror=missing-prototypes]
1875 | void ejtag_exception_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:1920:17: error: no previous prototype for
'nmi_exception_handler' [-Werror=missing-prototypes]
1920 | void __noreturn nmi_exception_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
..
vim +15 include/asm-generic/pgtable.h
fbd71844852c94 Ben Hutchings 2011-02-27 12
235a8f0286d3de Kirill A. Shutemov 2015-04-14 13 #if 4 - defined(__PAGETABLE_PUD_FOLDED)
- defined(__PAGETABLE_PMD_FOLDED) != \
235a8f0286d3de Kirill A. Shutemov 2015-04-14 14 CONFIG_PGTABLE_LEVELS
235a8f0286d3de Kirill A. Shutemov 2015-04-14 @15 #error CONFIG_PGTABLE_LEVELS is not
consistent with __PAGETABLE_{PUD,PMD}_FOLDED
235a8f0286d3de Kirill A. Shutemov 2015-04-14 16 #endif
235a8f0286d3de Kirill A. Shutemov 2015-04-14 17
:::::: The code at line 15 was first introduced by commit
:::::: 235a8f0286d3de5754322e9b4abd472ed4d57209 mm: define default PGTABLE_LEVELS to two
:::::: TO: Kirill A. Shutemov <kirill.shutemov(a)linux.intel.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org