]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: make create_mapping_late() non-allocating
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 22 Jul 2016 17:32:24 +0000 (19:32 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 25 Jul 2016 16:42:53 +0000 (17:42 +0100)
commit9f5bbbd1f114146f97cb157772d14df2d969ccfe
tree21434fcc1fb582270f60cf405b922b34e9895aaf
parent46610bfb99b75de585c71d6e401b248f4f2df45e
arm64: mm: make create_mapping_late() non-allocating

The only purpose served by create_mapping_late() is to remap the already
mapped .text and .rodata kernel segments with read-only permissions. Since
we no longer allow block mappings to be split or merged,
create_mapping_late() should not pass an allocation function pointer into
__create_pgd_mapping(). So pass NULL instead.

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