From: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: Michal Marek <mmarek@suse.cz>,
linux-kbuild@vger.kernel.org, lkml <linux-kernel@vger.kernel.org>,
rtc-linux@googlegroups.com,
Alessandro Zummo <a.zummo@towertech.it>
Subject: Re: 3.10.0-rc7: rtc_cmos.o: No linking because of missing CONFIG_HPET [PATCH]
Date: Thu, 11 Jul 2013 01:53:14 +0000 [thread overview]
Message-ID: <20130711015314.GA6001@rhi.hi.is> (raw)
In-Reply-To: <20130702194947.GA4240@rhi.hi.is>
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
prev parent reply other threads:[~2013-07-11 2:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-29 20:42 3.10.0-rc7: rtc_cmos.o: No linking because of missing CONFIG_HPET Bjarni Ingi Gislason
2013-07-01 8:43 ` Michal Marek
2013-07-01 9:40 ` Clemens Ladisch
2013-07-02 19:49 ` Bjarni Ingi Gislason
2013-07-11 1:53 ` Bjarni Ingi Gislason [this message]
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=20130711015314.GA6001@rhi.hi.is \
--to=bjarniig@rhi.hi.is \
--cc=a.zummo@towertech.it \
--cc=clemens@ladisch.de \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
--cc=rtc-linux@googlegroups.com \
/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