login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
26
Re: Latest Linus git: kernel/sched.c:1216: warning: ?init_hrtick? defined but not used
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Kevin Winchester <kjwinchester@...>
To: Ingo Molnar <mingo@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, Peter Zijlstra <a.p.zijlstra@...>
Subject:
Re: Latest Linus git: kernel/sched.c:1216: warning: ?init_hrtick? defined but not used
Date: Monday, May 26, 2008 - 7:04 pm
Ingo Molnar wrote:
quoted text
> * Kevin Winchester <kjwinchester@gmail.com> wrote: > >> Hi Ingo, >> >> I got the above warning in my latest build. I assume it is because >> init_hrtick() is only called from CONFIG_SMP sched_init_smp(), and I >> have a HRT-enabled UP box. >> >> I could write up the simple patch to put #ifdef CONFIG_SMP around >> init_hrtick(), but with all of the #ifdefs in that file, I figure it >> is probably a little more complicated than that. > > the fix seems simple - see below. The #ifdef jungle ... less so. > > Ingo > > ---------------> > 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. -- Kevin Winchester --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Latest Linus git: kernel/sched.c:12
, Kevin Winchester
, (Sun May 11, 7:55 pm)
Re: Latest Linus git:
, Ingo Molnar
, (Tue May 13, 9:23 am)
Re: Latest Linus git: kernel/sched.c:1216: warning: ?init_hr...
, Kevin Winchester
, (Mon May 26, 7:04 pm)
Re: Latest Linus git: kernel/sched.c:1216: warning: ?init_hr...
, Ingo Molnar
, (Tue Jun 17, 4:37 am)
Re: Latest Linus git:
, Dhaval Giani
, (Tue May 13, 11:34 am)
Re: Latest Linus git:
, Ingo Molnar
, (Tue May 13, 1:17 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 006/196] Chinese: add translation of oops-tracing.txt
Luciano Rocha
usb hdd problems with 2.6.27.2
Roland Dreier
Re: Integration of SCST in the mainstream Linux kernel
git
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
510 guests
online.
Online users
tyhxcv
strcmp
Syndicate