Skip to content

Commit 90e921d

Browse files
arndbMarc Zyngier
authored andcommitted
irqchip/mips-gic: Mark gic_irq_domain_free() static
This function is only used locally and should be static to avoid a warning: drivers/irqchip/irq-mips-gic.c:560:6: error: no previous prototype for 'gic_irq_domain_free' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230810123404.1222332-2-arnd@kernel.org
1 parent 9bdd26b commit 90e921d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/irqchip/irq-mips-gic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ static int gic_irq_domain_alloc(struct irq_domain *d, unsigned int virq,
557557
return gic_irq_domain_map(d, virq, hwirq);
558558
}
559559

560-
void gic_irq_domain_free(struct irq_domain *d, unsigned int virq,
560+
static void gic_irq_domain_free(struct irq_domain *d, unsigned int virq,
561561
unsigned int nr_irqs)
562562
{
563563
}

0 commit comments

Comments
 (0)