lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080617083742.GA18127@elte.hu>
Date:	Tue, 17 Jun 2008 10:37:42 +0200
From:	Ingo Molnar <mingo@...e.hu>
To:	Kevin Winchester <kjwinchester@...il.com>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>
Subject: Re: Latest Linus git: kernel/sched.c:1216: warning: ?init_hrtick?
	defined but not used


* Kevin Winchester <kjwinchester@...il.com> wrote:

>> Subject: sched: fix defined-but-unused warning
>> From: Rabin Vincent <rabin@....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@....in>
>> Signed-off-by: Ingo Molnar <mingo@...e.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ