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

irqchipr/i8259: Mark i8259_of_init() static

i8259_of_init() is only used as an initcall and does not need to be global,
so mark it static to avoid:

drivers/irqchip/irq-i8259.c:343:12: warning: no previous prototype for 'i8259_of_init' [-Wmissing-prototypes]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230810123404.1222332-3-arnd@kernel.org

authored by

Arnd Bergmann and committed by
Marc Zyngier
424a4aec 90e921d7

+1 -1
+1 -1
drivers/irqchip/irq-i8259.c
··· 340 340 generic_handle_domain_irq(domain, hwirq); 341 341 } 342 342 343 - int __init i8259_of_init(struct device_node *node, struct device_node *parent) 343 + static int __init i8259_of_init(struct device_node *node, struct device_node *parent) 344 344 { 345 345 struct irq_domain *domain; 346 346 unsigned int parent_irq;