tools/memory-model: Update some warning labels
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 25 Jan 2023 20:20:51 +0000 (15:20 -0500)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 22 Mar 2023 19:02:17 +0000 (12:02 -0700)
commit627c9ad04f01221b4396f3df839c5dd994f327b4
tree82178f46ae7f4b1ac6b5f51e077dd7c2b99b8d53
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
tools/memory-model: Update some warning labels

Some of the warning labels used in the LKMM are unfortunately
ambiguous.  In particular, the same warning is used for both an
unmatched rcu_read_lock() call and for an unmatched rcu_read_unlock()
call.  Likewise for the srcu_* equivalents.  Also, the warning about
passing a wrong value to srcu_read_unlock() -- i.e., a value different
from the one returned by the matching srcu_read_lock() -- talks about
bad nesting rather than non-matching values.

Let's update the warning labels to make their meanings more clear.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reviewed-by: Jonas Oberhauser <jonas.oberhauser@huaweicloud.com>
Acked-by: Andrea Parri <parri.andrea@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/memory-model/linux-kernel.bell