From e1789ce24b1f5d912b9141fb23375d1b8a75ff2e Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 6 Apr 2015 12:50:07 -0400 Subject: [PATCH 1/1] Cleanup some c99 pedantic warnings Signed-off-by: Mathieu Desnoyers --- rculfhash.c | 4 ++-- tests/common/api.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.34.1