From: Paul E. McKenney Date: Tue, 17 Apr 2012 16:24:41 +0000 (-0700) Subject: rcu: Add exports for per-CPU variables used for inlining X-Git-Tag: next-20120430~26^2^3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e798cf3385d3aa7c84afa65677eb92e0c0876dfd;p=karo-tx-linux.git rcu: Add exports for per-CPU variables used for inlining The new rcu_read_lock_nesting and rcu_read_unlock_special per-CPU variables need to be accessible from modules to allow rcu_read_lock() and rcu_read_unlock() to continue to be used from modules. This commit therefore adds the needed EXPORT_PER_CPU_SYMBOL_GPL()s. Reported-by: Paul Gortmaker Reported-by: Randy Dunlap Signed-off-by: Paul E. McKenney Signed-off-by: Paul E. McKenney --- diff --git a/kernel/rcupdate.c b/kernel/rcupdate.c index d52c68e149fe..ef83774728f4 100644 --- a/kernel/rcupdate.c +++ b/kernel/rcupdate.c @@ -53,7 +53,9 @@ #ifdef CONFIG_PREEMPT_RCU DEFINE_PER_CPU(int, rcu_read_lock_nesting); +EXPORT_PER_CPU_SYMBOL_GPL(rcu_read_lock_nesting); DEFINE_PER_CPU(int, rcu_read_unlock_special); +EXPORT_PER_CPU_SYMBOL_GPL(rcu_read_unlock_special); #ifdef CONFIG_PROVE_RCU DEFINE_PER_CPU(struct task_struct *, rcu_current_task); #endif /* #ifdef CONFIG_PROVE_RCU */