summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/interface.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-06-01 12:13:16 +0200
committerJohn Stultz <john.stultz@linaro.org>2011-06-02 04:29:40 +0200
commitd576fe49ca5c238e99d2d010a410480cb2aa29a0 (patch)
tree70d840793c3fe109e26ca74e7b4741f92ae6ca1e /drivers/rtc/interface.c
parentrtc: Fix ioctl error path return (diff)
downloadlinux-d576fe49ca5c238e99d2d010a410480cb2aa29a0.tar.xz
linux-d576fe49ca5c238e99d2d010a410480cb2aa29a0.zip
rtc: Staticize non-exported __rtc_set_alarm()
It's not referenced outside this file so there's no need for it to be in the global namespace and sparse warns about that. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'drivers/rtc/interface.c')
-rw-r--r--drivers/rtc/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c
index ef6316acec43..df68618f6dbb 100644
--- a/drivers/rtc/interface.c
+++ b/drivers/rtc/interface.c
@@ -318,7 +318,7 @@ int rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)
}
EXPORT_SYMBOL_GPL(rtc_read_alarm);
-int __rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)
+static int __rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)
{
struct rtc_time tm;
long now, scheduled;