| 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/mm.h: In function ‘mm_inc_nr_pmds’: ./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’ ./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/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/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/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/mm.h: In function ‘mm_inc_nr_ptes’: ./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/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/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 ./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 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) | ^ ./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 ./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 ./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_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 ‘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’ ./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 ./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 {standard input}: Assembler messages: {standard input}:49: Error: operands mismatch -- statement `andl #-8,(%a0)' ignored ./include/linux/mm.h: In function ‘mm_dec_nr_ptes’: {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}:244: 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}:266: 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 ./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 {standard input}:321: 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}:413: Error: operands mismatch -- statement `orl #1,(%a3)' ignored {standard input}:517: Error: operands mismatch -- statement `orl #1,(%a3)' ignored {standard input}:580: Error: operands mismatch -- statement `orl #2,(%a3)' ignored {standard input}:660: 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}:708: 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}:772: Error: operands mismatch -- statement `orl #1,(%a3)' ignored {standard input}:807: Error: operands mismatch -- statement `orl #2,(%a3)' ignored {standard input}:841: 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}:871: 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}:901: 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}:930: 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 make[3]: *** [scripts/Makefile.build:280: kernel/locking/mutex.o] Error 1 make[3]: *** Waiting for unfinished jobs.... CC kernel/power/qos.o cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:280: kernel/locking/semaphore.o] Error 1 make[2]: *** [scripts/Makefile.build:497: kernel/locking] Error 2 make[2]: *** Waiting for unfinished jobs.... CC kernel/power/poweroff.o In file included from ./include/linux/mmu_context.h:5, from kernel/sched/sched.h:54: ./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)); | ^~~~~~~~~~~~~ In file included from ./include/linux/mmu_context.h:5, from kernel/sched/sched.h:54: ./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)); | ^~~~~~~~~~~~~ In file included from ./arch/m68k/include/asm/tlb.h:5, from kernel/sched/sched.h:69: ./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 ./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; | ^~~~~~~~~ CC kernel/sched/clock.o In file included from ./arch/m68k/include/asm/tlb.h:5, from kernel/sched/sched.h:69: ./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 ./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 make[3]: *** [scripts/Makefile.build:280: kernel/sched/loadavg.o] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from ./include/linux/mm.h:33, from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/events/power.h:12, from kernel/power/qos.c:40: ./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_P4D’? 45 | return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/pgtable.h:45:43: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors ./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 ‘P4D_SHIFT’? 52 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~ | P4D_SHIFT make[3]: *** [scripts/Makefile.build:280: kernel/sched/core.o] Error 1 ./include/linux/pgtable.h:52:42: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 52 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D 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: ./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 ‘P4D_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); | ^~~~~~~~~ ./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 ‘P4D_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_P4D’? 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 ./include/linux/kernel.h:11, from ./include/linux/plist.h:76, from ./include/linux/pm_qos.h:15, from kernel/power/qos.c:23: ./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) | ^ ./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 In file included 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/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_P4D’? 45 | return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./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/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’ ./include/linux/pgtable.h:52:42: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 52 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D 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: ./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); | ^~~~~~~~~ ./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/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/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/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/pgtable.h:67:48: error: ‘PTRS_PER_PGD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 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/mm.h: In function ‘mm_inc_nr_ptes’: ./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/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/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/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/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 ./include/linux/kernel.h:11, from ./include/linux/list.h:9, from ./include/linux/rculist.h:10, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from kernel/sched/sched.h:5: ./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) | ^ ./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 cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:280: kernel/power/qos.o] Error 1 make[2]: *** [scripts/Makefile.build:497: kernel/power] Error 2 ./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’ ./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_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 In file included from ./include/linux/mmu_context.h:5, from kernel/sched/sched.h:54: ./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)); | ^~~~~~~~~~~~~ In file included from ./arch/m68k/include/asm/tlb.h:5, from kernel/sched/sched.h:69: ./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 ./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 make[3]: *** [scripts/Makefile.build:280: kernel/sched/clock.o] Error 1 make[2]: *** [scripts/Makefile.build:497: kernel/sched] Error 2 make[1]: *** [Makefile:1822: kernel] Error 2 make[1]: Leaving directory '/home/thomas/autobuild/instance-1/output-1/build/linux-5.10.115-cip7' make: *** [package/pkg-generic.mk:293: /home/thomas/autobuild/instance-1/output-1/build/linux-5.10.115-cip7/.stamp_built] Error 2 make: Leaving directory '/home/thomas/autobuild/instance-1/buildroot'