From: Johannes Berg <johannes@sipsolutions.net>
To: Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev list <linuxppc-dev@ozlabs.org>
Subject: [PATCH] powermac: fix warning in time.c
Date: Tue, 13 Nov 2007 19:17:20 +0100 [thread overview]
Message-ID: <1194977840.4299.2.camel@johannes.berg> (raw)
arch/powerpc/platforms/powermac/time.c:88: warning: =E2=80=98to_rtc_time=E2=
=80=99 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 <johannes@sipsolutions.net>
---
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:2=
7.154561404 +0100
@@ -84,12 +84,14 @@ long __init pmac_time_init(void)
return delta;
}
=20
+#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 -=3D 1900;
tm->tm_mon -=3D 1;
}
+#endif
=20
static unsigned long from_rtc_time(struct rtc_time *tm)
{
reply other threads:[~2007-11-14 12:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1194977840.4299.2.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox