From: Olivier Matz Date: Fri, 24 Jan 2014 15:29:06 +0000 (+0100) Subject: spinlock: fix build with clang X-Git-Tag: spdx-start~10957 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=73a2bc5dba483a09802ce2af90548672238d3c88;p=dpdk.git spinlock: fix build with clang LLVM clang requires an explicitly sized "cmp" assembly instruction. Signed-off-by: Olivier Matz Acked-by: Thomas Monjalon --- diff --git a/lib/librte_eal/common/include/rte_spinlock.h b/lib/librte_eal/common/include/rte_spinlock.h index 85d533a79b..f79e42403d 100644 --- a/lib/librte_eal/common/include/rte_spinlock.h +++ b/lib/librte_eal/common/include/rte_spinlock.h @@ -98,7 +98,7 @@ rte_spinlock_lock(rte_spinlock_t *sl) "jz 3f\n" "2:\n" "pause\n" - "cmp $0, %[locked]\n" + "cmpl $0, %[locked]\n" "jnz 2b\n" "jmp 1b\n" "3:\n"