Commit 6daceb89 authored by Thomas Gleixner's avatar Thomas Gleixner

x86/ioapic: Mark mp_alloc_timer_irq() __init

Only invoked from check_timer() which is __init too. Cleanup the variable
declaration while at it.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Tested-by: default avatarQiuxu Zhuo <qiuxu.zhuo@intel.com>
Tested-by: default avatarBreno Leitao <leitao@debian.org>
Reviewed-by: default avatarBreno Leitao <leitao@debian.org>
Link: https://lore.kernel.org/all/20240802155440.339321108@linutronix.de
parent 830802a0
...@@ -2122,10 +2122,10 @@ static int __init disable_timer_pin_setup(char *arg) ...@@ -2122,10 +2122,10 @@ static int __init disable_timer_pin_setup(char *arg)
} }
early_param("disable_timer_pin_1", disable_timer_pin_setup); early_param("disable_timer_pin_1", disable_timer_pin_setup);
static int mp_alloc_timer_irq(int ioapic, int pin) static int __init mp_alloc_timer_irq(int ioapic, int pin)
{ {
int irq = -1;
struct irq_domain *domain = mp_ioapic_irqdomain(ioapic); struct irq_domain *domain = mp_ioapic_irqdomain(ioapic);
int irq = -1;
if (domain) { if (domain) {
struct irq_alloc_info info; struct irq_alloc_info info;
......
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