Merge tag 'perf-core-2021-06-28' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-block.git] / kernel / kcsan / atomic.h
CommitLineData
dfd402a4 1/* SPDX-License-Identifier: GPL-2.0 */
bd0ccc4a
ME
2/*
3 * Rules for implicitly atomic memory accesses.
4 *
5 * Copyright (C) 2019, Google LLC.
6 */
dfd402a4
ME
7
8#ifndef _KERNEL_KCSAN_ATOMIC_H
9#define _KERNEL_KCSAN_ATOMIC_H
10
7e766560 11#include <linux/types.h>
dfd402a4
ME
12
13/*
44656d3d
ME
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.
dfd402a4 17 */
44656d3d 18static bool kcsan_is_atomic_special(const volatile void *ptr)
dfd402a4 19{
7e766560 20 return false;
dfd402a4
ME
21}
22
23#endif /* _KERNEL_KCSAN_ATOMIC_H */