[lttng-dev] [PATCH urcu] x86: drop extra semi-colon in caa_cpu_relax

Eric Wong normalperson at yhbt.net
Wed Jul 30 20:21:51 EDT 2014


This fixes compilation in braceless if/else constructs:

	if (expr)
		caa_cpu_relax();
	else
		...

Signed-off-by: Eric Wong <normalperson at yhbt.net>
---
  Btw, did you notice my rculfhash patches last month.
  I just realize I forgot to Cc you directly.
  Thanks for URCU!

 urcu/arch/x86.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/urcu/arch/x86.h b/urcu/arch/x86.h
index 7af1ca5..ccc4ce8 100644
--- a/urcu/arch/x86.h
+++ b/urcu/arch/x86.h
@@ -66,7 +66,7 @@ extern "C" {
 #endif
 #endif
 
-#define caa_cpu_relax()	__asm__ __volatile__ ("rep; nop" : : : "memory");
+#define caa_cpu_relax()	__asm__ __volatile__ ("rep; nop" : : : "memory")
 
 #define rdtscll(val)							  \
 	do {						  		  \
-- 
EW



More information about the lttng-dev mailing list