Skip to content
Commit 969974e5 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

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: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
parent 921bb5fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment