eal: remove another use of register keyword
authorAvi Kivity <avi@scylladb.com>
Mon, 15 Jan 2018 11:33:23 +0000 (13:33 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 15 Jan 2018 17:58:49 +0000 (18:58 +0100)
The 'register' keyword does nothing, and has been removed in C++17.

Remove it for compatibility, like following commit:

Fixes: 0d5f2ed12f9e ("eal: remove use of register keyword")

Signed-off-by: Avi Kivity <avi@scylladb.com>
lib/librte_eal/common/include/arch/x86/rte_byteorder_64.h

index 6289404..8c6cf28 100644 (file)
@@ -20,7 +20,7 @@
 /* 64-bit mode */
 static inline uint64_t rte_arch_bswap64(uint64_t _x)
 {
-       register uint64_t x = _x;
+       uint64_t x = _x;
        asm volatile ("bswap %[x]"
                      : [x] "+r" (x)
                      );