diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2021-05-13 11:17:02 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2021-07-20 13:52:03 -0700 |
commit | 1846a7fa767fbf8cf42d71daf75d51e30e3c8327 (patch) | |
tree | 3e74cbd36a43ad73d5d1696271a6568fe66f7b57 /arch/riscv | |
parent | 2734d6c1b1a089fb593ef6a23d4b70903526fe0c (diff) |
tools/memory-model: Make read_foo_diagnostic() more clearly diagnostic
The current definition of read_foo_diagnostic() in the "Lock Protection
With Lockless Diagnostic Access" section returns a value, which could
be use for any purpose. This could mislead people into incorrectly
using data_race() in cases where READ_ONCE() is required. This commit
therefore makes read_foo_diagnostic() simply print the value read.
Reported-by: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'arch/riscv')
0 files changed, 0 insertions, 0 deletions