[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130711015314.GA6001@rhi.hi.is>
Date: Thu, 11 Jul 2013 01:53:14 +0000
From: Bjarni Ingi Gislason <bjarniig@....hi.is>
To: Clemens Ladisch <clemens@...isch.de>
Cc: Michal Marek <mmarek@...e.cz>, linux-kbuild@...r.kernel.org,
lkml <linux-kernel@...r.kernel.org>, rtc-linux@...glegroups.com,
Alessandro Zummo <a.zummo@...ertech.it>
Subject: Re: 3.10.0-rc7: rtc_cmos.o: No linking because of missing
CONFIG_HPET [PATCH]
On Tue, Jul 02, 2013 at 07:49:47PM +0000, Bjarni Ingi Gislason wrote:
> On Mon, Jul 01, 2013 at 11:40:08AM +0200, Clemens Ladisch wrote:
> > > On 29.6.2013 22:42, Bjarni Ingi Gislason wrote:
> > >> The file "drivers/rtc/rtc_cmos.c" needs CONFIG_HPET to get linked.
> > >>
> > >> rtc-cmos.c:(.text+0x16f214): undefined reference to `hpet_rtc_interrupt'
> >
> > CONFIG_HPET enables drivers/char/hpet.c and nothing else; it does not
> > affect the HPET RTC emulation.
> >
> > You are probably searching for CONFIG_HPET_EMULATE_RTC.
> >
>
> Sorry. I selected (configured) "HPET_TIMER" to fix the compilation
> and linking (which automatically includes HPET_EMULATE_RTC).
>
This patch fixes the linking error and comments out one unused
fuction.
--- rtc-cmos.c-original 2013-06-22 19:47:31.000000000 +0000
+++ rtc-cmos.c 2013-07-10 20:42:32.000000000 +0000
@@ -121,11 +121,12 @@ static inline int hpet_set_periodic_freq
return 0;
}
-static inline int hpet_rtc_dropped_irq(void)
-{
- return 0;
-}
-
+/* Not used in this file, but mentioned in include-file <asm/hpet.h>
+ * static inline int hpet_rtc_dropped_irq(void)
+ * {
+ * return 0;
+ * }
+ */
static inline int hpet_rtc_timer_init(void)
{
return 0;
@@ -700,6 +701,11 @@ cmos_do_probe(struct device *dev, struct
if (is_valid_irq(rtc_irq)) {
irq_handler_t rtc_cmos_int_handler;
+/* if CONFIG_HPET_EMULATE_RTC is false, "is_hpet_enabled()" is defined to
+ * return zero (false).
+ */
+
+#ifdef CONFIG_HPET_EMULATE_RTC
if (is_hpet_enabled()) {
int err;
@@ -711,6 +717,7 @@ cmos_do_probe(struct device *dev, struct
goto cleanup1;
}
} else
+#endif /* CONFIG_HPET_EMULATE_RTC */
rtc_cmos_int_handler = cmos_interrupt;
retval = request_irq(rtc_irq, rtc_cmos_int_handler,
--
Bjarni I. Gislason
--
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