]> Git Repo - linux.git/blob - tools/virtio/linux/compiler.h
Merge tag 'amd-drm-next-6.5-2023-06-09' of https://gitlab.freedesktop.org/agd5f/linux...
[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 #include "../../../include/linux/compiler_types.h"
6
7 #define WRITE_ONCE(var, val) \
8         (*((volatile typeof(val) *)(&(var))) = (val))
9
10 #define READ_ONCE(var) (*((volatile typeof(var) *)(&(var))))
11
12 #define __aligned(x) __attribute((__aligned__(x)))
13 #endif
This page took 0.033373 seconds and 4 git commands to generate.