]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64/mm: Drop INIT_MM_CONTEXT()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Mon, 2 Dec 2024 04:35:53 +0000 (10:05 +0530)
committerWill Deacon <will@kernel.org>
Tue, 10 Dec 2024 11:32:26 +0000 (11:32 +0000)
Platform override for INIT_MM_CONTEXT() is redundant because swapper_pg_dir
always gets assigned as the pgd during init_mm initialization. So just drop
this override on arm64.

Originally this override was added via the 'commit 2b5548b68199 ("arm64/mm:
Separate boot-time page tables from swapper_pg_dir")' because non standard
init_pg_dir was assigned as the pgd. Subsequently it was changed as default
swapper_pg_dir by the 'commit ba5b0333a847 ("arm64: mm: omit redundant
remap of kernel image")', which might have also just dropped this override.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Ryan Roberts <ryan.roberts@arm.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Link: https://lore.kernel.org/r/20241202043553.29592-1-anshuman.khandual@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/mmu.h

index 2ec96d91acc66ab94fec1ae3022f515c35be704f..662471cfc53698f12d5e838268af409d33cc71fa 100644 (file)
@@ -109,8 +109,5 @@ static inline bool kaslr_requires_kpti(void)
        return true;
 }
 
-#define INIT_MM_CONTEXT(name)  \
-       .pgd = swapper_pg_dir,
-
 #endif /* !__ASSEMBLY__ */
 #endif