Skip to contentSkip to conversation

watchdog: pnx4008: make global wdt_clk static

PATCH In review Vladimir Zapolskiy 2 participants 2 messages Oct 28, 2015 – Nov 2, 2015

Subsystems (2)
lore
Share & tools
lore

Vladimir Zapolskiy

author maintainer
#0 lore raw

PATCH 1/1 watchdog: pnx4008: make global wdt_clk static

Silences sparse warning:

drivers/watchdog/pnx4008_wdt.c:83:25:
warning: symbol 'wdt_clk' was not declared. Should it be static?

---
 drivers/watchdog/pnx4008_wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/pnx4008_wdt.c +1 -1
index 4224b3e..a8ade06 100644
@@ -80,7 +80,7 @@ static unsigned int heartbeat = DEFAULT_HEARTBEAT;
 
 static DEFINE_SPINLOCK(io_lock);
 static void __iomem	*wdt_base;
-struct clk		*wdt_clk;
+static struct clk	*wdt_clk;
 
 static int pnx4008_wdt_start(struct watchdog_device *wdd)
 {
Signature · 1 line
2.1.4
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Vladimir Zapolskiy

Silences sparse warning:

drivers/watchdog/pnx4008_wdt.c:83:25:
warning: symbol 'wdt_clk' was not declared. Should it be static?

Quoted 18 lines
---
  drivers/watchdog/pnx4008_wdt.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/pnx4008_wdt.c +1 -1
index 4224b3e..a8ade06 100644
@@ -80,7 +80,7 @@ static unsigned int heartbeat = DEFAULT_HEARTBEAT;
 
  static DEFINE_SPINLOCK(io_lock);
  static void __iomem	*wdt_base;
-struct clk		*wdt_clk;
+static struct clk	*wdt_clk;
 
  static int pnx4008_wdt_start(struct watchdog_device *wdd)
  {