public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -stable 2.6.32.7] clocksource: fix compilation if no GENERIC_TIME
@ 2010-01-30 15:56 Aaro Koskinen
  2010-01-30 15:58 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Aaro Koskinen @ 2010-01-30 15:56 UTC (permalink / raw)
  To: gregkh, tglx, stable, linux-kernel

Commit a9238ce3bb0fda6e760780b702c6cbd3793087d3 broke compilation on
platforms that do not implement GENERIC_TIME (e.g. iop32x):

  kernel/time/clocksource.c: In function 'clocksource_register':
  kernel/time/clocksource.c:556: error: implicit declaration of function 'clocksource_max_deferment'

Provide a dummy implementation of clocksource_max_deferment() for such
platforms.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
 kernel/time/clocksource.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 5155dc3..7b3a9d0 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -502,6 +502,11 @@ static void clocksource_select(void)
 
 #else /* CONFIG_GENERIC_TIME */
 
+static inline u64 clocksource_max_deferment(struct clocksource *cs)
+{
+	return 0;
+}
+
 static inline void clocksource_select(void) { }
 
 #endif
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -stable 2.6.32.7] clocksource: fix compilation if no GENERIC_TIME
  2010-01-30 15:56 [PATCH -stable 2.6.32.7] clocksource: fix compilation if no GENERIC_TIME Aaro Koskinen
@ 2010-01-30 15:58 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2010-01-30 15:58 UTC (permalink / raw)
  To: Aaro Koskinen; +Cc: tglx, stable, linux-kernel

On Sat, Jan 30, 2010 at 05:56:13PM +0200, Aaro Koskinen wrote:
> Commit a9238ce3bb0fda6e760780b702c6cbd3793087d3 broke compilation on
> platforms that do not implement GENERIC_TIME (e.g. iop32x):
> 
>   kernel/time/clocksource.c: In function 'clocksource_register':
>   kernel/time/clocksource.c:556: error: implicit declaration of function 'clocksource_max_deferment'
> 
> Provide a dummy implementation of clocksource_max_deferment() for such
> platforms.
> 
> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
> ---

If you want a patch to go into the -stable tree, then add the
	Cc: stable <stable@kernel.org>
line to the signed-off-by area, so that the tools will pick it up
automatically.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-30 16:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-30 15:56 [PATCH -stable 2.6.32.7] clocksource: fix compilation if no GENERIC_TIME Aaro Koskinen
2010-01-30 15:58 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox