projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf2b300
)
x86/idt: Mark init only functions __init
author
Thomas Gleixner
<tglx@linutronix.de>
Thu, 28 May 2020 14:53:16 +0000
(16:53 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:24 +0000
(15:15 +0200)
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: Thomas Gleixner <tglx@linutronix.de>
Link:
https://lkml.kernel.org/r/20200528145522.715816477@linutronix.de
arch/x86/kernel/idt.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/idt.c
b/arch/x86/kernel/idt.c
index 226c99229886591e724b2146ef3c830c9b8a6835..4b99f7bec38443ed226cdb71529534b6d9425bc6 100644
(file)
--- a/
arch/x86/kernel/idt.c
+++ b/
arch/x86/kernel/idt.c
@@
-197,7
+197,7
@@
static inline void idt_init_desc(gate_desc *gate, const struct idt_data *d)
#endif
}
-static void
+static
__init
void
idt_setup_from_table(gate_desc *idt, const struct idt_data *t, int size, bool sys)
{
gate_desc desc;
@@
-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;