Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1469938 > unrolled thread

[PATCH] irqchip: irq-gic: mark symbols static where possible

Started byBaoyou Xie <baoyou.xie@linaro.org>
First post2016-08-25 10:00 +0200
Last post2016-08-25 10:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] irqchip: irq-gic: mark symbols static where possible Baoyou Xie <baoyou.xie@linaro.org> - 2016-08-25 10:00 +0200

#1469938 — [PATCH] irqchip: irq-gic: mark symbols static where possible

FromBaoyou Xie <baoyou.xie@linaro.org>
Date2016-08-25 10:00 +0200
Subject[PATCH] irqchip: irq-gic: mark symbols static where possible
Message-ID<s9XJT-6yg-1@gated-at.bofh.it>
We get 1 warning when build kernel with W=1:
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 it 'static'.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
---
 drivers/irqchip/irq-gic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c
index c2cab57..6f8d322 100644
--- a/drivers/irqchip/irq-gic.c
+++ b/drivers/irqchip/irq-gic.c
@@ -914,7 +914,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) {
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web