Skip to contentSkip to conversation

Make rcupreempt.c compile with CONFIG_RCU_TRACE not set

PATCH In review Karsten Wiese 2 participants 2 messages Feb 2, 2007 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

PATCH 1/1 Make rcupreempt.c compile with CONFIG_RCU_TRACE not set

RCU_TRACE is always defined.

---

kernel/rcupreempt.c +1 -1
diff -pur rc6-mm2/kernel/rcupreempt.c rc6-mm2-kw/kernel/rcupreempt.c
@@ -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];
Acked-by on v1 1/1
#4 lore raw
Quoted 2 lines · Karsten Wiese

RCU_TRACE is always defined.

Good catch!!!

Quoted 15 lines

---
diff -pur rc6-mm2/kernel/rcupreempt.c rc6-mm2-kw/kernel/rcupreempt.c

kernel/rcupreempt.c +1 -1
@@ -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];