Commit 2888557f authored by Marco Elver's avatar Marco Elver Committed by Paul E. McKenney

kcsan: Prefer '__no_kcsan inline' in test

Instead of __no_kcsan_or_inline, prefer '__no_kcsan inline' in test --
this is in case we decide to remove __no_kcsan_or_inline.
Suggested-by: default avatarPeter Zijlstra <peterz@infradead.org>
Signed-off-by: default avatarMarco Elver <elver@google.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 33190b67
...@@ -43,7 +43,7 @@ static struct { ...@@ -43,7 +43,7 @@ static struct {
}; };
/* Setup test checking loop. */ /* Setup test checking loop. */
static __no_kcsan_or_inline void static __no_kcsan inline void
begin_test_checks(void (*func1)(void), void (*func2)(void)) begin_test_checks(void (*func1)(void), void (*func2)(void))
{ {
kcsan_disable_current(); kcsan_disable_current();
...@@ -60,7 +60,7 @@ begin_test_checks(void (*func1)(void), void (*func2)(void)) ...@@ -60,7 +60,7 @@ begin_test_checks(void (*func1)(void), void (*func2)(void))
} }
/* End test checking loop. */ /* End test checking loop. */
static __no_kcsan_or_inline bool static __no_kcsan inline bool
end_test_checks(bool stop) end_test_checks(bool stop)
{ {
if (!stop && time_before(jiffies, end_time)) { if (!stop && time_before(jiffies, end_time)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment