2019-11-14 18:02:54 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
|
|
|
|
#ifndef _KERNEL_KCSAN_ATOMIC_H
|
|
|
|
#define _KERNEL_KCSAN_ATOMIC_H
|
|
|
|
|
2020-06-16 12:36:24 +00:00
|
|
|
#include <linux/types.h>
|
2019-11-14 18:02:54 +00:00
|
|
|
|
|
|
|
/*
|
2020-02-25 14:32:58 +00:00
|
|
|
* Special rules for certain memory where concurrent conflicting accesses are
|
|
|
|
* common, however, the current convention is to not mark them; returns true if
|
|
|
|
* access to @ptr should be considered atomic. Called from slow-path.
|
2019-11-14 18:02:54 +00:00
|
|
|
*/
|
2020-02-25 14:32:58 +00:00
|
|
|
static bool kcsan_is_atomic_special(const volatile void *ptr)
|
2019-11-14 18:02:54 +00:00
|
|
|
{
|
2020-06-16 12:36:24 +00:00
|
|
|
return false;
|
2019-11-14 18:02:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _KERNEL_KCSAN_ATOMIC_H */
|