diff options
author | SeongJae Park <sj@kernel.org> | 2023-07-04 03:00:03 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-07-04 04:04:32 +0200 |
commit | 24be4d0b46bb0c3c1dc7bacd30957d6144a70dfc (patch) | |
tree | 4fab65f0cb485ef6dc9369fe2264a8805fdf13cc /fs/coredump.c | |
parent | Merge tag 'block-6.5-2023-07-03' of git://git.kernel.dk/linux (diff) | |
download | linux-24be4d0b46bb0c3c1dc7bacd30957d6144a70dfc.tar.xz linux-24be4d0b46bb0c3c1dc7bacd30957d6144a70dfc.zip |
arch/arm64/mm/fault: Fix undeclared variable error in do_page_fault()
Commit ae870a68b5d1 ("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: ae870a68b5d1 ("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>
Diffstat (limited to 'fs/coredump.c')
0 files changed, 0 insertions, 0 deletions