From: Michael Buesch <freesoftwaredeveloper@web.de>
To: "Paweł Gołaszewski" <blues@ds.pg.gda.pl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [2.5.67] gen_rtc compile error
Date: Tue, 8 Apr 2003 21:20:39 +0200 [thread overview]
Message-ID: <200304082120.39576.freesoftwaredeveloper@web.de> (raw)
In-Reply-To: <Pine.LNX.4.51L.0304082033140.20726@piorun.ds.pg.gda.pl>
On Tuesday 08 April 2003 20:37, Paweł Gołaszewski wrote:
> When I try to build my kernel I get:
>
> [...]
>
> My kernel configuration:
> http://piorun.ds.pg.gda.pl/~blues/config-2.5.67.txt
Battery status seems to be not available on all architectures.
(I don't know the reason for this.)
With this patch, it should compile (against 2.5.67):
--- drivers/char/genrtc.c.orig 2003-04-08 21:15:52.000000000 +0200
+++ drivers/char/genrtc.c 2003-04-08 21:17:33.000000000 +0200
@@ -486,7 +486,9 @@
"update_IRQ\t: %s\n"
"periodic_IRQ\t: %s\n"
"periodic_freq\t: %ld\n"
+#ifdef RTC_BATT_BAD
"batt_status\t: %s\n",
+#endif
(flags & RTC_DST_EN) ? "yes" : "no",
(flags & RTC_DM_BINARY) ? "no" : "yes",
(flags & RTC_24H) ? "yes" : "no",
@@ -494,8 +496,11 @@
(flags & RTC_AIE) ? "yes" : "no",
irq_active ? "yes" : "no",
(flags & RTC_PIE) ? "yes" : "no",
- 0L /* freq */,
- (flags & RTC_BATT_BAD) ? "bad" : "okay");
+ 0L /* freq */
+#ifdef RTC_BATT_BAD
+ ,(flags & RTC_BATT_BAD) ? "bad" : "okay")
+#endif
+ ;
if (!get_rtc_pll(&pll))
p += sprintf(p,
"PLL adjustment\t: %d\n"
BUT: Is bat-state *really* not supported on all platforms?
Regards
Michael Buesch.
next prev parent reply other threads:[~2003-04-08 19:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 18:37 [2.5.67] gen_rtc compile error Paweł Gołaszewski
2003-04-08 19:20 ` Michael Buesch [this message]
2003-04-08 19:28 ` Paweł Gołaszewski
2003-04-08 19:30 ` Michael Buesch
2003-04-08 19:40 ` Andreas Schwab
2003-04-08 19:46 ` Michael Buesch
2003-04-08 19:48 ` Geert Uytterhoeven
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=200304082120.39576.freesoftwaredeveloper@web.de \
--to=freesoftwaredeveloper@web.de \
--cc=blues@ds.pg.gda.pl \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.