* [PATCH] Fix CONFIG_CLOCKSOURCE_WATCHDOG=n compile
@ 2012-04-11 20:01 Prarit Bhargava
2012-04-18 11:44 ` Thomas Gleixner
0 siblings, 1 reply; 3+ messages in thread
From: Prarit Bhargava @ 2012-04-11 20:01 UTC (permalink / raw)
To: linux-kernel; +Cc: Prarit Bhargava, John Stultz, Thomas Gleixner
Noticed this while debugging -- compile fails with
arch/x86/built-in.o: In function `mark_tsc_unstable':
/home/linux-2.6/arch/x86/kernel/tsc.c:791: undefined reference to
`clocksource_mark_unstable'
make: *** [.tmp_vmlinux1] Error 1
Add in an empty function for the !CONFIG_CLOCKSOURCE_WATCHDOG case.
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Cc: John Stultz <johnstul@us.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
---
include/linux/clocksource.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index fbe89e1..dac8f91 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -285,7 +285,13 @@ extern void clocksource_change_rating(struct clocksource *cs, int rating);
extern void clocksource_suspend(void);
extern void clocksource_resume(void);
extern struct clocksource * __init __weak clocksource_default_clock(void);
+#ifdef CONFIG_CLOCKSOURCE_WATCHDOG
extern void clocksource_mark_unstable(struct clocksource *cs);
+#else
+static inline void clocksource_mark_unstable(struct clocksource *cs)
+{
+}
+#endif
extern void
clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u32 to, u32 minsec);
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix CONFIG_CLOCKSOURCE_WATCHDOG=n compile
2012-04-11 20:01 [PATCH] Fix CONFIG_CLOCKSOURCE_WATCHDOG=n compile Prarit Bhargava
@ 2012-04-18 11:44 ` Thomas Gleixner
2012-04-18 12:13 ` Prarit Bhargava
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Gleixner @ 2012-04-18 11:44 UTC (permalink / raw)
To: Prarit Bhargava; +Cc: linux-kernel, John Stultz
On Wed, 11 Apr 2012, Prarit Bhargava wrote:
> Noticed this while debugging -- compile fails with
>
> arch/x86/built-in.o: In function `mark_tsc_unstable':
> /home/linux-2.6/arch/x86/kernel/tsc.c:791: undefined reference to
> `clocksource_mark_unstable'
> make: *** [.tmp_vmlinux1] Error 1
>
> Add in an empty function for the !CONFIG_CLOCKSOURCE_WATCHDOG case.
CONFIG_CLOCKSOURCE_WATCHDOG for x86 is always 'y', so what's the point?
Thanks,
tglx
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix CONFIG_CLOCKSOURCE_WATCHDOG=n compile
2012-04-18 11:44 ` Thomas Gleixner
@ 2012-04-18 12:13 ` Prarit Bhargava
0 siblings, 0 replies; 3+ messages in thread
From: Prarit Bhargava @ 2012-04-18 12:13 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: linux-kernel, John Stultz
On 04/18/2012 07:44 AM, Thomas Gleixner wrote:
> On Wed, 11 Apr 2012, Prarit Bhargava wrote:
>
>> Noticed this while debugging -- compile fails with
>>
>> arch/x86/built-in.o: In function `mark_tsc_unstable':
>> /home/linux-2.6/arch/x86/kernel/tsc.c:791: undefined reference to
>> `clocksource_mark_unstable'
>> make: *** [.tmp_vmlinux1] Error 1
>>
>> Add in an empty function for the !CONFIG_CLOCKSOURCE_WATCHDOG case.
>
> CONFIG_CLOCKSOURCE_WATCHDOG for x86 is always 'y', so what's the point?
Ah, I was playing around with the .config directly while debugging and I didn't
notice that. Sorry for the noise ...
P.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-18 12:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-11 20:01 [PATCH] Fix CONFIG_CLOCKSOURCE_WATCHDOG=n compile Prarit Bhargava
2012-04-18 11:44 ` Thomas Gleixner
2012-04-18 12:13 ` Prarit Bhargava
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox