diff options
author | Gavin Shan <gshan@redhat.com> | 2020-11-03 11:30:09 +1100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-11-06 16:00:29 +0000 |
commit | faf000397e7f103df9953a312e1df21df1dc797f (patch) | |
tree | d8991bc5596f17d3737688e76b8ee671455c8124 /fs/block_dev.c | |
parent | 22f553842b14a1289c088a79a67fb479d3fa2a4e (diff) |
KVM: arm64: Fix build error in user_mem_abort()
The PUD and PMD are folded into PGD when the following options are
enabled. In that case, PUD_SHIFT is equal to PMD_SHIFT and we fail
to build with the indicated errors:
CONFIG_ARM64_VA_BITS_42=y
CONFIG_ARM64_PAGE_SHIFT=16
CONFIG_PGTABLE_LEVELS=3
arch/arm64/kvm/mmu.c: In function ‘user_mem_abort’:
arch/arm64/kvm/mmu.c:798:2: error: duplicate case value
case PMD_SHIFT:
^~~~
arch/arm64/kvm/mmu.c:791:2: note: previously used here
case PUD_SHIFT:
^~~~
This fixes the issue by skipping the check on PUD huge page when PUD
and PMD are folded into PGD.
Fixes: 2f40c46021bbb ("KVM: arm64: Use fallback mapping sizes for contiguous huge page sizes")
Reported-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Gavin Shan <gshan@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201103003009.32955-1-gshan@redhat.com
Diffstat (limited to 'fs/block_dev.c')
0 files changed, 0 insertions, 0 deletions