From: Ard Biesheuvel Date: Mon, 20 Oct 2014 12:02:15 +0000 (+0200) Subject: arm64/mm: add explicit struct_mm argument to __create_mapping() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~117^2~33^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1e1fddae74b72d0415965821ad00fe39aac6f13;p=pandora-kernel.git arm64/mm: add explicit struct_mm argument to __create_mapping() Currently, swapper_pg_dir and idmap_pg_dir share the init_mm mm_struct instance. To allow the introduction of other pg_dir instances, for instance, for UEFI's mapping of Runtime Services, make the struct_mm instance an explicit argument that gets passed down to the pmd and pte instantiation functions. Note that the consumers (pmd_populate/pgd_populate) of the mm_struct argument don't actually inspect it, but let's fix it for correctness' sake. Acked-by: Steve Capper Tested-by: Leif Lindholm Signed-off-by: Ard Biesheuvel --- Reading git-diff-tree failed