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 14