From: Mathieu Desnoyers Date: Mon, 6 Apr 2015 16:50:07 +0000 (-0400) Subject: Cleanup some c99 pedantic warnings X-Git-Tag: v0.9.0~62 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e1789ce24b1f5d912b9141fb23375d1b8a75ff2e;p=userspace-rcu.git Cleanup some c99 pedantic warnings Signed-off-by: Mathieu Desnoyers --- diff --git a/rculfhash.c b/rculfhash.c index 57f1a04..454001d 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -426,7 +426,7 @@ unsigned int fls_u32(uint32_t x) { int r; - asm("bsrl %1,%0\n\t" + __asm__ ("bsrl %1,%0\n\t" "jnz 1f\n\t" "movl $-1,%0\n\t" "1:\n\t" @@ -442,7 +442,7 @@ unsigned int fls_u64(uint64_t x) { long r; - asm("bsrq %1,%0\n\t" + __asm__ ("bsrq %1,%0\n\t" "jnz 1f\n\t" "movq $-1,%0\n\t" "1:\n\t" diff --git a/tests/common/api.h b/tests/common/api.h index 1403359..38d92a7 100644 --- a/tests/common/api.h +++ b/tests/common/api.h @@ -268,7 +268,7 @@ long long get_microseconds(void) struct { \ __typeof__(type) v \ __attribute__((__aligned__(CAA_CACHE_LINE_SIZE))); \ - } __per_thread_##name[NR_THREADS]; + } __per_thread_##name[NR_THREADS] #define DECLARE_PER_THREAD(type, name) extern DEFINE_PER_THREAD(type, name) #define per_thread(name, thread) __per_thread_##name[thread].v