2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 18:53:52 +08:00
linux-next/arch
Tong Tiangen ed928a3402 arm64/mm: fix page table check compile error for CONFIG_PGTABLE_LEVELS=2
If CONFIG_PGTABLE_LEVELS=2 and CONFIG_ARCH_SUPPORTS_PAGE_TABLE_CHECK=y,
then we trigger a compile error:

  error: implicit declaration of function 'pte_user_accessible_page'

Move the definition of page table check helper out of branch
CONFIG_PGTABLE_LEVELS > 2

Link: https://lkml.kernel.org/r/20220517074548.2227779-3-tongtiangen@huawei.com
Fixes: daf214c14dbe ("arm64/mm: enable ARCH_SUPPORTS_PAGE_TABLE_CHECK")
Signed-off-by: Tong Tiangen <tongtiangen@huawei.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Guohanjun <guohanjun@huawei.com>
Cc: Xie XiuQi <xiexiuqi@huawei.com>
Cc: kernel test robot <lkp@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-05-19 14:08:48 -07:00
..
alpha alpha: fix alloc_zeroed_user_highpage_movable() 2022-05-13 07:20:14 -07:00
arc ARC: remove redundant READ_ONCE() in cmpxchg loop 2022-04-18 14:47:05 -07:00
arm Pin control fixes for v5.18: 2022-04-26 16:34:11 -07:00
arm64 arm64/mm: fix page table check compile error for CONFIG_PGTABLE_LEVELS=2 2022-05-19 14:08:48 -07:00
csky printk: stop including cache.h from printk.h 2022-05-13 07:20:07 -07:00
h8300 Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2022-04-01 19:57:03 -07:00
hexagon ptrace: Cleanups for v5.18 2022-03-28 17:29:53 -07:00
ia64 mm: change huge_ptep_clear_flush() to return the original pte 2022-05-13 16:48:55 -07:00
m68k Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2022-04-01 19:57:03 -07:00
microblaze Kbuild updates for v5.18 2022-03-31 11:59:03 -07:00
mips mm: change huge_ptep_clear_flush() to return the original pte 2022-05-13 16:48:55 -07:00
nios2 ptrace: Cleanups for v5.18 2022-03-28 17:29:53 -07:00
openrisc ptrace: Cleanups for v5.18 2022-03-28 17:29:53 -07:00
parisc mm: change huge_ptep_clear_flush() to return the original pte 2022-05-13 16:48:55 -07:00
powerpc mm: change huge_ptep_clear_flush() to return the original pte 2022-05-13 16:48:55 -07:00
riscv riscv/mm: fix two page table check related issues 2022-05-19 14:08:48 -07:00
s390 mm: change huge_ptep_clear_flush() to return the original pte 2022-05-13 16:48:55 -07:00
sh mm: change huge_ptep_clear_flush() to return the original pte 2022-05-13 16:48:55 -07:00
sparc mm: change huge_ptep_clear_flush() to return the original pte 2022-05-13 16:48:55 -07:00
um Kbuild fixes for v5.18 2022-04-02 12:33:31 -07:00
x86 mm: functions may simplify the use of return values 2022-05-13 07:20:18 -07:00
xtensa xtensa: fix a7 clobbering in coprocessor context load/store 2022-04-15 18:44:02 -07:00
.gitignore
Kconfig vmalloc: replace VM_NO_HUGE_VMAP with VM_ALLOW_HUGE_VMAP 2022-04-19 12:08:57 -07:00