http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55529
--- Comment #6 from Markus Trippelsdorf <markus at trippelsdorf dot de>
2012-11-29 13:25:07 UTC ---
It's defined as:
94 int rcu_num_lvls __read_mostly = RCU_NUM_LVLS;
and never modified elsewhere AFAICS.
and from kernel/rcutree.h:
364 struct rcu_state {
365 struct rcu_node node[NUM_RCU_NODES]; /* Hierarchy. */
366 struct rcu_node *level[RCU_NUM_LVLS]; /* Hierarchy levels. */
...
But your're right making rcu_num_lvls static is probably a good idea.