Re: 2.6.23.9-rt13



Hello Steven,

If I compile -rt13 I get some compile warnings on ARM (AT91):
1) This one did not exist in rt1:
In file included from kernel/sched.c:911:
kernel/sched_rt.c: In function 'dec_rt_tasks':
kernel/sched_rt.c:88: warning: unused variable 'highest_prio'
2) This one is there already for a much longer time:
CC kernel/rcupreempt.o
kernel/rcupreempt.c:1001: warning: 'per_cpu__rcu_dyntick_snapshot'
defined but not used

Both warnings are fixed by the attached patch, but warning 2 needs some review.
This var is defined twice in this file, 1 in the NO_HZ ifdef, and 1
which seems to be not used.

Kind Regards,

Remy


2007/12/13, Steven Rostedt <rostedt@xxxxxxxxxxx>:
We are pleased to announce the 2.6.23.9-rt13 tree, which can be
downloaded from the location:

http://www.kernel.org/pub/linux/kernel/projects/rt/

Changes since 2.6.23.9-rt12

- Backported the new RT Balancing code from sched-devel
New changes by Steven Rostedt, Gregory Haskins,
Ingo Molnar, and Dmitry Adamushko

- 2 dimension CPU Prio RT balancing search (Gregory Haskins)

- ARM compile fix (Kevin Hilman)

- Disable HPET legacy replacement for kdump (OGAWA Hirofumi)

- disable HPET on shutdown (OGAWA Hirofumi)

- fix for futex_wait signal stack corruption (Steven Rostedt)

- Handle IRQ_PENDING for simple irq thread (Steven Rostedt)

- latency tracer updates (Daniel Walker)

- Remove warning in local_bh_enable (Kevin Hilman)

- use real time pcp locking for page draining during cpu (Andi Kleen)

- Revert lazy disable irq from simple irq handler (Steven Rostedt)

- AT91 switch to edge from simple irq (Remy Bohmer)


to build a 2.6.23.9-rt13 tree, the following patches should be applied:

http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.23.9.tar.bz2
http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.23.9-rt13.bz2

And like always, my RT version of Matt Mackall's ketchup will get this
for you nicely:

http://people.redhat.com/srostedt/rt/tools/ketchup-0.9.8-rt2


The broken out patches are also available.

-- Steve


-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html

Fix a compile warning on -rt13, and UP (ARM AT91rm9200)

Signed-off-by: Remy Bohmer <linux@xxxxxxxxxx>

---
kernel/rcupreempt.c | 2 --
kernel/sched_rt.c | 3 ++-
2 files changed, 2 insertions(+), 3 deletions(-)

Index: linux-2.6.23/kernel/sched_rt.c
===================================================================
--- linux-2.6.23.orig/kernel/sched_rt.c 2007-12-13 10:59:54.000000000 +0100
+++ linux-2.6.23/kernel/sched_rt.c 2007-12-13 11:06:41.000000000 +0100
@@ -85,8 +85,9 @@ static inline void inc_rt_tasks(struct t

static inline void dec_rt_tasks(struct task_struct *p, struct rq *rq)
{
+#ifdef CONFIG_SMP
int highest_prio = rq->rt.highest_prio;
-
+#endif
WARN_ON(!rt_task(p));
WARN_ON(!rq->rt.rt_nr_running);
rq->rt.rt_nr_running--;
Index: linux-2.6.23/kernel/rcupreempt.c
===================================================================
--- linux-2.6.23.orig/kernel/rcupreempt.c 2007-12-13 10:59:54.000000000 +0100
+++ linux-2.6.23/kernel/rcupreempt.c 2007-12-13 11:38:28.000000000 +0100
@@ -998,8 +998,6 @@ void __init rcu_init_rt(void)
rcu_preempt_boost_init();
}

-static DEFINE_PER_CPU(long, rcu_dyntick_snapshot);
-
/*
* Deprecated, use synchronize_rcu() or synchronize_sched() instead.
*/


Relevant Pages

  • RE: Redhat 9.0 development environment wierdness...
    ... It still has the warnings you posted. ... setup depends on you or the project you are trying to compile. ... Redhat 9.0 development environment wierdness... ... need to install on our servers and if I can't even get through these I ...
    (RedHat)
  • Re: does VS C++ 2005 actually work????
    ... may be the same size as a pointer, they have nothing logically to do with ... sizeofand size_t generating warnings when used in the context of API ... I can't compile ... justified criticism regarding the reliability of Windows. ...
    (microsoft.public.vc.mfc)
  • Re: Using unused variables
    ... I get loads of "unused variable" warnings during compile ... Compiler switches that disable reporting of unused variables are out of ... which may draw dead code diagnostics from aggressive optimizing compilers. ...
    (comp.lang.fortran)
  • Re: <ftream> errors under g++ 3.2.2
    ... > gives error messages about implicit typenames being deprecated, ... is nothing you can do to your code to prevent the warnings. ... From your output, I don't see compile failures, I see warnings. ... I am surprised that a GCC header would have an implicit ...
    (freebsd-current)
  • [PATCH] [patch] x86: coding style fixes to arch/x86/pci/irq.
    ... 60 errors, 85 warnings, 1237 lines checked ... u8 irq; ... if (pirq <= 4) ...
    (Linux-Kernel)