提交 7ad900d3 编写于 作者: P Paul E. McKenney 提交者: Ingo Molnar

kcsan: Add docbook header for data_race()

Signed-off-by: NPaul E. McKenney <paulmck@kernel.org>
Signed-off-by: NIngo Molnar <mingo@kernel.org>
Cc: Marco Elver <elver@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
上级 76d6f06c
...@@ -315,13 +315,15 @@ unsigned long read_word_at_a_time(const void *addr) ...@@ -315,13 +315,15 @@ unsigned long read_word_at_a_time(const void *addr)
#include <linux/kcsan.h> #include <linux/kcsan.h>
/* /**
* data_race(): macro to document that accesses in an expression may conflict with * data_race - mark an expression as containing intentional data races
* other concurrent accesses resulting in data races, but the resulting *
* behaviour is deemed safe regardless. * This data_race() macro is useful for situations in which data races
* should be forgiven. One example is diagnostic code that accesses
* shared variables but is not a part of the core synchronization design.
* *
* This macro *does not* affect normal code generation, but is a hint to tooling * This macro *does not* affect normal code generation, but is a hint
* that data races here should be ignored. * to tooling that data races here are to be ignored.
*/ */
#define data_race(expr) \ #define data_race(expr) \
({ \ ({ \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册