From 3b557b932c59ef0cf70675d7ae7213359d85ecb3 Mon Sep 17 00:00:00 2001 From: Ashwin Sekhar T K Date: Thu, 11 May 2017 22:45:46 -0700 Subject: [PATCH] eal/arm: fix build with clang Fixed warning -Wasm-operand-widths seen with armv8a clang compilation. Signed-off-by: Ashwin Sekhar T K Reviewed-by: Jerin Jacob Acked-by: Hemant Agrawal --- lib/librte_eal/common/include/arch/arm/rte_byteorder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/arch/arm/rte_byteorder.h b/lib/librte_eal/common/include/arch/arm/rte_byteorder.h index 1b312b3060..0a29f4bb42 100644 --- a/lib/librte_eal/common/include/arch/arm/rte_byteorder.h +++ b/lib/librte_eal/common/include/arch/arm/rte_byteorder.h @@ -52,7 +52,7 @@ static inline uint16_t rte_arch_bswap16(uint16_t _x) { register uint16_t x = _x; - asm volatile ("rev16 %0,%1" + asm volatile ("rev16 %w0,%w1" : "=r" (x) : "r" (x) ); -- 2.20.1