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>
Wed, 11 May 2016 14:19:20 +0000 (22:19 +0800)
commit65e670213029f7df5dd20407eecbe691aa078930
tree8b742501cd6fe038b8a252d94b9e57b4247c27b9
parenta97b93b11bd9f76b0cba55b8ff04a7489b087caf
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