rcu: Force boolean subscript for expedited stall warnings
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 12 Jan 2016 00:29:29 +0000 (16:29 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 31 Mar 2016 20:34:07 +0000 (13:34 -0700)
commitec3833ed02ae6ef2a933ece9de7cbab0c64c699e
treef8fbd7a547108972415b53cab77755b599422275
parente2fd9d35847d1936398d44c4df68dceb3d7f64e7
rcu: Force boolean subscript for expedited stall warnings

The cpu_online() function can return values other than 0 and 1, which
can result in subscript overflow when applied to a two-element array.
This commit allows for this behavior by using "!!" on the return value
from cpu_online() when used as a subscript.

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