Re: [2.5.67] gen_rtc compile error

=?ISO-8859-2?Q?Pawe=B3_Go=B3aszewski?= (blues@ds.pg.gda.pl)
Tue, 8 Apr 2003 21:28:56 +0200 (CEST)


On Tue, 8 Apr 2003, Michael Buesch 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"

Thanks for this patch.

-- 
pozdr.  Paweł Gołaszewski        
---------------------------------
worth to see: http://www.againsttcpa.com/
CPU not found - software emulation...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/