summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorBaoyou Xie <baoyou.xie@linaro.org>2016-09-07 13:26:45 +0200
committerMarc Zyngier <marc.zyngier@arm.com>2016-09-12 20:46:28 +0200
commit89c59cca48f04ede7e63944418af1794a8e31da6 (patch)
treeb17514c8c048703e2eb125039917bbe3fb4310b5 /drivers/irqchip
parentirqchip/gic-pm: Update driver to use of_pm_clk_add_clk (diff)
downloadlinux-89c59cca48f04ede7e63944418af1794a8e31da6.tar.xz
linux-89c59cca48f04ede7e63944418af1794a8e31da6.zip
irqchip/gic: Mark gic_init_physaddr() static
We get 1 warning when building kernel with W=1: drivers/irqchip/irq-gic.c:917:13: warning: no previous prototype for 'gic_init_physaddr' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this patch marks this function with 'static'. Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r--drivers/irqchip/irq-gic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c
index d108fe6a32d9..58e5b4e87056 100644
--- a/drivers/irqchip/irq-gic.c
+++ b/drivers/irqchip/irq-gic.c
@@ -939,7 +939,7 @@ unsigned long gic_get_sgir_physaddr(void)
return gic_dist_physaddr + GIC_DIST_SOFTINT;
}
-void __init gic_init_physaddr(struct device_node *node)
+static void __init gic_init_physaddr(struct device_node *node)
{
struct resource res;
if (of_address_to_resource(node, 0, &res) == 0) {