Skip to content

Commit 2888557

Browse files
melverpaulmckrcu
authored andcommitted
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: Peter Zijlstra <[email protected]> Signed-off-by: Marco Elver <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 33190b6 commit 2888557

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/kcsan/kcsan-test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static struct {
4343
};
4444

4545
/* Setup test checking loop. */
46-
static __no_kcsan_or_inline void
46+
static __no_kcsan inline void
4747
begin_test_checks(void (*func1)(void), void (*func2)(void))
4848
{
4949
kcsan_disable_current();
@@ -60,7 +60,7 @@ begin_test_checks(void (*func1)(void), void (*func2)(void))
6060
}
6161

6262
/* End test checking loop. */
63-
static __no_kcsan_or_inline bool
63+
static __no_kcsan inline bool
6464
end_test_checks(bool stop)
6565
{
6666
if (!stop && time_before(jiffies, end_time)) {

0 commit comments

Comments
 (0)