arch/powerpc/platforms/powermac/time.c:88: warning: ‘to_rtc_time’ defined but 
not used

Somehow this warning has always bothered me. This patch fixes it by
making the relevant code depend on the users.

Signed-off-by: Johannes Berg <[EMAIL PROTECTED]>
---
 arch/powerpc/platforms/powermac/time.c |    2 ++
 1 file changed, 2 insertions(+)

--- linux-2.6-git.orig/arch/powerpc/platforms/powermac/time.c   2007-11-13 
19:07:32.243563123 +0100
+++ linux-2.6-git/arch/powerpc/platforms/powermac/time.c        2007-11-13 
19:08:27.154561404 +0100
@@ -84,12 +84,14 @@ long __init pmac_time_init(void)
        return delta;
 }
 
+#if defined(CONFIG_ADB_CUDA) || defined(CONFIG_ADB_PMU)
 static void to_rtc_time(unsigned long now, struct rtc_time *tm)
 {
        to_tm(now, tm);
        tm->tm_year -= 1900;
        tm->tm_mon -= 1;
 }
+#endif
 
 static unsigned long from_rtc_time(struct rtc_time *tm)
 {


_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to