]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a6433ef957a4888c761798560ae21ccc3d22b67
treec43b8b2250c9b0ed0e58b632ee82d3c14a1b6051
parentd3f0dfafd61391364da04a16c152255ca36dd9ca
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