[PATCH] arm64: remove duplicated early fixmap init

skseofh at gmail.com skseofh at gmail.com
Mon Feb 19 05:27:32 PST 2024


From: Daero Lee <skseofh at gmail.com>

We call early_fixmap_init() in two places.
- early_fdt_map()
- setup_arch()

Because early_fdt_map() is called before going to setup_arch(),
early_fixmap_init() can be deleted from setup_arch().

Signed-off-by: Daero Lee <skseofh at gmail.com>
---
 arch/arm64/kernel/setup.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index 42c690bb2d60..ce45f4a9ac4a 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -305,7 +305,6 @@ void __init __no_sanitize_address setup_arch(char **cmdline_p)
 	 */
 	arm64_use_ng_mappings = kaslr_requires_kpti();
 
-	early_fixmap_init();
 	early_ioremap_init();
 
 	setup_machine_fdt(__fdt_pointer);
-- 
2.25.1




More information about the linux-arm-kernel mailing list