[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1192662578.14504.11.camel@dyn9047017100.beaverton.ibm.com>
Date: Wed, 17 Oct 2007 16:09:38 -0700
From: Badari Pulavarty <pbadari@...ibm.com>
To: linuxppc-dev@...abs.org
Cc: lkml <linux-kernel@...r.kernel.org>
Subject: [PATCH] Move _rtc_time() routines under CONFIG_ADB_CUDA
Fix to clean up compile warnings (against 2.6.23-git12)
Thanks,
Badari
to_rtc_time() and from_rtc_time() seems to be used only if CONFIG_ADB_CUDA
defined. Moving them under that ifdef.
arch/powerpc/platforms/powermac/time.c:88: warning: `to_rtc_time' defined but not used
arch/powerpc/platforms/powermac/time.c:95: warning: `from_rtc_time' defined but not used
Signed-off-by: Badari Pulavarty <pbadari@...ibm.com>
---
arch/powerpc/platforms/powermac/time.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.23/arch/powerpc/platforms/powermac/time.c
===================================================================
--- linux-2.6.23.orig/arch/powerpc/platforms/powermac/time.c 2007-10-09 13:31:38.000000000 -0700
+++ linux-2.6.23/arch/powerpc/platforms/powermac/time.c 2007-10-17 15:59:56.000000000 -0700
@@ -84,6 +84,7 @@ long __init pmac_time_init(void)
return delta;
}
+#ifdef CONFIG_ADB_CUDA
static void to_rtc_time(unsigned long now, struct rtc_time *tm)
{
to_tm(now, tm);
@@ -97,7 +98,6 @@ static unsigned long from_rtc_time(struc
tm->tm_hour, tm->tm_min, tm->tm_sec);
}
-#ifdef CONFIG_ADB_CUDA
static unsigned long cuda_get_time(void)
{
struct adb_request req;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists