[tip: irq/urgent] irqchip/irq-pic32-evic: Add missing 'static' to internal function
From: tip-bot2 for Luca Ceresoli
Date: Mon Jul 29 2024 - 04:32:36 EST
The following commit has been merged into the irq/urgent branch of tip:
Commit-ID: a4765eb49cd94a7653c1a643b03d4facc5d87aa5
Gitweb: https://git.kernel.org/tip/a4765eb49cd94a7653c1a643b03d4facc5d87aa5
Author: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>
AuthorDate: Wed, 17 Jul 2024 14:25:20 +02:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CommitterDate: Mon, 29 Jul 2024 10:22:45 +02:00
irqchip/irq-pic32-evic: Add missing 'static' to internal function
Fix build error reported by gcc 12:
drivers/irqchip/irq-pic32-evic.c:164:5: error: no previous prototype for ‘pic32_irq_domain_xlate’ [-Werror=missing-prototypes]
164 | int pic32_irq_domain_xlate(struct irq_domain *d, struct device_node *ctrlr,
| ^~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Link: https://lore.kernel.org/r/20240717-irq-pic32-evic-fix-build-static-v1-1-5129085589c6@xxxxxxxxxxx
---
drivers/irqchip/irq-pic32-evic.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/irqchip/irq-pic32-evic.c b/drivers/irqchip/irq-pic32-evic.c
index 1d9bb28..2772403 100644
--- a/drivers/irqchip/irq-pic32-evic.c
+++ b/drivers/irqchip/irq-pic32-evic.c
@@ -161,9 +161,9 @@ static int pic32_irq_domain_map(struct irq_domain *d, unsigned int virq,
return ret;
}
-int pic32_irq_domain_xlate(struct irq_domain *d, struct device_node *ctrlr,
- const u32 *intspec, unsigned int intsize,
- irq_hw_number_t *out_hwirq, unsigned int *out_type)
+static int pic32_irq_domain_xlate(struct irq_domain *d, struct device_node *ctrlr,
+ const u32 *intspec, unsigned int intsize,
+ irq_hw_number_t *out_hwirq, unsigned int *out_type)
{
struct evic_chip_data *priv = d->host_data;