DPDK patches and discussions
 help / color / mirror / Atom feed
From: Avi Kivity <avi@scylladb.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH v1] eal: remove another use of register keyword
Date: Mon, 15 Jan 2018 13:33:23 +0200	[thread overview]
Message-ID: <20180115113323.24439-1-avi@scylladb.com> (raw)

The 'register' keyword does nothing, and has been removed in C++17.

Remove it for compatibility, like commit 0d5f2ed12f9eb.

Signed-off-by: Avi Kivity <avi@scylladb.com>
---
 lib/librte_eal/common/include/arch/x86/rte_byteorder_64.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_eal/common/include/arch/x86/rte_byteorder_64.h b/lib/librte_eal/common/include/arch/x86/rte_byteorder_64.h
index 6289404a3..8c6cf285b 100644
--- a/lib/librte_eal/common/include/arch/x86/rte_byteorder_64.h
+++ b/lib/librte_eal/common/include/arch/x86/rte_byteorder_64.h
@@ -18,11 +18,11 @@
   * Do not use this function directly. The preferred function is rte_bswap64().
  */
 /* 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)
 		      );
 	return x;
 }
-- 
2.14.3

             reply	other threads:[~2018-01-15 11:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-15 11:33 Avi Kivity [this message]
2018-01-15 18:00 ` Thomas Monjalon
2018-01-15 18:18   ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180115113323.24439-1-avi@scylladb.com \
    --to=avi@scylladb.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).