Skip to content

Commit 3531593

Browse files
committed
rcu: Add KCSAN stubs
This commit adds stubs for KCSAN's data_race(), ASSERT_EXCLUSIVE_WRITER(), and ASSERT_EXCLUSIVE_ACCESS() macros to allow code using these macros to move ahead. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent ae83d0b commit 3531593

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

kernel/rcu/tree.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,19 @@
6767
#endif
6868
#define MODULE_PARAM_PREFIX "rcutree."
6969

70+
#ifndef data_race
71+
#define data_race(expr) \
72+
({ \
73+
expr; \
74+
})
75+
#endif
76+
#ifndef ASSERT_EXCLUSIVE_WRITER
77+
#define ASSERT_EXCLUSIVE_WRITER(var) do { } while (0)
78+
#endif
79+
#ifndef ASSERT_EXCLUSIVE_ACCESS
80+
#define ASSERT_EXCLUSIVE_ACCESS(var) do { } while (0)
81+
#endif
82+
7083
/* Data structures. */
7184

7285
/*

0 commit comments

Comments
 (0)