Skip to contentSkip to conversation

arm64: remove duplicated early fixmap init

PATCH New [email protected] 1 participant 1 message Feb 19, 2024 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: remove duplicated early fixmap init

From: Daero Lee <[email protected]>

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().

---
 arch/arm64/kernel/setup.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/kernel/setup.c +0 -1
index 42c690bb2d60..ce45f4a9ac4a 100644
@@ -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);
Signature · 1 line
2.25.1