x86/time: Make setup_default_timer_irq() static
authorDou Liyang <douly.fnst@cn.fujitsu.com>
Tue, 13 Jun 2017 02:30:29 +0000 (10:30 +0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 13 Jun 2017 06:42:09 +0000 (08:42 +0200)
This function isn't used outside of time.c, so let's mark it static.

Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1497321029-29049-1-git-send-email-douly.fnst@cn.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/setup.h
arch/x86/kernel/time.c

index ac1d5da..e4585a3 100644 (file)
@@ -44,7 +44,6 @@ extern unsigned long saved_video_mode;
 
 extern void reserve_standard_io_resources(void);
 extern void i386_reserve_resources(void);
-extern void setup_default_timer_irq(void);
 
 #ifdef CONFIG_X86_INTEL_MID
 extern void x86_intel_mid_early_setup(void);
index d39c091..e0754cd 100644 (file)
@@ -66,7 +66,7 @@ static struct irqaction irq0  = {
        .name = "timer"
 };
 
-void __init setup_default_timer_irq(void)
+static void __init setup_default_timer_irq(void)
 {
        if (!nr_legacy_irqs())
                return;