mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2026-01-03 16:27:14 +01:00
Fix build after API changes. Reported-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
10 lines
199 B
C
10 lines
199 B
C
#ifndef LINUX_COMPILER_H
|
|
#define LINUX_COMPILER_H
|
|
|
|
#define WRITE_ONCE(var, val) \
|
|
(*((volatile typeof(val) *)(&(var))) = (val))
|
|
|
|
#define READ_ONCE(var) (*((volatile typeof(val) *)(&(var))))
|
|
|
|
#endif
|