arm64: Fix section mismatch on alloc_init_p[mu]d()
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 29 Jan 2015 17:33:35 +0000 (17:33 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 29 Jan 2015 17:33:35 +0000 (17:33 +0000)
Commit 523d6e9fae93 (arm64:mm: free the useless initial page table)
introduced a BUG_ON checking for the allocation type but it was
referring the early_alloc() function in the __init section. This patch
changes the check to slab_is_available() and also relaxes the BUG to a
WARN_ON_ONCE.

Reported-by: Will Deacon <will.deacon@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c

Simple merge