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 init/do_mounts.h:3, from init/do_mounts_rd.c:12: ./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/bvec.h:14, from ./include/linux/blk_types.h:10, from ./include/linux/genhd.h:19, from ./include/linux/blkdev.h:8, from init/do_mounts.h:3, from init/do_mounts_rd.c:12: ./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)) | ^~~~~~~~~ In file included from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:12, from ./include/linux/bpf.h:21, from ./include/linux/bpf-cgroup.h:5, from ./include/linux/cgroup-defs.h:22, from ./include/linux/cgroup.h:28, from ./include/linux/memcontrol.h:13, from ./include/linux/swap.h:9, from ./include/linux/suspend.h:5, from init/do_mounts.c:7: ./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: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: 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: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: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 ./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 init/do_mounts_rd.c:2: ./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/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/bpf.h:21, from ./include/linux/bpf-cgroup.h:5, from ./include/linux/cgroup-defs.h:22, from ./include/linux/cgroup.h:28, from ./include/linux/memcontrol.h:13, from ./include/linux/swap.h:9, from ./include/linux/suspend.h:5, from init/do_mounts.c:7: ./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/bvec.h:14, from ./include/linux/blk_types.h:10, from ./include/linux/genhd.h:19, from ./include/linux/blkdev.h:8, from init/do_mounts.h:3, from init/do_mounts_rd.c:12: ./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 init/do_mounts.h:3, from init/do_mounts_initrd.c:13: ./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 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 init/do_mounts.h:3, from init/do_mounts_rd.c:12: ./include/linux/mm.h: In function ‘maybe_mkwrite’: In file included from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:12, from ./include/linux/bpf.h:21, from ./include/linux/bpf-cgroup.h:5, from ./include/linux/cgroup-defs.h:22, from ./include/linux/cgroup.h:28, from ./include/linux/memcontrol.h:13, from ./include/linux/swap.h:9, from ./include/linux/suspend.h:5, from init/do_mounts.c:7: ./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 ‘pgd_page_vaddr’? [-Werror=implicit-function-declaration] 73 | return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); | ^~~~~~~~~~~~~~ | pgd_page_vaddr ./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_PUD’? 52 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./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)); | ^~~~~~~~~ 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 init/do_mounts.h:3, from init/do_mounts_initrd.c:13: ./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/bvec.h:14, from ./include/linux/blk_types.h:10, from ./include/linux/genhd.h:19, from ./include/linux/blkdev.h:8, from init/do_mounts.h:3, from init/do_mounts_rd.c:12: ./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/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)); | ^~~~~~~~~ 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 init/do_mounts.h:3, from init/do_mounts_initrd.c:13: ./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 ‘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: 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_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: 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_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/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: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/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: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_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: 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: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_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 ‘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 ‘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/module.h:12, from init/do_mounts.c:2: ./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 ‘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 In file included from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:12, from ./include/linux/bpf.h:21, from ./include/linux/bpf-cgroup.h:5, from ./include/linux/cgroup-defs.h:22, from ./include/linux/cgroup.h:28, from ./include/linux/memcontrol.h:13, from ./include/linux/swap.h:9, from ./include/linux/suspend.h:5, from init/do_mounts.c:7: ./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/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 init/do_mounts_initrd.c:3: ./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/bvec.h:14, from ./include/linux/blk_types.h:10, from ./include/linux/genhd.h:19, from ./include/linux/blkdev.h:8, from init/do_mounts.h:3, from init/do_mounts_initrd.c:13: ./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/kallsyms.h:12, from ./include/linux/bpf.h:21, from ./include/linux/bpf-cgroup.h:5, from ./include/linux/cgroup-defs.h:22, from ./include/linux/cgroup.h:28, from ./include/linux/memcontrol.h:13, from ./include/linux/swap.h:9, from ./include/linux/suspend.h:5, from init/do_mounts.c:7: ./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 init/do_mounts.h:3, from init/do_mounts_initrd.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:971:23: error: incompatible types when assigning to type ‘pte_t’ from type ‘int’ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/bpf.h:21, from ./include/linux/bpf-cgroup.h:5, from ./include/linux/cgroup-defs.h:22, from ./include/linux/cgroup.h:28, from ./include/linux/memcontrol.h:13, from ./include/linux/swap.h:9, from ./include/linux/suspend.h:5, from init/do_mounts.c:7: ./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 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 init/do_mounts.h:3, from init/do_mounts_initrd.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_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_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 ./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 ./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 'init/do_mounts_rd.o' failed make[2]: *** [init/do_mounts_rd.o] Error 1 cc1: some warnings being treated as errors scripts/Makefile.build:280: recipe for target 'init/do_mounts_initrd.o' failed make[2]: *** [init/do_mounts_initrd.o] Error 1 cc1: some warnings being treated as errors scripts/Makefile.build:280: recipe for target 'init/do_mounts.o' failed make[2]: *** [init/do_mounts.o] Error 1 Makefile:1822: recipe for target 'init' failed make[1]: *** [init] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/linux-5.10.109-cip5-rt4' package/pkg-generic.mk:290: recipe for target '/home/buildroot/autobuild/instance-0/output-1/build/linux-5.10.109-cip5-rt4/.stamp_built' failed make: *** [/home/buildroot/autobuild/instance-0/output-1/build/linux-5.10.109-cip5-rt4/.stamp_built] Error 2 make: Leaving directory '/home/buildroot/autobuild/instance-0/buildroot'