LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 2.6.24-rt1] timer:fix build warning in timer.c
@ 2008-02-14 10:02 Shi Weihua
2008-02-14 12:38 ` Steven Rostedt
0 siblings, 1 reply; 2+ messages in thread
From: Shi Weihua @ 2008-02-14 10:02 UTC (permalink / raw)
To: linux-rt-users
Cc: linux-kernel, khilman, rostedt, Thomas Gleixner, Ingo Molnar
Fix the following compile warning without CONFIG_PREEMPT_RT:
kernel/timer.c:937: warning: ‘count_active_rt_tasks’ defined but not used
Signed-off-by: Shi Weihua <shiwh@cn.fujitsu.com>
---
diff -urpN linux-2.6.24-rt1.orig/kernel/timer.c linux-2.6.24-rt1/kernel/timer.c
--- linux-2.6.24-rt1.orig/kernel/timer.c 2008-02-14 17:01:49.000000000 +0800
+++ linux-2.6.24-rt1/kernel/timer.c 2008-02-14 17:31:10.000000000 +0800
@@ -930,20 +930,18 @@ static unsigned long count_active_tasks(
#endif
}
+#ifdef CONFIG_PREEMPT_RT
/*
* Nr of active tasks - counted in fixed-point numbers
*/
static unsigned long count_active_rt_tasks(void)
{
-#ifdef CONFIG_PREEMPT_RT
extern unsigned long rt_nr_running(void);
extern unsigned long rt_nr_uninterruptible(void);
return (rt_nr_running() + rt_nr_uninterruptible()) * FIXED_1;
-#else
- return 0;
-#endif
}
+#endif
/*
* Hmm.. Changed this, as the GNU make sources (load.c) seems to
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.6.24-rt1] timer:fix build warning in timer.c
2008-02-14 10:02 [PATCH 2.6.24-rt1] timer:fix build warning in timer.c Shi Weihua
@ 2008-02-14 12:38 ` Steven Rostedt
0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2008-02-14 12:38 UTC (permalink / raw)
To: Shi Weihua
Cc: linux-rt-users, linux-kernel, khilman, Thomas Gleixner, Ingo Molnar
On Thu, 14 Feb 2008, Shi Weihua wrote:
> Fix the following compile warning without CONFIG_PREEMPT_RT:
> kernel/timer.c:937: warning: ‘count_active_rt_tasks’ defined but not used
>
> Signed-off-by: Shi Weihua <shiwh@cn.fujitsu.com>
Thanks, applied.
-- Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-14 12:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-14 10:02 [PATCH 2.6.24-rt1] timer:fix build warning in timer.c Shi Weihua
2008-02-14 12:38 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).