]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/of: Change x86_dtb_parse_smp_config() to static
authorSaurabh Sengar <ssengar@linux.microsoft.com>
Tue, 2 Apr 2024 14:40:30 +0000 (07:40 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Apr 2024 06:49:56 +0000 (08:49 +0200)
x86_dtb_parse_smp_config() is called locally only, change it to static.

Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/1712068830-4513-5-git-send-email-ssengar@linux.microsoft.com
arch/x86/include/asm/prom.h
arch/x86/kernel/devicetree.c

index 02644e0105141658034ac3b87ed81d4627d61e88..365798cb4408d9fcc8caa649d6f6cf8acf47fca3 100644 (file)
@@ -23,12 +23,10 @@ extern int of_ioapic;
 extern u64 initial_dtb;
 extern void add_dtb(u64 data);
 void x86_of_pci_init(void);
-void x86_dtb_parse_smp_config(void);
 void x86_flattree_get_config(void);
 #else
 static inline void add_dtb(u64 data) { }
 static inline void x86_of_pci_init(void) { }
-static inline void x86_dtb_parse_smp_config(void) { }
 static inline void x86_flattree_get_config(void) { }
 #define of_ioapic 0
 #endif
index b93ce8a39ff7bfa4a59a304d652edfd0a225f9a3..8e3c53b4d070e5d948119535a308b2b7a4026eb1 100644 (file)
@@ -279,6 +279,15 @@ static void __init dtb_apic_setup(void)
        dtb_ioapic_setup();
 }
 
+static void __init x86_dtb_parse_smp_config(void)
+{
+       if (!of_have_populated_dt())
+               return;
+
+       dtb_setup_hpet();
+       dtb_apic_setup();
+}
+
 void __init x86_flattree_get_config(void)
 {
 #ifdef CONFIG_OF_EARLY_FLATTREE
@@ -307,12 +316,3 @@ void __init x86_flattree_get_config(void)
        if (of_have_populated_dt())
                x86_init.mpparse.parse_smp_cfg = x86_dtb_parse_smp_config;
 }
-
-void __init x86_dtb_parse_smp_config(void)
-{
-       if (!of_have_populated_dt())
-               return;
-
-       dtb_setup_hpet();
-       dtb_apic_setup();
-}