aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDou Liyang <[email protected]>2017-06-13 10:30:29 +0800
committerIngo Molnar <[email protected]>2017-06-13 08:42:09 +0200
commitb1b4f2fe68393f80480545b5e67a50f7bda8e9a7 (patch)
tree00cca9c145712506186ba5a6cbd1d9b609f825a9
parent855615eee9b1989cac8ec5eaae4562db081a239b (diff)
x86/time: Make setup_default_timer_irq() static
This function isn't used outside of time.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]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--arch/x86/include/asm/setup.h1
-rw-r--r--arch/x86/kernel/time.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h
index ac1d5da14734..e4585a393965 100644
--- a/arch/x86/include/asm/setup.h
+++ b/arch/x86/include/asm/setup.h
@@ -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);
diff --git a/arch/x86/kernel/time.c b/arch/x86/kernel/time.c
index d39c09119db6..e0754cdbad37 100644
--- a/arch/x86/kernel/time.c
+++ b/arch/x86/kernel/time.c
@@ -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;