compiler.h 289 B

1234567891011
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef LINUX_COMPILER_H
  3. #define LINUX_COMPILER_H
  4. #define WRITE_ONCE(var, val) \
  5. (*((volatile typeof(val) *)(&(var))) = (val))
  6. #define READ_ONCE(var) (*((volatile typeof(var) *)(&(var))))
  7. #define __aligned(x) __attribute((__aligned__(x)))
  8. #endif