Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Arnd Bergmann and committed by
Marc Zyngier
90e921d7 9bdd26b6

+1 -1
+1 -1
drivers/irqchip/irq-mips-gic.c
··· 557 557 return gic_irq_domain_map(d, virq, hwirq); 558 558 } 559 559 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, 561 561 unsigned int nr_irqs) 562 562 { 563 563 }