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

irqchip/ftintc010: Mark all function static

Two functions were always global but never had any callers
outside of this file:

drivers/irqchip/irq-ftintc010.c:128:39: error: no previous prototype for 'ft010_irqchip_handle_irq'
drivers/irqchip/irq-ftintc010.c:165:12: error: no previous prototype for 'ft010_of_init_irq'

Fixes: b4d3053c8ce9 ("irqchip: Add a driver for Cortina Gemini")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230516200516.554663-1-arnd@kernel.org

authored by

Arnd Bergmann and committed by
Marc Zyngier
97bb0f8e 8091f56e

+2 -2
+2 -2
drivers/irqchip/irq-ftintc010.c
··· 125 125 /* Local static for the IRQ entry call */ 126 126 static struct ft010_irq_data firq; 127 127 128 - asmlinkage void __exception_irq_entry ft010_irqchip_handle_irq(struct pt_regs *regs) 128 + static asmlinkage void __exception_irq_entry ft010_irqchip_handle_irq(struct pt_regs *regs) 129 129 { 130 130 struct ft010_irq_data *f = &firq; 131 131 int irq; ··· 162 162 .xlate = irq_domain_xlate_onetwocell, 163 163 }; 164 164 165 - int __init ft010_of_init_irq(struct device_node *node, 165 + static int __init ft010_of_init_irq(struct device_node *node, 166 166 struct device_node *parent) 167 167 { 168 168 struct ft010_irq_data *f = &firq;