diff options
author | Ingo Rohloff <ingo.rohloff@lauterbach.com> | 2020-04-22 14:28:57 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-05-18 12:28:30 +0300 |
commit | 8a94c1ab34d53476617f83610521cfb6674db8d4 (patch) | |
tree | a55ef343b6ae8f093209ac75b7551b7e9a214b1c /drivers/irqchip/irq-gic-v3.c | |
parent | ae0bb9fda405c881848f7f6e94d912b35f6e31d2 (diff) | |
download | linux-8a94c1ab34d53476617f83610521cfb6674db8d4.tar.xz |
irqchip/gic-v3: Fix missing "__init" for gic_smp_init()
With an SMP configuration, gic_smp_init() calls set_smp_cross_call().
set_smp_cross_call() is marked with "__init".
So gic_smp_init() should also be marked with "__init".
gic_smp_init() is only called from gic_init_bases().
gic_init_bases() is also marked with "__init";
So marking gic_smp_init() with "__init" is fine.
Signed-off-by: Ingo Rohloff <ingo.rohloff@lauterbach.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200422112857.4300-1-ingo.rohloff@lauterbach.com
Diffstat (limited to 'drivers/irqchip/irq-gic-v3.c')
-rw-r--r-- | drivers/irqchip/irq-gic-v3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index d7006ef18a0d..98c886dab02d 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -1150,7 +1150,7 @@ static void gic_raise_softirq(const struct cpumask *mask, unsigned int irq) isb(); } -static void gic_smp_init(void) +static void __init gic_smp_init(void) { set_smp_cross_call(gic_raise_softirq); cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_GIC_STARTING, |