summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-08-10 14:33:56 +0200
committerMarc Zyngier <maz@kernel.org>2023-08-21 18:40:30 +0200
commit424a4aec7a2392d248e2f260ba571a01e24b8ec2 (patch)
treeaa41b5cd0b68124dd6c5289105730502514a8f0c /drivers/irqchip
parentirqchip/mips-gic: Mark gic_irq_domain_free() static (diff)
downloadlinux-424a4aec7a2392d248e2f260ba571a01e24b8ec2.tar.xz
linux-424a4aec7a2392d248e2f260ba571a01e24b8ec2.zip
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
Diffstat (limited to 'drivers/irqchip')
-rw-r--r--drivers/irqchip/irq-i8259.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-i8259.c b/drivers/irqchip/irq-i8259.c
index b70ce0d3c092..115bdcffab24 100644
--- a/drivers/irqchip/irq-i8259.c
+++ b/drivers/irqchip/irq-i8259.c
@@ -340,7 +340,7 @@ static void i8259_irq_dispatch(struct irq_desc *desc)
generic_handle_domain_irq(domain, hwirq);
}
-int __init i8259_of_init(struct device_node *node, struct device_node *parent)
+static int __init i8259_of_init(struct device_node *node, struct device_node *parent)
{
struct irq_domain *domain;
unsigned int parent_irq;