x86/apic: Make setup_local_APIC() static
authorDou Liyang <[email protected]>
Wed, 14 Feb 2018 06:25:54 +0000 (14:25 +0800)
committerIngo Molnar <[email protected]>
Fri, 16 Feb 2018 09:39:11 +0000 (10:39 +0100)
This function isn't used outside of apic.c, so let's mark it static.

Signed-off-by: Dou Liyang <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/include/asm/apic.h
arch/x86/kernel/apic/apic.c

index 6e1990d69865a32a076086ab36f200a00d16f34c..c6a32019ff541fc3543c81d13284308c83ef5905 100644 (file)
@@ -138,7 +138,6 @@ extern void lapic_shutdown(void);
 extern void sync_Arb_IDs(void);
 extern void init_bsp_APIC(void);
 extern void apic_intr_mode_init(void);
-extern void setup_local_APIC(void);
 extern void init_apic_mappings(void);
 void register_lapic_address(unsigned long address);
 extern void setup_boot_APIC_clock(void);
index 25ddf02598d20a89cb1da2243aba687e6eee7657..871018dd49a3140f25a125276abb99c0f9143e99 100644 (file)
@@ -1414,7 +1414,7 @@ static void lapic_setup_esr(void)
  * Used to setup local APIC while initializing BSP or bringing up APs.
  * Always called with preemption disabled.
  */
-void setup_local_APIC(void)
+static void setup_local_APIC(void)
 {
        int cpu = smp_processor_id();
        unsigned int value, queued;