From: Ingo Molnar <mingo@elte.hu>
To: Kevin Winchester <kjwinchester@gmail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>
Subject: Re: Latest Linus git: kernel/sched.c:1216: warning: ?init_hrtick? defined but not used
Date: Tue, 17 Jun 2008 10:37:42 +0200 [thread overview]
Message-ID: <20080617083742.GA18127@elte.hu> (raw)
In-Reply-To: <483B4205.1030302@gmail.com>
* Kevin Winchester <kjwinchester@gmail.com> wrote:
>> Subject: sched: fix defined-but-unused warning
>> From: Rabin Vincent <rabin@rab.in>
>> Date: Sun, 11 May 2008 05:55:33 +0530
>>
>> Fix this warning, which appears with !CONFIG_SMP:
>> kernel/sched.c:1216: warning: `init_hrtick' defined but not used
>>
>> Signed-off-by: Rabin Vincent <rabin@rab.in>
>> Signed-off-by: Ingo Molnar <mingo@elte.hu>
>> ---
>> kernel/sched.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> Index: linux/kernel/sched.c
>> ===================================================================
>> --- linux.orig/kernel/sched.c
>> +++ linux/kernel/sched.c
>> @@ -1130,6 +1130,7 @@ static enum hrtimer_restart hrtick(struc
>> return HRTIMER_NORESTART;
>> }
>> +#ifdef CONFIG_SMP
>> static void hotplug_hrtick_disable(int cpu)
>> {
>> struct rq *rq = cpu_rq(cpu);
>> @@ -1185,6 +1186,7 @@ static void init_hrtick(void)
>> {
>> hotcpu_notifier(hotplug_hrtick, 0);
>> }
>> +#endif /* CONFIG_SMP */
>> static void init_rq_hrtick(struct rq *rq)
>> {
>
> Did this ever make it to a pull request? I still see the warning with
> latest git.
it's queued up in tip/sched-devel at the moment:
# sched-devel: 81d41d7: sched: fix defined-but-unused warning
but you are right, we can do this in v2.6.26 - i have cherry-picked it
over into the v2.6.26 queue of patches.
Ingo
prev parent reply other threads:[~2008-06-17 8:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-11 23:55 Latest Linus git: kernel/sched.c:1216: warning: ‘init_hrtick’ defined but not used Kevin Winchester
2008-05-13 13:23 ` Ingo Molnar
2008-05-13 15:34 ` Dhaval Giani
2008-05-13 17:17 ` Ingo Molnar
2008-05-26 23:04 ` Latest Linus git: kernel/sched.c:1216: warning: ?init_hrtick? " Kevin Winchester
2008-06-17 8:37 ` Ingo Molnar [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=20080617083742.GA18127@elte.hu \
--to=mingo@elte.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=kjwinchester@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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