Re: [PATCH V2] arm64/mm: Change BUG_ON() to VM_BUG_ON() in [pmd|pud]_set_huge()

2019-06-04 Thread Catalin Marinas
On Mon, May 27, 2019 at 12:33:29PM +0530, Anshuman Khandual wrote: > 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: Anshu

[PATCH V2] arm64/mm: Change BUG_ON() to VM_BUG_ON() in [pmd|pud]_set_huge()

2019-05-27 Thread Anshuman Khandual
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 Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Ard