]> Pileus Git - ~andy/linux/commitdiff
rtc: Staticize non-exported __rtc_set_alarm()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 1 Jun 2011 10:13:16 +0000 (11:13 +0100)
committerJohn Stultz <john.stultz@linaro.org>
Thu, 2 Jun 2011 02:29:40 +0000 (19:29 -0700)
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>
drivers/rtc/interface.c

index ef6316acec43a3312c00c6d8ca27b5ec8314f526..df68618f6dbb53f60f1f743f1425e2060e104854 100644 (file)
@@ -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;