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)))