arm64: Drop alloc function from create_mapping
authorLaura Abbott <labbott@fedoraproject.org>
Sat, 6 Feb 2016 00:24:46 +0000 (16:24 -0800)
committerAlex Shi <alex.shi@linaro.org>
Mon, 14 Nov 2016 06:42:10 +0000 (14:42 +0800)
commite1e5e10153f6e6ecbe3e132c87ac55fbd8e892bf
tree562e95443c81d4f4f1ddba7ecfcbaa9cbeee8e21
parenta916d13d03d627145048c944130cc595b4642282
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>
(cherry picked from commit 132233a759580f5ce9b1bfaac9073e47d03c460d)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/mm/mmu.c