atomic.h 482 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _KERNEL_KCSAN_ATOMIC_H
  3. #define _KERNEL_KCSAN_ATOMIC_H
  4. #include <linux/types.h>
  5. /*
  6. * Special rules for certain memory where concurrent conflicting accesses are
  7. * common, however, the current convention is to not mark them; returns true if
  8. * access to @ptr should be considered atomic. Called from slow-path.
  9. */
  10. static bool kcsan_is_atomic_special(const volatile void *ptr)
  11. {
  12. return false;
  13. }
  14. #endif /* _KERNEL_KCSAN_ATOMIC_H */