arm64/mm: Change BUG_ON() to VM_BUG_ON() in [pmd|pud]_set_huge()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Mon, 27 May 2019 07:03:29 +0000 (12:33 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 4 Jun 2019 13:53:18 +0000 (14:53 +0100)
commit87dedf7c61ab07d7fe53bcf93103d2d845d804d8
treec43b8b2250c9b0ed0e58b632ee82d3c14a1b6051
parent2e6aee5af330e8b4ccfdfcdb3fedcb385d052d78
arm64/mm: Change BUG_ON() to VM_BUG_ON() in [pmd|pud]_set_huge()

There are no callers for the functions which will pass unaligned physical
addresses. Hence just change these BUG_ON() checks into VM_BUG_ON() which
gets compiled out unless CONFIG_VM_DEBUG is enabled.

Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c