kernel: remove typename() from READ_ONCE() and WRITE_ONCE()
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#ifndef SOCKS_COMPILER_H_
|
||||
#define SOCKS_COMPILER_H_
|
||||
|
||||
#define READ_ONCE(p) (*((const volatile typeof(p) *)&(p)))
|
||||
#define WRITE_ONCE(p, v) *(volatile typeof(p) *)&(p) = (v)
|
||||
#define READ_ONCE(t, p) (*((const volatile t *)&(p)))
|
||||
#define WRITE_ONCE(t, p, v) *(volatile t *)&(p) = (v)
|
||||
|
||||
#undef __used
|
||||
#define __used __attribute__((used))
|
||||
|
||||
Reference in New Issue
Block a user