From: Paul Mundt <lethal@linux-sh.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH -tip] timekeeping: Fix up read_persistent_clock() breakage on sh.
Date: Tue, 25 Aug 2009 15:52:12 +0900 [thread overview]
Message-ID: <20090825065212.GA31462@linux-sh.org> (raw)
In-Reply-To: <20090825064458.GC14286@elte.hu>
On Tue, Aug 25, 2009 at 08:44:58AM +0200, Ingo Molnar wrote:
>
> * Paul Mundt <lethal@linux-sh.org> wrote:
>
> > 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(-)
>
> applied, thanks Paul!
>
> I'm wondering, why did my cross-build of the SH defconfig in the
> timer tree not catch this? All i get (and got) are these warnings:
>
> /home/mingo/tip/arch/sh/kernel/cpu/clock-cpg.c: In function 'cpg_clk_init':
> /home/mingo/tip/arch/sh/kernel/cpu/clock-cpg.c:242: warning: 'arch_init_clk_ops' is deprecated (declared at /home/mingo/tip/arch/sh/include/asm/clock.h:58)
> /home/mingo/tip/arch/sh/kernel/cpu/clock-cpg.c: In function 'arch_clk_init':
> /home/mingo/tip/arch/sh/kernel/cpu/clock-cpg.c:256: warning: 'cpg_clk_init' is deprecated (declared at /home/mingo/tip/arch/sh/kernel/cpu/clock-cpg.c:237)
>
> and time.o built without errors or warnings:
>
> CC arch/sh/kernel/time.o
>
That would be because read_persistent_clock() is only used conditionally
on SH, the defconfig itself does not make use of it, while the dreamcast
and sh03 defconfigs do. SH has a lot of variation across its defconfigs,
so it's pretty difficult to catch everything, this is largely what we
rely on randconfigs and allmod/yes/noconfigs for, which are all part of
the regular daily builds, in addition to the 50 or so other configs.
The defconfig itself is aimed at covering the common cases. Config
options that people will generally have enabled, and are likely to run in
to issues with. Anything else we just have to fix up incrementally and
hope that daily builds/regression testing catches the rest.
ARM suffers from the same problem in that it's really impossible to get
decent coverage in a single config.
next prev parent reply other threads:[~2009-08-25 6:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2009-08-25 7:07 ` Ingo Molnar
2009-08-25 7:13 ` [tip:timers/core] " tip-bot for Paul Mundt
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=20090825065212.GA31462@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=schwidefsky@de.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.