Skip to content

Commit

Permalink
rcu: Change EXPORT_SYMBOL() to EXPORT_SYMBOL_GPL()
Browse files Browse the repository at this point in the history
Commit e6b80a3 (rcu: Detect illegal rcu dereference in extended
quiescent state) exported the pre-existing rcu_is_cpu_idle() function
using EXPORT_SYMBOL().  However, this is inconsistent with the remaining
exports from RCU, which are all EXPORT_SYMBOL_GPL().  The current state
of affairs means that a non-GPL module could use rcu_is_cpu_idle(),
but in a CONFIG_TREE_PREEMPT_RCU=y kernel would be unable to invoke
rcu_read_lock() and rcu_read_unlock().

This commit therefore makes rcu_is_cpu_idle()'s export be consistent
with the rest of RCU, namely EXPORT_SYMBOL_GPL().

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
  • Loading branch information
Paul E. McKenney committed Sep 25, 2013
1 parent cc6783f commit f9ffc31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/rcutree.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ int rcu_is_cpu_idle(void)
preempt_enable();
return ret;
}
EXPORT_SYMBOL(rcu_is_cpu_idle);
EXPORT_SYMBOL_GPL(rcu_is_cpu_idle);

/**
* __rcu_is_watching - are RCU read-side critical sections safe?
Expand Down

0 comments on commit f9ffc31

Please sign in to comment.