aboutsummaryrefslogtreecommitdiff
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorGravatar Arnd Bergmann <arnd@arndb.de> 2023-08-10 14:33:55 +0200
committerGravatar Marc Zyngier <maz@kernel.org> 2023-08-21 17:40:20 +0100
commit90e921d768677172cbb4be1d7597d556ae018020 (patch)
tree9a0f55a9175523889a169b7d0061624959e99d80 /drivers/irqchip
parentirqchip/xtensa-pic: Include header for xtensa_pic_init_legacy() (diff)
downloadlinux-90e921d768677172cbb4be1d7597d556ae018020.tar.gz
linux-90e921d768677172cbb4be1d7597d556ae018020.tar.bz2
linux-90e921d768677172cbb4be1d7597d556ae018020.zip
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
Diffstat (limited to 'drivers/irqchip')
-rw-r--r--drivers/irqchip/irq-mips-gic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c
index 6d5ecc10a870..76253e864f23 100644
--- a/drivers/irqchip/irq-mips-gic.c
+++ b/drivers/irqchip/irq-mips-gic.c
@@ -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)
{
}