arm64: Drop alloc function from create_mapping
authorLaura Abbott <labbott@fedoraproject.org>
Sat, 6 Feb 2016 00:24:46 +0000 (16:24 -0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 16 Feb 2016 15:12:34 +0000 (15:12 +0000)
commit132233a759580f5ce9b1bfaac9073e47d03c460d
treef016316a4b5a3941bdb5f2efcca1f2938f459103
parentafb83cc3f0e4f86ea0e1cc3db7a90f58f1abd4d5
arm64: Drop alloc function from create_mapping

create_mapping is only used in fixmap_remap_fdt. All the create_mapping
calls need to happen on existing translation table pages without
additional allocations. Rather than have an alloc function be called
and fail, just set it to NULL and catch its use. Also change
the name to create_mapping_noalloc to better capture what exactly is
going on.

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Laura Abbott <labbott@fedoraproject.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c