diff options
author | Luca Ceresoli <luca.ceresoli@bootlin.com> | 2024-07-17 15:25:20 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-07-29 11:22:45 +0300 |
commit | a4765eb49cd94a7653c1a643b03d4facc5d87aa5 (patch) | |
tree | 0fc7ace3e7e2723af3ff4cc07ff3c2a97bd44bd3 /drivers/irqchip | |
parent | 81a91abab1307d7725fa4620952c0767beae7753 (diff) | |
download | linux-a4765eb49cd94a7653c1a643b03d4facc5d87aa5.tar.xz |
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@bootlin.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240717-irq-pic32-evic-fix-build-static-v1-1-5129085589c6@bootlin.com
Diffstat (limited to 'drivers/irqchip')
-rw-r--r-- | drivers/irqchip/irq-pic32-evic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/irqchip/irq-pic32-evic.c b/drivers/irqchip/irq-pic32-evic.c index 1d9bb28d13e5..277240325cbc 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; |