rtc: opal: Make opal_tpo_alarm_irq_enable static
authorYueHaibing <yuehaibing@huawei.com>
Tue, 19 Mar 2019 15:25:31 +0000 (23:25 +0800)
committerAlexandre 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

index 60f2250fd96bec2cec1dd33f652edaac474d2182..3dd9d266ce096cd484f9724bf30be250f5a5517e 100644 (file)
@@ -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 };