This is a note to let you know that I've just added the patch titled

    RTC: add missing "return 0" in new alarm func for rtc-bfin.c

to the 2.6.38-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     rtc-add-missing-return-0-in-new-alarm-func-for-rtc-bfin.c.patch
and it can be found in the queue-2.6.38 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 8c122b96866580c99e44f3f07ac93a993d964ec3 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <[email protected]>
Date: Fri, 18 Mar 2011 04:26:24 -0400
Subject: RTC: add missing "return 0" in new alarm func for rtc-bfin.c

From: Mike Frysinger <[email protected]>

commit 8c122b96866580c99e44f3f07ac93a993d964ec3 upstream.

The new bfin_rtc_alarm_irq_enable function forgot to add a "return 0" to
the end leading to the build warning:
        drivers/rtc/rtc-bfin.c: In function 'bfin_rtc_alarm_irq_enable':
        drivers/rtc/rtc-bfin.c:253: warning: control reaches end of non-void 
function

CC: Thomas Gleixner <[email protected]>
CC: Alessandro Zummo <[email protected]>
Signed-off-by: Mike Frysinger <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/rtc/rtc-bfin.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/drivers/rtc/rtc-bfin.c
+++ b/drivers/rtc/rtc-bfin.c
@@ -276,6 +276,8 @@ static int bfin_rtc_alarm_irq_enable(str
                bfin_rtc_int_set_alarm(rtc);
        else
                bfin_rtc_int_clear(~(RTC_ISTAT_ALARM | RTC_ISTAT_ALARM_DAY));
+
+       return 0;
 }
 
 static int bfin_rtc_read_time(struct device *dev, struct rtc_time *tm)


Patches currently in stable-queue which might be from [email protected] are

queue-2.6.38/rtc-add-missing-return-0-in-new-alarm-func-for-rtc-bfin.c.patch

_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to