projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3062d1
)
rtc: opal: Make opal_tpo_alarm_irq_enable static
author
YueHaibing
<yuehaibing@huawei.com>
Tue, 19 Mar 2019 15:25:31 +0000
(23:25 +0800)
committer
Alexandre Belloni
<alexandre.belloni@bootlin.com>
Thu, 4 Apr 2019 08:07:10 +0000
(10:07 +0200)
Fix sparse warning:
drivers/rtc/rtc-opal.c:227:5:
warning: symbol 'opal_tpo_alarm_irq_enable' was not declared. Should it be static?
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-opal.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-opal.c
b/drivers/rtc/rtc-opal.c
index 60f2250fd96bec2cec1dd33f652edaac474d2182..3dd9d266ce096cd484f9724bf30be250f5a5517e 100644
(file)
--- a/
drivers/rtc/rtc-opal.c
+++ b/
drivers/rtc/rtc-opal.c
@@
-224,7
+224,7
@@
exit:
return rc;
}
-int opal_tpo_alarm_irq_enable(struct device *dev, unsigned int enabled)
+
static
int opal_tpo_alarm_irq_enable(struct device *dev, unsigned int enabled)
{
struct rtc_wkalrm alarm = { .enabled = 0 };