Skip to contentSkip to conversation

irqchip/apple-aic: Fix annotation

PATCH In review Donghyeok Kim 4 participants 6 messages Nov 23, 2021 – Dec 7, 2021

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

PATCH 1/1 irqchip/apple-aic: Fix annotation

Annotate aic_init_smp() as __init

---
 drivers/irqchip/irq-apple-aic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-apple-aic.c +1 -1
index 3759dc36cc8f..2543ef65825b 100644
@@ -707,7 +707,7 @@ static const struct irq_domain_ops aic_ipi_domain_ops = {
 	.free = aic_ipi_free,
 };
 
-static int aic_init_smp(struct aic_irq_chip *irqc, struct device_node *node)
+static int __init aic_init_smp(struct aic_irq_chip *irqc, struct device_node *node)
 {
 	struct irq_domain *ipi_domain;
 	int base_ipi;
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw

Hi,

Quoted 13 lines · Donghyeok Kim

Annotate aic_init_smp() as __init

---
  drivers/irqchip/irq-apple-aic.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-apple-aic.c +0 -0
index 3759dc36cc8f..2543ef65825b 100644

drivers/irqchip/irq-apple-aic.c static const struct irq_domain_ops aic_ipi_domain_ops = { · line 713

Quoted 8 lines
drivers/irqchip/irq-apple-aic.c +1 -1
@@ -707,7 +707,7 @@ static const struct irq_domain_ops aic_ipi_domain_ops = {
  	.free = aic_ipi_free,
  };
 
-static int aic_init_smp(struct aic_irq_chip *irqc, struct device_node *node)
+static int __init aic_init_smp(struct aic_irq_chip *irqc, struct device_node *node)
  {
  	struct irq_domain *ipi_domain;
  	int base_ipi;

This looks fine, but can you use a more descriptive commit message? Something like:

==
irqchip/apple-aic: Mark aic_init_smp() as __init

This function is only called from the driver init code. ==

Thanks,

Signature · 7 lines
Hector Martin ([email protected])
Public Key: https://mrcn.st/pub

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#2 lore raw

PATCH v2 1/1 irqchip/apple-aic: Mark aic_init_smp() as __init

This function is only called from the driver init code.

---
 drivers/irqchip/irq-apple-aic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-apple-aic.c +1 -1
index 3759dc36cc8f..2543ef65825b 100644
@@ -707,7 +707,7 @@ static const struct irq_domain_ops aic_ipi_domain_ops = {
 	.free = aic_ipi_free,
 };
 
-static int aic_init_smp(struct aic_irq_chip *irqc, struct device_node *node)
+static int __init aic_init_smp(struct aic_irq_chip *irqc, struct device_node *node)
 {
 	struct irq_domain *ipi_domain;
 	int base_ipi;
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Acked-by on v2 1/1
#3 lore raw

Re: [PATCH v2] irqchip/apple-aic: Mark aic_init_smp() as __init

Quoted 13 lines · Donghyeok Kim

This function is only called from the driver init code.

---
  drivers/irqchip/irq-apple-aic.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-apple-aic.c +0 -0
index 3759dc36cc8f..2543ef65825b 100644

drivers/irqchip/irq-apple-aic.c static const struct irq_domain_ops aic_ipi_domain_ops = { · line 713

Quoted 8 lines
drivers/irqchip/irq-apple-aic.c +1 -1
@@ -707,7 +707,7 @@ static const struct irq_domain_ops aic_ipi_domain_ops = {
  	.free = aic_ipi_free,
  };
 
-static int aic_init_smp(struct aic_irq_chip *irqc, struct device_node *node)
+static int __init aic_init_smp(struct aic_irq_chip *irqc, struct device_node *node)
  {
  	struct irq_domain *ipi_domain;
  	int base_ipi;

Thanks! Marc, can you take this through the IRQ tree?

Signature · 7 lines
Hector Martin ([email protected])
Public Key: https://mrcn.st/pub

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#4 lore raw

Re: [PATCH v2] irqchip/apple-aic: Mark aic_init_smp() as __init

Quoted 26 lines · Hector Martin
Quoted 13 lines · Donghyeok Kim

This function is only called from the driver init code.

---
  drivers/irqchip/irq-apple-aic.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-apple-aic.c +0 -0
index 3759dc36cc8f..2543ef65825b 100644

drivers/irqchip/irq-apple-aic.c static const struct irq_domain_ops aic_ipi_domain_ops = { · line 713

Quoted 8 lines
drivers/irqchip/irq-apple-aic.c +1 -0
@@ -707,7 +707,7 @@ static const struct irq_domain_ops aic_ipi_domain_ops = {
  	.free = aic_ipi_free,
  };
  -static int aic_init_smp(struct aic_irq_chip *irqc, struct
 device_node *node)
+static int __init aic_init_smp(struct aic_irq_chip *irqc, struct device_node *node)
  {
  	struct irq_domain *ipi_domain;
  	int base_ipi;
Quoted 1 line

Thanks! Marc, can you take this through the IRQ tree?

Huh, thanks for spotting that patch. I'll queue that shortly.

	M.
Signature · 6 lines
Without deviation from the norm, progress is not possible.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#5 lore raw

[irqchip: irq/irqchip-fixes] irqchip/apple-aic: Mark aic_init_smp() as __init

In reply to Donghyeok Kim
The following commit has been merged into the irq/irqchip-fixes branch of irqchip:

The following commit has been merged into the irq/irqchip-fixes branch of irqchip:

Commit-ID:     3d9e575f2acef57528ed6950b5f8ba99f5e52f3f
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/3d9e575f2acef57528ed6950b5f8ba99f5e52f3f
Author:        Donghyeok Kim <[email protected]>
AuthorDate:    Sun, 05 Dec 2021 01:42:28 +09:00
Committer:     Marc Zyngier <[email protected]>
CommitterDate: Tue, 07 Dec 2021 09:33:11 

irqchip/apple-aic: Mark aic_init_smp() as __init

This function is only called from the driver init code.

---
 drivers/irqchip/irq-apple-aic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-apple-aic.c +1 -1
index 3759dc3..2543ef6 100644
@@ -707,7 +707,7 @@ static const struct irq_domain_ops aic_ipi_domain_ops = {
 	.free = aic_ipi_free,
 };
 
-static int aic_init_smp(struct aic_irq_chip *irqc, struct device_node *node)
+static int __init aic_init_smp(struct aic_irq_chip *irqc, struct device_node *node)
 {
 	struct irq_domain *ipi_domain;
 	int base_ipi;