Compile bug in 2.6.24.8-rt7 on ARM

From: Remy Bohmer
Date: Tue May 20 2008 - 16:37:50 EST


Hello Steven,

Now I started looking at compiling 2.6.24.7-rt8 for ARM, and I found
another compile problem... ;-))

This one:
CC arch/arm/kernel/process.o
arch/arm/kernel/process.c: In function 'cpu_idle':
arch/arm/kernel/process.c:175: error: implicit declaration of function
'trace_preempt_exit_idle'
arch/arm/kernel/process.c:180: error: implicit declaration of function
'trace_preempt_enter_idle'

These function do not appear to exist _anywhere_ in the kernel.
So these calls can safely be removed, I guess.

The offending patch can be found in the broken-out set under the name
arm-trace-preempt-idle.patch.
Attached you can find a fix for it (I expect that you will not need it)


Kind Regards,

Remy
This patch fixes this compile error in 2.6.24.7-rt8:
CC arch/arm/kernel/process.o
arch/arm/kernel/process.c: In function 'cpu_idle':
arch/arm/kernel/process.c:175: error: implicit declaration of function 'trace_preempt_exit_idle'
arch/arm/kernel/process.c:180: error: implicit declaration of function 'trace_preempt_enter_idle'

Signed-off-by: Remy Bohmer <linux@xxxxxxxxxx>
---
arch/arm/kernel/process.c | 2 --
1 file changed, 2 deletions(-)

Index: linux-2.6.24/arch/arm/kernel/process.c
===================================================================
--- linux-2.6.24.orig/arch/arm/kernel/process.c 2008-05-20 22:06:33.000000000 +0200
+++ linux-2.6.24/arch/arm/kernel/process.c 2008-05-20 22:30:37.000000000 +0200
@@ -172,12 +172,10 @@ void cpu_idle(void)
idle();
leds_event(led_idle_end);
local_irq_disable();
- trace_preempt_exit_idle();
tick_nohz_restart_sched_tick();
__preempt_enable_no_resched();
__schedule();
preempt_disable();
- trace_preempt_enter_idle();
local_irq_enable();
}
}