Skip to content

Commit a4765eb

Browse files
lucaceresoliKAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/20240717-irq-pic32-evic-fix-build-static-v1-1-5129085589c6@bootlin.com
1 parent 81a91ab commit a4765eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/irqchip/irq-pic32-evic.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ static int pic32_irq_domain_map(struct irq_domain *d, unsigned int virq,
161161
return ret;
162162
}
163163

164-
int pic32_irq_domain_xlate(struct irq_domain *d, struct device_node *ctrlr,
165-
const u32 *intspec, unsigned int intsize,
166-
irq_hw_number_t *out_hwirq, unsigned int *out_type)
164+
static int pic32_irq_domain_xlate(struct irq_domain *d, struct device_node *ctrlr,
165+
const u32 *intspec, unsigned int intsize,
166+
irq_hw_number_t *out_hwirq, unsigned int *out_type)
167167
{
168168
struct evic_chip_data *priv = d->host_data;
169169

0 commit comments

Comments
 (0)