Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / virtio / linux / compiler.h
blob1f3a15b954b9cc8935c4536ba0015fbb240dcb65
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef LINUX_COMPILER_H
3 #define LINUX_COMPILER_H
5 #include "../../../include/linux/compiler_types.h"
7 #define WRITE_ONCE(var, val) \
8 (*((volatile typeof(val) *)(&(var))) = (val))
10 #define READ_ONCE(var) (*((volatile typeof(var) *)(&(var))))
12 #define __aligned(x) __attribute((__aligned__(x)))
13 #endif