From e798cf3385d3aa7c84afa65677eb92e0c0876dfd Mon Sep 17 00:00:00 2001 From: "Paul E. McKenney" Date: Tue, 17 Apr 2012 09:24:41 -0700 Subject: [PATCH] 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 --- kernel/rcupdate.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.39.5