blob: 75fe701f41277ba13e07b92db0fdc0ce80dc1d29 [file] [log] [blame]
Marco Elverdfd402a2019-11-14 19:02:54 +01001/* SPDX-License-Identifier: GPL-2.0 */
2
3#ifndef _KERNEL_KCSAN_ATOMIC_H
4#define _KERNEL_KCSAN_ATOMIC_H
5
Marco Elver7e766562020-06-16 14:36:24 +02006#include <linux/types.h>
Marco Elverdfd402a2019-11-14 19:02:54 +01007
8/*
Marco Elver44656d32020-02-25 15:32:58 +01009 * Special rules for certain memory where concurrent conflicting accesses are
10 * common, however, the current convention is to not mark them; returns true if
11 * access to @ptr should be considered atomic. Called from slow-path.
Marco Elverdfd402a2019-11-14 19:02:54 +010012 */
Marco Elver44656d32020-02-25 15:32:58 +010013static bool kcsan_is_atomic_special(const volatile void *ptr)
Marco Elverdfd402a2019-11-14 19:02:54 +010014{
Marco Elver7e766562020-06-16 14:36:24 +020015 return false;
Marco Elverdfd402a2019-11-14 19:02:54 +010016}
17
18#endif /* _KERNEL_KCSAN_ATOMIC_H */