From 56b14eae63673af90dd92e9495ee1d6905591f1f Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 2 Mar 2010 11:41:01 -0500 Subject: [PATCH] compiler.h: add () in ACCESS_ONCE() Protect x in ACCESS_ONCE macro. Signed-off-by: Mathieu Desnoyers --- urcu/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urcu/compiler.h b/urcu/compiler.h index 5b7bb30..ce19c74 100644 --- a/urcu/compiler.h +++ b/urcu/compiler.h @@ -37,7 +37,7 @@ * use is to mediate communication between process-level code and irq/NMI * handlers, all running on the same CPU. */ -#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&x) +#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) #ifndef max #define max(a,b) ((a)>(b)?(a):(b)) -- 2.34.1