aboutsummaryrefslogtreecommitdiff
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorMister Oyster <oysterized@gmail.com>2017-09-16 18:33:36 +0200
committerMister Oyster <oysterized@gmail.com>2017-09-16 19:00:14 +0200
commit6b70ec02f2dbb391cb0dac22b6ae63867d645b78 (patch)
tree370f9bcaf64deffe582f86fd5907fb16914e4b99 /include/linux/compiler.h
parent7750a02ebda62e132deadf9ea54eb4c2aaa01ce8 (diff)
binder: fix redefine of READ/WRITE_ONCE in compiler.h
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 4b13e0cb2..c6d06e91f 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -437,8 +437,6 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s
* handlers, all running on the same CPU.
*/
#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
-#define READ_ONCE(x) ACCESS_ONCE(x)
-#define WRITE_ONCE(x, val) ACCESS_ONCE(x) = val
/* Ignore/forbid kprobes attach on very low level functions marked by this attribute: */
#ifdef CONFIG_KPROBES