Skip to contentSkip to conversation

irqchip/gic-v3: fix missing "__init" for gic_smp_init()

PATCH Applied Ingo Rohloff 2 participants 2 messages Apr 22, 2020 – May 30, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/irqchip/irq-gic-v3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-gic-v3.c +1 -1
index d7006ef18a0d..98c886dab02d 100644
@@ -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,
Signature · 1 line
2.17.1
merge bot Applied
#1 lore raw

[tip: irq/core] irqchip/gic-v3: Fix missing "__init" for gic_smp_init()

The following commit has been merged into the irq/core branch of tip:

The following commit has been merged into the irq/core branch of tip:

Commit-ID:     8a94c1ab34d53476617f83610521cfb6674db8d4
Gitweb:        https://git.kernel.org/tip/8a94c1ab34d53476617f83610521cfb6674db8d4
Author:        Ingo Rohloff <[email protected]>
AuthorDate:    Wed, 22 Apr 2020 13:28:57 +02:00
Committer:     Marc Zyngier <[email protected]>
CommitterDate: Mon, 18 May 2020 10:28:30 +01:00

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.

---
 drivers/irqchip/irq-gic-v3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-gic-v3.c +1 -1
index d7006ef..98c886d 100644
@@ -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,