forked from luck/tmp_suning_uos_patched
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 <peterz@infradead.org> Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
33190b675c
commit
2888557f68
|
@ -43,7 +43,7 @@ static struct {
|
|||
};
|
||||
|
||||
/* Setup test checking loop. */
|
||||
static __no_kcsan_or_inline void
|
||||
static __no_kcsan inline void
|
||||
begin_test_checks(void (*func1)(void), void (*func2)(void))
|
||||
{
|
||||
kcsan_disable_current();
|
||||
|
@ -60,7 +60,7 @@ begin_test_checks(void (*func1)(void), void (*func2)(void))
|
|||
}
|
||||
|
||||
/* End test checking loop. */
|
||||
static __no_kcsan_or_inline bool
|
||||
static __no_kcsan inline bool
|
||||
end_test_checks(bool stop)
|
||||
{
|
||||
if (!stop && time_before(jiffies, end_time)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user