eal/arm: fix build with clang
authorAshwin Sekhar T K <ashwin.sekhar@caviumnetworks.com>
Fri, 12 May 2017 05:45:46 +0000 (22:45 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 3 Jul 2017 20:28:16 +0000 (22:28 +0200)
Fixed warning -Wasm-operand-widths seen with armv8a
clang compilation.

Signed-off-by: Ashwin Sekhar T K <ashwin.sekhar@caviumnetworks.com>
Reviewed-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
lib/librte_eal/common/include/arch/arm/rte_byteorder.h

index 1b312b3..0a29f4b 100644 (file)
@@ -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)
                      );