Commit 433526cc authored by Thomas Gleixner's avatar Thomas Gleixner

x86/hpet: Mark init functions __init

They are only called from init code.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarIngo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Andi Kleen <andi.kleen@intel.com>
Cc: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Ravi Shankar <ravi.v.shankar@intel.com>
Link: https://lkml.kernel.org/r/20190623132434.645357869@linutronix.de
parent eb8ec32c
...@@ -176,7 +176,7 @@ do { \ ...@@ -176,7 +176,7 @@ do { \
static void hpet_reserve_msi_timers(struct hpet_data *hd); static void hpet_reserve_msi_timers(struct hpet_data *hd);
static void hpet_reserve_platform_timers(unsigned int id) static void __init hpet_reserve_platform_timers(unsigned int id)
{ {
struct hpet __iomem *hpet = hpet_virt_address; struct hpet __iomem *hpet = hpet_virt_address;
struct hpet_timer __iomem *timer = &hpet->hpet_timers[2]; struct hpet_timer __iomem *timer = &hpet->hpet_timers[2];
...@@ -572,7 +572,7 @@ static void init_one_hpet_msi_clockevent(struct hpet_dev *hdev, int cpu) ...@@ -572,7 +572,7 @@ static void init_one_hpet_msi_clockevent(struct hpet_dev *hdev, int cpu)
#define RESERVE_TIMERS 0 #define RESERVE_TIMERS 0
#endif #endif
static void hpet_msi_capability_lookup(unsigned int start_timer) static void __init hpet_msi_capability_lookup(unsigned int start_timer)
{ {
unsigned int id; unsigned int id;
unsigned int num_timers; unsigned int num_timers;
...@@ -631,7 +631,7 @@ static void hpet_msi_capability_lookup(unsigned int start_timer) ...@@ -631,7 +631,7 @@ static void hpet_msi_capability_lookup(unsigned int start_timer)
} }
#ifdef CONFIG_HPET #ifdef CONFIG_HPET
static void hpet_reserve_msi_timers(struct hpet_data *hd) static void __init hpet_reserve_msi_timers(struct hpet_data *hd)
{ {
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment