irqchip/mips-gic: Mark gic_irq_domain_free() static
authorArnd Bergmann <arnd@arndb.de>
Thu, 10 Aug 2023 12:33:55 +0000 (14:33 +0200)
committerMarc Zyngier <maz@kernel.org>
Mon, 21 Aug 2023 16:40:20 +0000 (17:40 +0100)
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
drivers/irqchip/irq-mips-gic.c

index 6d5ecc1..76253e8 100644 (file)
@@ -557,7 +557,7 @@ static int gic_irq_domain_alloc(struct irq_domain *d, unsigned int virq,
        return gic_irq_domain_map(d, virq, hwirq);
 }
 
-void gic_irq_domain_free(struct irq_domain *d, unsigned int virq,
+static void gic_irq_domain_free(struct irq_domain *d, unsigned int virq,
                         unsigned int nr_irqs)
 {
 }