Commit bdf5bde8 authored by Thomas Gleixner's avatar Thomas Gleixner

x86/idt: Mark init only functions __init

Since 8175cfbbbfcb ("x86/idt: Remove update_intr_gate()") set_intr_gate()
and idt_setup_from_table() are only called from __init functions. Mark them
as well.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200528145522.715816477@linutronix.de

parent bf2b3008
...@@ -197,7 +197,7 @@ static inline void idt_init_desc(gate_desc *gate, const struct idt_data *d) ...@@ -197,7 +197,7 @@ static inline void idt_init_desc(gate_desc *gate, const struct idt_data *d)
#endif #endif
} }
static void static __init void
idt_setup_from_table(gate_desc *idt, const struct idt_data *t, int size, bool sys) idt_setup_from_table(gate_desc *idt, const struct idt_data *t, int size, bool sys)
{ {
gate_desc desc; gate_desc desc;
...@@ -210,7 +210,7 @@ idt_setup_from_table(gate_desc *idt, const struct idt_data *t, int size, bool sy ...@@ -210,7 +210,7 @@ idt_setup_from_table(gate_desc *idt, const struct idt_data *t, int size, bool sy
} }
} }
static void set_intr_gate(unsigned int n, const void *addr) static __init void set_intr_gate(unsigned int n, const void *addr)
{ {
struct idt_data data; struct idt_data data;
......
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