From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 4DF981B1E5 for ; Tue, 9 Jan 2018 17:11:12 +0100 (CET) Received: by mail-wr0-f193.google.com with SMTP id b76so14647158wrd.3 for ; Tue, 09 Jan 2018 08:11:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scylladb-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=8g9MOI44uNicsJuVhZB5QrC+5VP9zbvlW/UsVYDwV+E=; b=Z06ELysMSFlk+59l+EcQ2DqnlZQ4E8eXYNwq8d+8pRDQmZBux3nFemCRCNQAYXDrs3 MsCscbpkQkq7Z9DZyGsiJLskaNqrqrvnqUIV+5TZ3/BsiQgH+xZIrq6kva54glIjShDZ IuGD5ht4zjBzMQTaJzRHrKiBBrVh9EJl0Kejo5orkRXL+NoMbIYnu2pSNtSkM9v9cwRF 3bLoaFSvHifhHOOkog2FhGBOl84T55oxTE+wnXmkPYfBf8JgDFxEWPGka7V7+X/Dm+zh 5KSKLgYm8QPbo1GW3WeUiHGD6kCoEmLNz9jJU2r9m7l996yZQUI7ml4p+MXzI1mClY/E UIag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=8g9MOI44uNicsJuVhZB5QrC+5VP9zbvlW/UsVYDwV+E=; b=YY2Po3XRqi2d20JAoOsL9NHHX4rNcWs8Cjvz1gFa9wmV1uR4z/ujN7i8VLuG2ecz1y acTUbngWCZ3P1e0gLDYGIJuuZ33keKcto9HhnvN4bDOryALNzb0JYJnT/3HxoPNp3cXL uH1hwMTaCgVHbElpxGHJs5C5aMHL5AUb3cszXDprypT4p3iUIHDmAfzYDwjTdMQT2W/Y ORuz1PBz3iPaljTQEFzFzhyaI5iblSzSqckfVKzoNwEhwkJr8qBkMwxm+MeEGKKVYQu1 Jh/OyoD7QR462vArkwcpoj1m6cH0kE9+ARsNl8J1fV+wBPfd9iSHMjIAXFmasjpD1fBJ E1+Q== X-Gm-Message-State: AKGB3mKay9hnm55qQvhkdpoTebpffJpqlD4/dUcT35Sk6+JIsFec10Rs /XsllLr9x0wGc3KU1rZjaAj2HQSMCLQ= X-Google-Smtp-Source: ACJfBouHjFyDoFghJAKIC+kPfuB+sYi9Yr7LipQQNxXGzjvwjmr+N6+ku7TVFD5HTjSVxbCpeaqzbQ== X-Received: by 10.223.197.204 with SMTP id v12mr13270804wrg.168.1515514271392; Tue, 09 Jan 2018 08:11:11 -0800 (PST) Received: from avi.cloudius-systems.com ([199.203.229.89]) by smtp.gmail.com with ESMTPSA id n6sm5013510wrn.76.2018.01.09.08.11.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jan 2018 08:11:10 -0800 (PST) From: Avi Kivity To: dev@dpdk.org Date: Tue, 9 Jan 2018 18:11:08 +0200 Message-Id: <20180109161108.32533-1-avi@scylladb.com> X-Mailer: git-send-email 2.14.3 Subject: [dpdk-dev] [PATCH v1] eal: remove use of 'register' keyword X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2018 16:11:12 -0000 The 'register' keyword does nothing, and has been removed in C++17. Remove it for compatibility. Signed-off-by: Avi Kivity --- lib/librte_eal/common/include/arch/arm/rte_byteorder.h | 2 +- lib/librte_eal/common/include/arch/x86/rte_byteorder.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 0a29f4bb4..8af0a39ad 100644 --- a/lib/librte_eal/common/include/arch/arm/rte_byteorder.h +++ b/lib/librte_eal/common/include/arch/arm/rte_byteorder.h @@ -48,11 +48,11 @@ extern "C" { /* fix missing __builtin_bswap16 for gcc older then 4.8 */ #if !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) static inline uint16_t rte_arch_bswap16(uint16_t _x) { - register uint16_t x = _x; + uint16_t x = _x; asm volatile ("rev16 %w0,%w1" : "=r" (x) : "r" (x) ); diff --git a/lib/librte_eal/common/include/arch/x86/rte_byteorder.h b/lib/librte_eal/common/include/arch/x86/rte_byteorder.h index 1b8ed5f99..56b0a31e2 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_byteorder.h +++ b/lib/librte_eal/common/include/arch/x86/rte_byteorder.h @@ -22,11 +22,11 @@ extern "C" { * * Do not use this function directly. The preferred function is rte_bswap16(). */ static inline uint16_t rte_arch_bswap16(uint16_t _x) { - register uint16_t x = _x; + uint16_t x = _x; asm volatile ("xchgb %b[x1],%h[x2]" : [x1] "=Q" (x) : [x2] "0" (x) ); return x; @@ -37,11 +37,11 @@ static inline uint16_t rte_arch_bswap16(uint16_t _x) * * Do not use this function directly. The preferred function is rte_bswap32(). */ static inline uint32_t rte_arch_bswap32(uint32_t _x) { - register uint32_t x = _x; + uint32_t x = _x; asm volatile ("bswap %[x]" : [x] "+r" (x) ); return x; } -- 2.14.3