mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -tip] timekeeping: Fix up read_persistent_clock() breakage on sh.
@ 2009-08-24 22:32 Paul Mundt
  2009-08-25  6:44 ` Ingo Molnar
  2009-08-25  7:13 ` [tip:timers/core] " tip-bot for Paul Mundt
  0 siblings, 2 replies; 5+ messages in thread
From: Paul Mundt @ 2009-08-24 22:32 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Martin Schwidefsky, linux-kernel

The recent commit "timekeeping: Increase granularity of
read_persistent_clock()" introduced read_persistent_clock() rework which
inadvertently broke the sh conversion:

	arch/sh/kernel/time.c:45: error: passing argument 1 of 'rtc_sh_get_time' from incompatible pointer type
	distcc[13470] ERROR: compile arch/sh/kernel/time.c on sprygo/32 failed
	make[2]: *** [arch/sh/kernel/time.o] Error 1

This trivial fix gets it working again.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>

---

 arch/sh/kernel/time.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c
index 3f4706a..0e0e858 100644
--- a/arch/sh/kernel/time.c
+++ b/arch/sh/kernel/time.c
@@ -41,7 +41,7 @@ int (*rtc_sh_set_time)(const time_t) = null_rtc_set_time;
 #ifdef CONFIG_GENERIC_CMOS_UPDATE
 void read_persistent_clock(struct timespec *ts)
 {
-	rtc_sh_get_time(&ts);
+	rtc_sh_get_time(ts);
 }
 
 int update_persistent_clock(struct timespec now)

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

end of thread, other threads:[~2009-08-25  7:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-24 22:32 [PATCH -tip] timekeeping: Fix up read_persistent_clock() breakage on sh Paul Mundt
2009-08-25  6:44 ` Ingo Molnar
2009-08-25  6:52   ` Paul Mundt
2009-08-25  7:07     ` Ingo Molnar
2009-08-25  7:13 ` [tip:timers/core] " tip-bot for Paul Mundt

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

all inboxes | Powered by JetHome®