From: Nicholas Mc Guire <der.herr@hofr.at>
To: Stephen Boyd <sboyd@codeaurora.org>
Cc: tglx@linutronix.de, john.stultz@linaro.org,
linux-kernel@vger.kernel.org, ahh@google.com, joe@perches.com,
pjt@google.com, yamada.m@jp.panasonic.com, mmarek@suse.cz,
sam@ravnborg.org, mingo@kernel.org, hpa@zytor.com,
hofrat@osadl.org, linux-tip-commits@vger.kernel.org
Subject: Re: [tip:timers/core] time: Move timeconst.h into include/generated
Date: Tue, 30 Jun 2015 08:52:45 +0200 [thread overview]
Message-ID: <20150630065245.GB5162@opentech.at> (raw)
In-Reply-To: <5591CEB2.1080001@codeaurora.org>
On Mon, 29 Jun 2015, Stephen Boyd wrote:
> On 05/19/2015 06:36 AM, tip-bot for Nicholas Mc Guire wrote:
> > Commit-ID: 0a227985d4a993a322ff72ecbaeee2611d624216
> > Gitweb: http://git.kernel.org/tip/0a227985d4a993a322ff72ecbaeee2611d624216
> > Author: Nicholas Mc Guire <hofrat@osadl.org>
> > AuthorDate: Mon, 18 May 2015 14:19:12 +0200
> > Committer: Thomas Gleixner <tglx@linutronix.de>
> > CommitDate: Tue, 19 May 2015 15:13:45 +0200
> >
> > time: Move timeconst.h into include/generated
> >
> > kernel/time/timeconst.h is moved to include/generated/ and generated
> > by the top level Kbuild. This allows using timeconst.h in an earlier
> > build stage.
> >
> > Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
> > Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
> > Cc: Sam Ravnborg <sam@ravnborg.org>
> > Cc: Joe Perches <joe@perches.com>
> > Cc: John Stultz <john.stultz@linaro.org>
> > Cc: Andrew Hunter <ahh@google.com>
> > Cc: Paul Turner <pjt@google.com>
> > Cc: Michal Marek <mmarek@suse.cz>
> > Link: http://lkml.kernel.org/r/1431951554-5563-1-git-send-email-hofrat@osadl.org
> > Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> > ---
>
> This patch seems to cause kernel/time/time.c to always need to be
> recompiled and the vmlinux to be relinked even if nothing has changed.
>
> make V=2 shows
>
> CC kernel/time/time.o - due to: include/config/
>
>
> > diff --git a/Kbuild b/Kbuild
> > index 6f0d82a..df99a5f 100644
> > --- a/Kbuild
> > +++ b/Kbuild
> > @@ -2,8 +2,9 @@
> > # Kbuild for top-level directory of the kernel
> > # This file takes care of the following:
> > # 1) Generate bounds.h
> > -# 2) Generate asm-offsets.h (may need bounds.h)
> > -# 3) Check for missing system calls
> > +# 2) Generate timeconst.h
> > +# 3) Generate asm-offsets.h (may need bounds.h and timeconst.h)
> > +# 4) Check for missing system calls
> >
> > # Default sed regexp - multiline due to syntax constraints
> > define sed-y
> > @@ -47,7 +48,26 @@ $(obj)/$(bounds-file): kernel/bounds.s FORCE
> > $(call filechk,offsets,__LINUX_BOUNDS_H__)
> >
> > #####
> > -# 2) Generate asm-offsets.h
> > +# 2) Generate timeconst.h
> > +
> > +timeconst-file := include/generated/timeconst.h
> > +
> > +#always += $(timeconst-file)
>
> Is there a reason this is commented out instead of removed?
negligence on my side - should have been removed
>
> > +targets += $(timeconst-file)
> > +
> > +quiet_cmd_gentimeconst = GEN $@
> > +define cmd_gentimeconst
> > [...]
> > diff --git a/kernel/time/Makefile b/kernel/time/Makefile
> > index 01f0312..ffc4cc3 100644
> > --- a/kernel/time/Makefile
> > +++ b/kernel/time/Makefile
> > @@ -13,19 +13,4 @@ obj-$(CONFIG_TIMER_STATS) += timer_stats.o
> > obj-$(CONFIG_DEBUG_FS) += timekeeping_debug.o
> > obj-$(CONFIG_TEST_UDELAY) += test_udelay.o
> >
> > -$(obj)/time.o: $(obj)/timeconst.h
> > -
> > -quiet_cmd_hzfile = HZFILE $@
> > - cmd_hzfile = echo "hz=$(CONFIG_HZ)" > $@
> > -
> > -targets += hz.bc
> > -$(obj)/hz.bc: $(objtree)/include/config/hz.h FORCE
> > - $(call if_changed,hzfile)
> > -
> > -quiet_cmd_bc = BC $@
> > - cmd_bc = bc -q $(filter-out FORCE,$^) > $@
> > -
> > -targets += timeconst.h
> > -$(obj)/timeconst.h: $(obj)/hz.bc $(src)/timeconst.bc FORCE
> > - $(call if_changed,bc)
> > -
> > +$(obj)/time.o: $(objtree)/include/config/
>
> It looks like it has to recompile because of this dependency. Can't we
> just remove this line?
>
yup - thats ok to drop as well - sorry that should have gone out
after build testing.
thx!
hofrat
prev parent reply other threads:[~2015-06-30 6:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-18 12:19 [PATCH 1/3 V3] time: move " Nicholas Mc Guire
2015-05-18 12:19 ` [PATCH 2/3 V3] time: refactor msecs_to_jiffies Nicholas Mc Guire
2015-05-19 13:36 ` [tip:timers/core] time: Refactor msecs_to_jiffies tip-bot for Nicholas Mc Guire
2015-05-19 14:03 ` Joe Perches
2015-05-19 14:47 ` Nicholas Mc Guire
2015-05-19 15:18 ` Thomas Gleixner
2015-05-19 19:31 ` Nicholas Mc Guire
2015-05-19 15:12 ` Thomas Gleixner
2015-05-18 12:19 ` [PATCH 3/3 V3] time: allow gcc to fold constants when possible Nicholas Mc Guire
2015-05-19 13:37 ` [tip:timers/core] time: Allow " tip-bot for Nicholas Mc Guire
2015-05-19 13:36 ` [tip:timers/core] time: Move timeconst.h into include/generated tip-bot for Nicholas Mc Guire
2015-06-29 23:03 ` Stephen Boyd
2015-06-30 6:52 ` Nicholas Mc Guire [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=20150630065245.GB5162@opentech.at \
--to=der.herr@hofr.at \
--cc=ahh@google.com \
--cc=hofrat@osadl.org \
--cc=hpa@zytor.com \
--cc=joe@perches.com \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=mmarek@suse.cz \
--cc=pjt@google.com \
--cc=sam@ravnborg.org \
--cc=sboyd@codeaurora.org \
--cc=tglx@linutronix.de \
--cc=yamada.m@jp.panasonic.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
Powered by JetHome