]> Git Repo - J-linux.git/blob - tools/virtio/linux/compiler.h
Merge tag 'kbuild-v6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy...
[J-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.028062 seconds and 4 git commands to generate.