[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190319152531.10380-1-yuehaibing@huawei.com>
Date: Tue, 19 Mar 2019 23:25:31 +0800
From: Yue Haibing <yuehaibing@...wei.com>
To: <benh@...nel.crashing.org>, <paulus@...ba.org>,
<mpe@...erman.id.au>, <a.zummo@...ertech.it>,
<alexandre.belloni@...tlin.com>
CC: <linux-kernel@...r.kernel.org>, <linux-rtc@...r.kernel.org>,
<linuxppc-dev@...ts.ozlabs.org>, YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH -next] rtc: opal: Make opal_tpo_alarm_irq_enable static
From: YueHaibing <yuehaibing@...wei.com>
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@...wei.com>
---
drivers/rtc/rtc-opal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-opal.c b/drivers/rtc/rtc-opal.c
index 60f2250..3dd9d26 100644
--- a/drivers/rtc/rtc-opal.c
+++ b/drivers/rtc/rtc-opal.c
@@ -224,7 +224,7 @@ static int opal_set_tpo_time(struct device *dev, struct rtc_wkalrm *alarm)
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 };
--
2.7.4
Powered by blists - more mailing lists