rcu/nocb: Suppress uninitialized false-positive in nocb_gp_wait()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Wed, 22 May 2019 16:35:11 +0000 (09:35 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 13 Aug 2019 21:35:49 +0000 (14:35 -0700)
commit969974e5c51e717fc9070b00eb2f61ae589ed13d
treed39d177c68c63f46ae691b487a97113ef499133e
parent921bb5fad11c0e8ec5f7625547552b252281f4de
rcu/nocb: Suppress uninitialized false-positive in nocb_gp_wait()

Some compilers complain that wait_gp_seq might be used uninitialized
in nocb_gp_wait().  This cannot actually happen because when wait_gp_seq
is uninitialized, needwait_gp must be false, which prevents wait_gp_seq
from being used.  But this analysis is apparently beyond some compilers,
so this commit adds a bogus initialization of wait_gp_seq for the sole
purpose of suppressing the false-positive warning.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/tree_plugin.h