]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - kernel/kcsan/atomic.h
Merge tag 'acpi-5.12-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[mirror_ubuntu-jammy-kernel.git] / kernel / kcsan / atomic.h
CommitLineData
dfd402a4
ME
1/* SPDX-License-Identifier: GPL-2.0 */
2
3#ifndef _KERNEL_KCSAN_ATOMIC_H
4#define _KERNEL_KCSAN_ATOMIC_H
5
7e766560 6#include <linux/types.h>
dfd402a4
ME
7
8/*
44656d3d
ME
9 * 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.
dfd402a4 12 */
44656d3d 13static bool kcsan_is_atomic_special(const volatile void *ptr)
dfd402a4 14{
7e766560 15 return false;
dfd402a4
ME
16}
17
18#endif /* _KERNEL_KCSAN_ATOMIC_H */