Skip to content

Commit 424a4ae

Browse files
arndbMarc Zyngier
authored andcommitted
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 <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 90e921d commit 424a4ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-i8259.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ static void i8259_irq_dispatch(struct irq_desc *desc)
340340
generic_handle_domain_irq(domain, hwirq);
341341
}
342342

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)
344344
{
345345
struct irq_domain *domain;
346346
unsigned int parent_irq;

0 commit comments

Comments
 (0)