from init/main.c:21: ./include/linux/mm.h: In function 'maybe_mkwrite': ./include/linux/mm.h:971:23: error: implicit declaration of function 'pte_mkwrite'; did you mean 'maybe_mkwrite'? [-Werror=implicit-function-declaration] 971 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h:971:23: error: incompatible types when assigning to type 'pte_t' from type 'int' In file included from ./include/linux/bvec.h:14, from ./include/linux/blk_types.h:10, from ./include/linux/genhd.h:19, from ./include/linux/blkdev.h:8, from kernel/sched/sched.h:39, from kernel/sched/clock.c:56: ./include/linux/mm.h: In function 'maybe_mkwrite': ./include/linux/mm.h:971:23: error: implicit declaration of function 'pte_mkwrite'; did you mean 'maybe_mkwrite'? [-Werror=implicit-function-declaration] 971 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h:971:23: error: incompatible types when assigning to type 'pte_t' from type 'int' In file included from ./include/linux/bvec.h:14, from ./include/linux/blk_types.h:10, from ./include/linux/genhd.h:19, from ./include/linux/blkdev.h:8, from kernel/sched/sched.h:39, from kernel/sched/loadavg.c:9: ./include/linux/mm.h: In function 'maybe_mkwrite': ./include/linux/mm.h:971:23: error: implicit declaration of function 'pte_mkwrite'; did you mean 'maybe_mkwrite'? [-Werror=implicit-function-declaration] 971 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h:971:23: error: incompatible types when assigning to type 'pte_t' from type 'int' In file included from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/syscall.h:7, from ./include/linux/syscalls.h:84, from init/main.c:21: ./include/linux/mm.h: In function 'mm_inc_nr_pmds': ./include/linux/mm.h:2080:25: error: 'PTRS_PER_PMD' undeclared (first use in this function); did you mean 'PTRS_PER_P4D'? 2080 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D In file included from ./include/linux/bvec.h:14, from ./include/linux/blk_types.h:10, from ./include/linux/genhd.h:19, from ./include/linux/blkdev.h:8, from kernel/sched/sched.h:39, from kernel/sched/clock.c:56: ./include/linux/mm.h: In function 'mm_inc_nr_pmds': ./include/linux/mm.h:2080:25: error: 'PTRS_PER_PMD' undeclared (first use in this function); did you mean 'PTRS_PER_P4D'? 2080 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D In file included from ./include/linux/bvec.h:14, from ./include/linux/blk_types.h:10, from ./include/linux/genhd.h:19, from ./include/linux/blkdev.h:8, from kernel/sched/sched.h:39, from kernel/sched/core.c:13: ./include/linux/mm.h: In function 'maybe_mkwrite': ./include/linux/mm.h:971:23: error: implicit declaration of function 'pte_mkwrite'; did you mean 'maybe_mkwrite'? [-Werror=implicit-function-declaration] 971 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h: In function 'mm_dec_nr_pmds': ./include/linux/mm.h:971:23: error: incompatible types when assigning to type 'pte_t' from type 'int' ./include/linux/mm.h:2087:25: error: 'PTRS_PER_PMD' undeclared (first use in this function); did you mean 'PTRS_PER_P4D'? 2087 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D In file included from ./include/linux/bvec.h:14, from ./include/linux/blk_types.h:10, from ./include/linux/genhd.h:19, from ./include/linux/blkdev.h:8, from kernel/sched/sched.h:39, from kernel/sched/loadavg.c:9: ./include/linux/mm.h: In function 'mm_inc_nr_pmds': ./include/linux/mm.h:2080:25: error: 'PTRS_PER_PMD' undeclared (first use in this function); did you mean 'PTRS_PER_P4D'? 2080 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function 'mm_dec_nr_pmds': ./include/linux/mm.h:2087:25: error: 'PTRS_PER_PMD' undeclared (first use in this function); did you mean 'PTRS_PER_P4D'? 2087 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function 'mm_inc_nr_ptes': ./include/linux/mm.h:2104:25: error: 'PTRS_PER_PTE' undeclared (first use in this function); did you mean 'PTRS_PER_P4D'? 2104 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function 'mm_dec_nr_pmds': ./include/linux/mm.h:2087:25: error: 'PTRS_PER_PMD' undeclared (first use in this function); did you mean 'PTRS_PER_P4D'? 2087 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function 'mm_inc_nr_ptes': ./include/linux/mm.h:2104:25: error: 'PTRS_PER_PTE' undeclared (first use in this function); did you mean 'PTRS_PER_P4D'? 2104 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D In file included from ./include/linux/bvec.h:14, from ./include/linux/blk_types.h:10, from ./include/linux/genhd.h:19, from ./include/linux/blkdev.h:8, from kernel/sched/sched.h:39, from kernel/sched/core.c:13: ./include/linux/mm.h: In function 'mm_inc_nr_pmds': ./include/linux/mm.h:2080:25: error: 'PTRS_PER_PMD' undeclared (first use in this function); did you mean 'PTRS_PER_PUD'? 2080 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/mm.h: In function 'mm_dec_nr_ptes': ./include/linux/mm.h:2109:25: error: 'PTRS_PER_PTE' undeclared (first use in this function); did you mean 'PTRS_PER_P4D'? 2109 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function 'mm_inc_nr_ptes': ./include/linux/mm.h: In function 'mm_dec_nr_ptes': ./include/linux/mm.h:2104:25: error: 'PTRS_PER_PTE' undeclared (first use in this function); did you mean 'PTRS_PER_P4D'? 2104 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h:2109:25: error: 'PTRS_PER_PTE' undeclared (first use in this function); did you mean 'PTRS_PER_P4D'? 2109 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function 'mm_dec_nr_pmds': ./include/linux/mm.h:2087:25: error: 'PTRS_PER_PMD' undeclared (first use in this function); did you mean 'PTRS_PER_PUD'? 2087 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/mm.h: In function 'mm_dec_nr_ptes': ./include/linux/mm.h:2109:25: error: 'PTRS_PER_PTE' undeclared (first use in this function); did you mean 'PTRS_PER_P4D'? 2109 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function 'mm_inc_nr_ptes': ./include/linux/mm.h:2104:25: error: 'PTRS_PER_PTE' undeclared (first use in this function); did you mean 'PTRS_PER_PUD'? 2104 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/mm.h: In function 'mm_dec_nr_ptes': ./include/linux/mm.h:2109:25: error: 'PTRS_PER_PTE' undeclared (first use in this function); did you mean 'PTRS_PER_PUD'? 2109 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD In file included from ./include/linux/mmu_context.h:5, from kernel/sched/sched.h:54, from kernel/sched/clock.c:56: ./arch/m68k/include/asm/mmu_context.h: In function 'switch_mm_0230': ./arch/m68k/include/asm/mmu_context.h:239:30: error: '_PAGE_TABLE' undeclared (first use in this function); did you mean 'NR_PAGETABLE'? 239 | 0x80000000 | _PAGE_TABLE, mm->context | ^~~~~~~~~~~ | NR_PAGETABLE cc1: some warnings being treated as errors In file included from ./include/linux/mmu_context.h:5, from kernel/sched/sched.h:54, from kernel/sched/loadavg.c:9: ./arch/m68k/include/asm/mmu_context.h: In function 'switch_mm_0230': ./arch/m68k/include/asm/mmu_context.h:239:30: error: '_PAGE_TABLE' undeclared (first use in this function); did you mean 'NR_PAGETABLE'? 239 | 0x80000000 | _PAGE_TABLE, mm->context | ^~~~~~~~~~~ | NR_PAGETABLE scripts/Makefile.build:280: recipe for target 'init/main.o' failed make[2]: *** [init/main.o] Error 1 Makefile:1822: recipe for target 'init' failed make[1]: *** [init] Error 2 CC kernel/locking/mutex.o In file included from ./include/linux/mmu_context.h:5, from kernel/sched/sched.h:54, from kernel/sched/core.c:13: ./arch/m68k/include/asm/mmu_context.h: In function 'switch_mm_0230': ./arch/m68k/include/asm/mmu_context.h:239:30: error: '_PAGE_TABLE' undeclared (first use in this function); did you mean 'NR_PAGETABLE'? 239 | 0x80000000 | _PAGE_TABLE, mm->context | ^~~~~~~~~~~ | NR_PAGETABLE ./arch/m68k/include/asm/mmu_context.h:250:38: error: 'FLUSH_I_AND_D' undeclared (first use in this function) 250 | : "=d" (tmp) : "di" (FLUSH_I_AND_D)); | ^~~~~~~~~~~~~ ./arch/m68k/include/asm/mmu_context.h:250:38: error: 'FLUSH_I_AND_D' undeclared (first use in this function) 250 | : "=d" (tmp) : "di" (FLUSH_I_AND_D)); | ^~~~~~~~~~~~~ ./arch/m68k/include/asm/mmu_context.h:250:38: error: 'FLUSH_I_AND_D' undeclared (first use in this function) 250 | : "=d" (tmp) : "di" (FLUSH_I_AND_D)); | ^~~~~~~~~~~~~ In file included from ./arch/m68k/include/asm/tlb.h:5, from kernel/sched/sched.h:69, from kernel/sched/clock.c:56: ./include/asm-generic/tlb.h: In function 'tlb_get_unmap_shift': ./include/asm-generic/tlb.h:468:24: error: 'PMD_SHIFT' undeclared (first use in this function); did you mean 'PUD_SHIFT'? 468 | return PMD_SHIFT; | ^~~~~~~~~ | PUD_SHIFT In file included from ./arch/m68k/include/asm/tlb.h:5, from kernel/sched/sched.h:69, from kernel/sched/loadavg.c:9: ./include/asm-generic/tlb.h: In function 'tlb_get_unmap_shift': ./include/asm-generic/tlb.h:468:24: error: 'PMD_SHIFT' undeclared (first use in this function); did you mean 'PUD_SHIFT'? 468 | return PMD_SHIFT; | ^~~~~~~~~ | PUD_SHIFT In file included from ./arch/m68k/include/asm/tlb.h:5, from kernel/sched/sched.h:69, from kernel/sched/core.c:13: ./include/asm-generic/tlb.h: In function 'tlb_get_unmap_shift': ./include/asm-generic/tlb.h:468:24: error: 'PMD_SHIFT' undeclared (first use in this function); did you mean 'PUD_SHIFT'? 468 | return PMD_SHIFT; | ^~~~~~~~~ | PUD_SHIFT In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/bvec.h:14, from ./include/linux/blk_types.h:10, from ./include/linux/genhd.h:19, from ./include/linux/blkdev.h:8, from kernel/sched/sched.h:39, from kernel/sched/clock.c:56: ./include/asm-generic/pgtable-nop4d.h:11:33: error: 'PGDIR_SHIFT' undeclared (first use in this function); did you mean 'PUD_SHIFT'? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro 'P4D_SHIFT' 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/asm-generic/tlb.h:470:24: note: in expansion of macro 'PUD_SHIFT' 470 | return PUD_SHIFT; | ^~~~~~~~~ In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/bvec.h:14, from ./include/linux/blk_types.h:10, from ./include/linux/genhd.h:19, from ./include/linux/blkdev.h:8, from kernel/sched/sched.h:39, from kernel/sched/loadavg.c:9: ./include/asm-generic/pgtable-nop4d.h:11:33: error: 'PGDIR_SHIFT' undeclared (first use in this function); did you mean 'PUD_SHIFT'? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro 'P4D_SHIFT' 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/asm-generic/tlb.h:470:24: note: in expansion of macro 'PUD_SHIFT' 470 | return PUD_SHIFT; | ^~~~~~~~~ In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/bvec.h:14, from ./include/linux/blk_types.h:10, from ./include/linux/genhd.h:19, from ./include/linux/blkdev.h:8, from kernel/sched/sched.h:39, from kernel/sched/core.c:13: ./include/asm-generic/pgtable-nop4d.h:11:33: error: 'PGDIR_SHIFT' undeclared (first use in this function); did you mean 'PUD_SHIFT'? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro 'P4D_SHIFT' 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/asm-generic/tlb.h:470:24: note: in expansion of macro 'PUD_SHIFT' 470 | return PUD_SHIFT; | ^~~~~~~~~ cc1: some warnings being treated as errors scripts/Makefile.build:280: recipe for target 'kernel/sched/clock.o' failed make[3]: *** [kernel/sched/clock.o] Error 1 make[3]: *** Waiting for unfinished jobs.... CC kernel/locking/semaphore.o cc1: some warnings being treated as errors scripts/Makefile.build:280: recipe for target 'kernel/sched/loadavg.o' failed make[3]: *** [kernel/sched/loadavg.o] Error 1 CC kernel/locking/rwsem.o cc1: some warnings being treated as errors scripts/Makefile.build:280: recipe for target 'kernel/sched/core.o' failed make[3]: *** [kernel/sched/core.o] Error 1 scripts/Makefile.build:497: recipe for target 'kernel/sched' failed make[2]: *** [kernel/sched] Error 2 make[2]: *** Waiting for unfinished jobs.... CC kernel/locking/percpu-rwsem.o In file included from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:11, from kernel/locking/semaphore.c:34: ./include/linux/pgtable.h: In function 'pte_index': ./include/linux/pgtable.h:45:43: error: 'PTRS_PER_PTE' undeclared (first use in this function); did you mean 'PTRS_PER_PUD'? 45 | return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/pgtable.h:45:43: note: each undeclared identifier is reported only once for each function it appears in ./include/linux/pgtable.h: In function 'pmd_index': ./include/linux/pgtable.h:52:28: error: 'PMD_SHIFT' undeclared (first use in this function); did you mean 'PUD_SHIFT'? 52 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~ | PUD_SHIFT ./include/linux/pgtable.h:52:42: error: 'PTRS_PER_PMD' undeclared (first use in this function); did you mean 'PTRS_PER_PUD'? 52 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~~~~ | PTRS_PER_PUD In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:11, from kernel/locking/semaphore.c:34: ./include/linux/pgtable.h: In function 'pud_index': ./include/asm-generic/pgtable-nop4d.h:11:33: error: 'PGDIR_SHIFT' undeclared (first use in this function); did you mean 'PUD_SHIFT'? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro 'P4D_SHIFT' 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/linux/pgtable.h:60:28: note: in expansion of macro 'PUD_SHIFT' 60 | return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1); | ^~~~~~~~~ In file included from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:11, from kernel/locking/semaphore.c:34: ./include/linux/pgtable.h: In function 'pte_offset_kernel': ./include/linux/pgtable.h:73:25: error: implicit declaration of function 'pmd_page_vaddr'; did you mean 'p4d_page_vaddr'? [-Werror=implicit-function-declaration] 73 | return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); | ^~~~~~~~~~~~~~ | p4d_page_vaddr ./include/linux/pgtable.h: In function 'pgd_offset_pgd': ./include/linux/pgtable.h:67:32: error: 'PGDIR_SHIFT' undeclared (first use in this function); did you mean 'PUD_SHIFT'? 67 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~ ./include/linux/pgtable.h:107:23: note: in expansion of macro 'pgd_index' 107 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h:67:48: error: 'PTRS_PER_PGD' undeclared (first use in this function); did you mean 'PTRS_PER_PUD'? 67 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~~ ./include/linux/pgtable.h:107:23: note: in expansion of macro 'pgd_index' 107 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function 'virt_to_kpte': ./include/linux/pgtable.h:146:16: error: implicit declaration of function 'pmd_none'; did you mean 'p4d_none'? [-Werror=implicit-function-declaration] 146 | return pmd_none(*pmd) ? NULL : pte_offset_kernel(pmd, vaddr); | ^~~~~~~~ | p4d_none ./include/linux/pgtable.h: In function 'ptep_test_and_clear_young': ./include/linux/pgtable.h:188:14: error: implicit declaration of function 'pte_young' [-Werror=implicit-function-declaration] 188 | if (!pte_young(pte)) | ^~~~~~~~~ ./include/linux/pgtable.h:191:17: error: implicit declaration of function 'set_pte_at' [-Werror=implicit-function-declaration] 191 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~~ ./include/linux/pgtable.h:191:55: error: implicit declaration of function 'pte_mkold' [-Werror=implicit-function-declaration] 191 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function 'ptep_get_and_clear': ./include/linux/pgtable.h:250:9: error: implicit declaration of function 'pte_clear'; did you mean 'p4d_clear'? [-Werror=implicit-function-declaration] 250 | pte_clear(mm, address, ptep); | ^~~~~~~~~ | p4d_clear ./include/linux/pgtable.h: In function 'ptep_set_wrprotect': ./include/linux/pgtable.h:369:39: error: implicit declaration of function 'pte_wrprotect'; did you mean 'ptep_set_wrprotect'? [-Werror=implicit-function-declaration] 369 | set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); | ^~~~~~~~~~~~~ | ptep_set_wrprotect ./include/linux/pgtable.h: In function 'pud_none_or_clear_bad': ./include/linux/pgtable.h:758:13: error: implicit declaration of function 'pud_none'; did you mean 'p4d_none'? [-Werror=implicit-function-declaration] 758 | if (pud_none(*pud)) | ^~~~~~~~ | p4d_none In file included from kernel/locking/semaphore.c:27: ./include/linux/pgtable.h:760:22: error: implicit declaration of function 'pud_bad'; did you mean 'p4d_bad'? [-Werror=implicit-function-declaration] 760 | if (unlikely(pud_bad(*pud))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ ./include/linux/pgtable.h: In function 'pmd_none_or_clear_bad': ./include/linux/pgtable.h:771:22: error: implicit declaration of function 'pmd_bad'; did you mean 'p4d_bad'? [-Werror=implicit-function-declaration] 771 | if (unlikely(pmd_bad(*pmd))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:11, from kernel/locking/semaphore.c:34: ./include/linux/pgtable.h: In function 'pmd_none_or_trans_huge_or_clear_bad': ./include/linux/pgtable.h:1237:67: error: implicit declaration of function 'pmd_present'; did you mean 'p4d_present'? [-Werror=implicit-function-declaration] 1237 | (IS_ENABLED(CONFIG_ARCH_ENABLE_THP_MIGRATION) && !pmd_present(pmdval))) | ^~~~~~~~~~~ | p4d_present {standard input}: Assembler messages: {standard input}:50: Error: operands mismatch -- statement `andl #-8,(%a0)' ignored {standard input}:185: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:225: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:261: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:319: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:451: Error: operands mismatch -- statement `orl #1,(%a4)' ignored {standard input}:504: Error: operands mismatch -- statement `orl #1,(%a4)' ignored {standard input}:567: Error: operands mismatch -- statement `orl #2,(%a4)' ignored {standard input}:637: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:686: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:751: Error: operands mismatch -- statement `orl #1,(%a3)' ignored {standard input}:786: Error: operands mismatch -- statement `orl #2,(%a3)' ignored {standard input}:820: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:851: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:882: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:912: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored scripts/Makefile.build:280: recipe for target 'kernel/locking/mutex.o' failed make[3]: *** [kernel/locking/mutex.o] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:11, from kernel/locking/semaphore.c:34: ./include/linux/mm.h: In function 'maybe_mkwrite': ./include/linux/mm.h:971:23: error: implicit declaration of function 'pte_mkwrite'; did you mean 'maybe_mkwrite'? [-Werror=implicit-function-declaration] 971 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h:971:23: error: incompatible types when assigning to type 'pte_t' from type 'int' {standard input}: Assembler messages: {standard input}:21: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `andiw #-1793,%sr' ignored {standard input}:49: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:77: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:147: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:174: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:228: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:315: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:381: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:411: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:428: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:458: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:478: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:517: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:555: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:594: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:609: Error: operands mismatch -- statement `andl #-7,(%a3)' ignored {standard input}:725: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:767: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:797: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:822: Error: operands mismatch -- statement `orl #2,4(%a3)' ignored {standard input}:833: Error: operands mismatch -- statement `orl #2,(%a3)' ignored {standard input}:865: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:878: Error: operands mismatch -- statement `addl #-4,(%a3)' ignored {standard input}:884: Error: operands mismatch -- statement `andl #-3,(%a3)' ignored {standard input}:923: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:943: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:969: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored scripts/Makefile.build:280: recipe for target 'kernel/locking/rwsem.o' failed make[3]: *** [kernel/locking/rwsem.o] Error 1 In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:11, from kernel/locking/semaphore.c:34: ./include/linux/mm.h: In function 'mm_inc_nr_pmds': ./include/linux/mm.h:2080:25: error: 'PTRS_PER_PMD' undeclared (first use in this function); did you mean 'PTRS_PER_PUD'? 2080 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/mm.h: In function 'mm_dec_nr_pmds': ./include/linux/mm.h:2087:25: error: 'PTRS_PER_PMD' undeclared (first use in this function); did you mean 'PTRS_PER_PUD'? 2087 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD {standard input}: Assembler messages: {standard input}:63: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:102: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:112: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:139: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:177: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `andiw #-1793,%sr' ignored {standard input}:283: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:310: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored scripts/Makefile.build:280: recipe for target 'kernel/locking/percpu-rwsem.o' failed make[3]: *** [kernel/locking/percpu-rwsem.o] Error 1 ./include/linux/mm.h: In function 'mm_inc_nr_ptes': ./include/linux/mm.h:2104:25: error: 'PTRS_PER_PTE' undeclared (first use in this function); did you mean 'PTRS_PER_PUD'? 2104 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/mm.h: In function 'mm_dec_nr_ptes': ./include/linux/mm.h:2109:25: error: 'PTRS_PER_PTE' undeclared (first use in this function); did you mean 'PTRS_PER_PUD'? 2109 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD cc1: some warnings being treated as errors scripts/Makefile.build:280: recipe for target 'kernel/locking/semaphore.o' failed make[3]: *** [kernel/locking/semaphore.o] Error 1 scripts/Makefile.build:497: recipe for target 'kernel/locking' failed make[2]: *** [kernel/locking] Error 2 Makefile:1822: recipe for target 'kernel' failed make[1]: *** [kernel] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/linux-5.10.115-cip7' package/pkg-generic.mk:290: recipe for target '/home/buildroot/autobuild/instance-2/output-1/build/linux-5.10.115-cip7/.stamp_built' failed make: *** [/home/buildroot/autobuild/instance-2/output-1/build/linux-5.10.115-cip7/.stamp_built] Error 2 make: Leaving directory '/home/buildroot/autobuild/instance-2/buildroot'