]> git.ipfire.org Git - thirdparty/linux.git/blob - tools/virtio/linux/compiler.h
Merge tag 'block-5.7-2020-05-16' of git://git.kernel.dk/linux-block
[thirdparty/linux.git] / tools / virtio / linux / compiler.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef LINUX_COMPILER_H
3 #define LINUX_COMPILER_H
4
5 #define WRITE_ONCE(var, val) \
6 (*((volatile typeof(val) *)(&(var))) = (val))
7
8 #define READ_ONCE(var) (*((volatile typeof(var) *)(&(var))))
9
10 #define __aligned(x) __attribute((__aligned__(x)))
11 #endif