rcu: Shut up spurious gcc uninitialized-variable warning
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 9 Mar 2015 23:51:17 +0000 (16:51 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 27 May 2015 19:59:02 +0000 (12:59 -0700)
commit3eaaaf6cd6d7fbaf552cc543ccb93d7da81f43ec
tree2d4857df44b8b855ae57741b870afbba5183b405
parenteab128e8305f2bc4c91406031aab26d86fecced6
rcu: Shut up spurious gcc uninitialized-variable warning

Because gcc doesn't realize that rcu_num_lvls must be strictly greater
than zero, some versions give a spurious warning about levelcnt[0] being
uninitialized in rcu_init_one().  This commit updates the condition on
the pre-existing panic() in order to educate gcc on this point.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c