diff options
author | Thomas Gleixner <[email protected]> | 2019-06-23 15:23:48 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2019-06-28 00:57:17 +0200 |
commit | 4ce78e2094fc2736f8ecd04ec85e5566acaed516 (patch) | |
tree | 23cbf0e152aebabb1bc94d3b75d68dc01333faa3 | |
parent | 433526cc0502ff13d9b2fd63ba546a202dac0463 (diff) |
x86/hpet: Sanitize stub functions
Mark them inline and remove the pointless 'return;' statement.
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Ricardo Neri <[email protected]>
Cc: Ashok Raj <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Suravee Suthikulpanit <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Ravi Shankar <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
-rw-r--r-- | arch/x86/kernel/hpet.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c index 638aaff39819..cb120e412dc6 100644 --- a/arch/x86/kernel/hpet.c +++ b/arch/x86/kernel/hpet.c @@ -692,16 +692,10 @@ static int hpet_cpuhp_dead(unsigned int cpu) } #else -static void hpet_msi_capability_lookup(unsigned int start_timer) -{ - return; -} +static inline void hpet_msi_capability_lookup(unsigned int start_timer) { } #ifdef CONFIG_HPET -static void hpet_reserve_msi_timers(struct hpet_data *hd) -{ - return; -} +static inline void hpet_reserve_msi_timers(struct hpet_data *hd) { } #endif #define hpet_cpuhp_online NULL @@ -820,7 +814,7 @@ static struct clocksource clocksource_hpet = { .resume = hpet_resume_counter, }; -static int hpet_clocksource_register(void) +static int __init hpet_clocksource_register(void) { u64 start, now; u64 t1; |