repo: https://github.com/T-head-Semi/linux commit: b1313fe517ca3703119dcc99ef3bbf75ab42bcfb Change-Id: I6cbb35294024ea3a66140e311f4bb705fd7fd626
19 lines
482 B
C
19 lines
482 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _KERNEL_KCSAN_ATOMIC_H
|
|
#define _KERNEL_KCSAN_ATOMIC_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
/*
|
|
* 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.
|
|
*/
|
|
static bool kcsan_is_atomic_special(const volatile void *ptr)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
#endif /* _KERNEL_KCSAN_ATOMIC_H */
|