Commit e2a4aeda authored by YueHaibing's avatar YueHaibing Committed by Wim Van Sebroeck

watchdog: sb_wdog: Make sbwdog_set and sbwdog_pet static

Fix sparse warning:

drivers/watchdog/sb_wdog.c:70:6: warning: symbol 'sbwdog_set' was not declared. Should it be static?
drivers/watchdog/sb_wdog.c:84:6: warning: symbol 'sbwdog_pet' was not declared. Should it be static?
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarMukesh Ojha <mojha@codeaurora.org>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent 265d11cc
...@@ -67,7 +67,7 @@ static DEFINE_SPINLOCK(sbwd_lock); ...@@ -67,7 +67,7 @@ static DEFINE_SPINLOCK(sbwd_lock);
* *
* wdog is the iomem address of the cfg register * wdog is the iomem address of the cfg register
*/ */
void sbwdog_set(char __iomem *wdog, unsigned long t) static void sbwdog_set(char __iomem *wdog, unsigned long t)
{ {
spin_lock(&sbwd_lock); spin_lock(&sbwd_lock);
__raw_writeb(0, wdog); __raw_writeb(0, wdog);
...@@ -81,7 +81,7 @@ void sbwdog_set(char __iomem *wdog, unsigned long t) ...@@ -81,7 +81,7 @@ void sbwdog_set(char __iomem *wdog, unsigned long t)
* *
* wdog is the iomem address of the cfg register * wdog is the iomem address of the cfg register
*/ */
void sbwdog_pet(char __iomem *wdog) static void sbwdog_pet(char __iomem *wdog)
{ {
spin_lock(&sbwd_lock); spin_lock(&sbwd_lock);
__raw_writeb(__raw_readb(wdog) | 1, wdog); __raw_writeb(__raw_readb(wdog) | 1, wdog);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment