linux/arch
SeongJae Park 24be4d0b46 arch/arm64/mm/fault: Fix undeclared variable error in do_page_fault()
Commit ae870a68b5 ("arm64/mm: Convert to using
lock_mm_and_find_vma()") made do_page_fault() to use 'vma' even if
CONFIG_PER_VMA_LOCK is not defined, but the declaration is still in the
ifdef.

As a result, building kernel without the config fails with undeclared
variable error as below:

    arch/arm64/mm/fault.c: In function 'do_page_fault':
    arch/arm64/mm/fault.c:624:2: error: 'vma' undeclared (first use in this function); did you mean 'vmap'?
      624 |  vma = lock_mm_and_find_vma(mm, addr, regs);
          |  ^~~
          |  vmap

Fix it by moving the declaration out of the ifdef.

Fixes: ae870a68b5 ("arm64/mm: Convert to using lock_mm_and_find_vma()")
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2023-07-03 19:04:32 -07:00
..
alpha Merge branch 'expand-stack' 2023-06-28 20:35:21 -07:00
arc Kbuild updates for v6.5 2023-07-01 09:24:31 -07:00
arm This update includes the following changes: 2023-06-30 21:27:13 -07:00
arm64 arch/arm64/mm/fault: Fix undeclared variable error in do_page_fault() 2023-07-03 19:04:32 -07:00
csky arch/csky patches for 6.5 2023-07-01 21:12:32 -07:00
hexagon Merge branch 'expand-stack' 2023-06-28 20:35:21 -07:00
ia64 Kbuild updates for v6.5 2023-07-01 09:24:31 -07:00
loongarch Tracing updates for 6.5: 2023-06-30 10:33:17 -07:00
m68k slab updates for 6.5 2023-06-29 16:34:12 -07:00
microblaze slab updates for 6.5 2023-06-29 16:34:12 -07:00
mips TTY/Serial driver updates for 6.5-rc1. 2023-07-03 13:14:58 -07:00
nios2 slab updates for 6.5 2023-06-29 16:34:12 -07:00
openrisc Merge branch 'expand-stack' 2023-06-28 20:35:21 -07:00
parisc parisc: Refresh defconfigs 2023-06-30 17:19:49 +02:00
powerpc TTY/Serial driver updates for 6.5-rc1. 2023-07-03 13:14:58 -07:00
riscv ARM64: 2023-07-03 15:32:22 -07:00
s390 ARM64: 2023-07-03 15:32:22 -07:00
sh slab updates for 6.5 2023-06-29 16:34:12 -07:00
sparc sparc32: fix lock_mm_and_find_vma() conversion 2023-06-29 20:41:24 -07:00
um Kbuild updates for v6.5 2023-07-01 09:24:31 -07:00
x86 ARM64: 2023-07-03 15:32:22 -07:00
xtensa powerpc updates for 6.5 2023-06-30 09:20:08 -07:00
.gitignore
Kconfig - Arnd Bergmann has fixed a bunch of -Wmissing-prototypes in 2023-06-28 10:59:38 -07:00