2007-02-02 03:48:08

by Karsten Wiese

[permalink] [raw]
Subject: [PATCH -mm] Make rcupreempt.c compile with CONFIG_RCU_TRACE not set


RCU_TRACE is always defined.

Signed-off-by: Karsten Wiese <[email protected]>

---
diff -pur rc6-mm2/kernel/rcupreempt.c rc6-mm2-kw/kernel/rcupreempt.c
--- rc6-mm2/kernel/rcupreempt.c 2007-01-30 00:08:21.000000000 +0100
+++ rc6-mm2-kw/kernel/rcupreempt.c 2007-01-29 11:07:43.000000000 +0100
@@ -619,7 +619,7 @@ void synchronize_kernel(void)
synchronize_rcu();
}

-#ifdef RCU_TRACE
+#ifdef CONFIG_RCU_TRACE
int *rcupreempt_flipctr(int cpu)
{
return &per_cpu(rcu_flipctr, cpu)[0];


2007-02-02 15:49:54

by Paul E. McKenney

[permalink] [raw]
Subject: Re: [PATCH -mm] Make rcupreempt.c compile with CONFIG_RCU_TRACE not set

On Fri, Feb 02, 2007 at 04:48:02AM +0100, Karsten Wiese wrote:
>
> RCU_TRACE is always defined.

Good catch!!!

Acked-by: Paul E. McKenney <[email protected]>

> Signed-off-by: Karsten Wiese <[email protected]>
>
> ---
> diff -pur rc6-mm2/kernel/rcupreempt.c rc6-mm2-kw/kernel/rcupreempt.c
> --- rc6-mm2/kernel/rcupreempt.c 2007-01-30 00:08:21.000000000 +0100
> +++ rc6-mm2-kw/kernel/rcupreempt.c 2007-01-29 11:07:43.000000000 +0100
> @@ -619,7 +619,7 @@ void synchronize_kernel(void)
> synchronize_rcu();
> }
>
> -#ifdef RCU_TRACE
> +#ifdef CONFIG_RCU_TRACE
> int *rcupreempt_flipctr(int cpu)
> {
> return &per_cpu(rcu_flipctr, cpu)[0];