Skip to contentSkip to conversation

rcu: fix TINY_RCU #elif condition

PATCH In review Paul E. McKenney 1 participant 2 messages Oct 26, 2009 – Oct 27, 2009 RCU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rcu: fix TINY_RCU #elif condition

Some compilers are happy with "#elif CONFIG_RCU_TINY", while others strongly prefer "#elif defined(CONFIG_RCU_TINY)". Change to the latter to make more compilers happy.

---
 include/linux/rcupdate.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/rcupdate.h +1 -1
index 6dd71fa..2f1bc42 100644
@@ -77,7 +77,7 @@ extern int rcu_scheduler_active;
 
 #if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU)
 #include <linux/rcutree.h>
-#elif CONFIG_TINY_RCU
+#elif defined(CONFIG_TINY_RCU)
 #include <linux/rcutiny.h>
 #else
 #error "Unknown RCU implementation specified to kernel configuration"
Signature · 1 line
1.5.2.5
#1 lore raw

[tip:core/rcu] rcu: Fix TINY_RCU #elif condition

Commit-ID:  2c28e2451dba2260e9f88811b29a7787db7e7616
Gitweb:     http://git.kernel.org/tip/2c28e2451dba2260e9f88811b29a7787db7e7616
Author:     Paul E. McKenney <[email protected]>
AuthorDate: Mon, 26 Oct 2009 13:57:44 -0700
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 27 Oct 2009 14:59:28 +0100

rcu: Fix TINY_RCU #elif condition

Some compilers are happy with "#elif CONFIG_RCU_TINY", while others strongly prefer "#elif defined(CONFIG_RCU_TINY)". Change to the latter to make more compilers happy.

LKML-Reference: <12565906642768-git-send-email->

---
 include/linux/rcupdate.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/rcupdate.h +1 -1
index 6dd71fa..2f1bc42 100644
@@ -77,7 +77,7 @@ extern int rcu_scheduler_active;
 
 #if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU)
 #include <linux/rcutree.h>
-#elif CONFIG_TINY_RCU
+#elif defined(CONFIG_TINY_RCU)
 #include <linux/rcutiny.h>
 #else
 #error "Unknown RCU implementation specified to kernel configuration"