Loading...
Note: File does not exist in v4.6.
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Rules for implicitly atomic memory accesses.
4 *
5 * Copyright (C) 2019, Google LLC.
6 */
7
8#ifndef _KERNEL_KCSAN_ATOMIC_H
9#define _KERNEL_KCSAN_ATOMIC_H
10
11#include <linux/types.h>
12
13/*
14 * Special rules for certain memory where concurrent conflicting accesses are
15 * common, however, the current convention is to not mark them; returns true if
16 * access to @ptr should be considered atomic. Called from slow-path.
17 */
18static bool kcsan_is_atomic_special(const volatile void *ptr)
19{
20 return false;
21}
22
23#endif /* _KERNEL_KCSAN_ATOMIC_H */