From patchwork Thu Jul 28 09:21:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 72937 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp724691qga; Thu, 28 Jul 2016 01:24:19 -0700 (PDT) X-Received: by 10.237.59.79 with SMTP id q15mr54398895qte.77.1469694259374; Thu, 28 Jul 2016 01:24:19 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x35si7257806qtd.43.2016.07.28.01.24.19; Thu, 28 Jul 2016 01:24:19 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 071A0619AD; Thu, 28 Jul 2016 08:24:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 76E9C6802B; Thu, 28 Jul 2016 08:22:57 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 10FF8617BC; Thu, 28 Jul 2016 08:22:51 +0000 (UTC) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) by lists.linaro.org (Postfix) with ESMTPS id 1D119610D3 for ; Thu, 28 Jul 2016 08:22:49 +0000 (UTC) Received: by mail-lf0-f47.google.com with SMTP id g62so44040845lfe.3 for ; Thu, 28 Jul 2016 01:22:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fnrbug4js9ETY21IHYR2inY/foYSR8sz7VLqaOApOUw=; b=PMP1GPw78PmsumCj2zqwg0Topk1wSMwKE+njtXj6FWVhE2enAF3sVYDNGaxeyGi326 q10NeG3yrlLiEjcQnedszG/p4KqBKdGgplkTn56p3wcloEW/MzIcHCfehJyD1UP+vk/o G+fWCiDnNir8xKD+jSmKdBSrRdWskCglVDAh/JT0XAlC0AOIRP//t6r4dJGrQtH8XyJa /FHmfS9tCdERxofzepWdSLPaX6iM48PlivuOcBXlcA/ajfeRPpJYd9T0x+tLcUEHN6T2 B/WADaTPGsncCDZYhz0h5t3Ip6xmoIyE2IeKtDhTuYmxgfbMxsMfLBp8fjeS0gArjfvY sFJg== X-Gm-Message-State: AEkoouvsW1xRqcz7ZA6bcCkW3eZdYcKp476YgoaaoCTzUbzUiGJdwKMTyZrhTr86Uaj7o3sqJ90= X-Received: by 10.25.38.149 with SMTP id m143mr12791298lfm.107.1469694167876; Thu, 28 Jul 2016 01:22:47 -0700 (PDT) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id h22sm1727700lji.21.2016.07.28.01.22.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jul 2016 01:22:47 -0700 (PDT) From: Christophe Milard To: mike.holmes@linaro.org, lng-odp@lists.linaro.org, balakrishna.garapati@linaro.org Date: Thu, 28 Jul 2016 11:21:41 +0200 Message-Id: <1469697703-52544-4-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1469697703-52544-1-git-send-email-christophe.milard@linaro.org> References: <1469697703-52544-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 3/5] linux-generic: drv: fixed macro typo X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Christophe Milard --- platform/linux-generic/include/odp/drv/byteorder.h | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) -- 2.7.4 diff --git a/platform/linux-generic/include/odp/drv/byteorder.h b/platform/linux-generic/include/odp/drv/byteorder.h index 709a520..3991b26 100644 --- a/platform/linux-generic/include/odp/drv/byteorder.h +++ b/platform/linux-generic/include/odp/drv/byteorder.h @@ -10,8 +10,8 @@ * ODPDRV byteorder */ -#ifndef ODPDRVP_PLAT_BYTEORDER_H_ -#define ODPDRVP_PLAT_BYTEORDER_H_ +#ifndef ODPDRV_PLAT_BYTEORDER_H_ +#define ODPDRV_PLAT_BYTEORDER_H_ #ifdef __cplusplus extern "C" { @@ -27,7 +27,7 @@ extern "C" { static inline uint16_t odpdrv_be_to_cpu_16(odpdrv_u16be_t be16) { -#if ODPDRVP_BYTE_ORDER == ODPDRVP_LITTLE_ENDIAN +#if ODPDRV_BYTE_ORDER == ODPDRV_LITTLE_ENDIAN return __odpdrv_builtin_bswap16((__odpdrv_force uint16_t)be16); #else return (__odpdrv_force uint16_t)be16; @@ -36,7 +36,7 @@ static inline uint16_t odpdrv_be_to_cpu_16(odpdrv_u16be_t be16) static inline uint32_t odpdrv_be_to_cpu_32(odpdrv_u32be_t be32) { -#if ODPDRVP_BYTE_ORDER == ODPDRVP_LITTLE_ENDIAN +#if ODPDRV_BYTE_ORDER == ODPDRV_LITTLE_ENDIAN return __builtin_bswap32((__odpdrv_force uint32_t)be32); #else return (__odpdrv_force uint32_t)be32; @@ -45,7 +45,7 @@ static inline uint32_t odpdrv_be_to_cpu_32(odpdrv_u32be_t be32) static inline uint64_t odpdrv_be_to_cpu_64(odpdrv_u64be_t be64) { -#if ODPDRVP_BYTE_ORDER == ODPDRVP_LITTLE_ENDIAN +#if ODPDRV_BYTE_ORDER == ODPDRV_LITTLE_ENDIAN return __builtin_bswap64((__odpdrv_force uint64_t)be64); #else return (__odpdrv_force uint64_t)be64; @@ -54,7 +54,7 @@ static inline uint64_t odpdrv_be_to_cpu_64(odpdrv_u64be_t be64) static inline odpdrv_u16be_t odpdrv_cpu_to_be_16(uint16_t cpu16) { -#if ODPDRVP_BYTE_ORDER == ODPDRVP_LITTLE_ENDIAN +#if ODPDRV_BYTE_ORDER == ODPDRV_LITTLE_ENDIAN return (__odpdrv_force odpdrv_u16be_t)__odpdrv_builtin_bswap16(cpu16); #else return (__odpdrv_force odpdrv_u16be_t)cpu16; @@ -63,7 +63,7 @@ static inline odpdrv_u16be_t odpdrv_cpu_to_be_16(uint16_t cpu16) static inline odpdrv_u32be_t odpdrv_cpu_to_be_32(uint32_t cpu32) { -#if ODPDRVP_BYTE_ORDER == ODPDRVP_LITTLE_ENDIAN +#if ODPDRV_BYTE_ORDER == ODPDRV_LITTLE_ENDIAN return (__odpdrv_force odpdrv_u32be_t)__builtin_bswap32(cpu32); #else return (__odpdrv_force odpdrv_u32be_t)cpu32; @@ -72,7 +72,7 @@ static inline odpdrv_u32be_t odpdrv_cpu_to_be_32(uint32_t cpu32) static inline odpdrv_u64be_t odpdrv_cpu_to_be_64(uint64_t cpu64) { -#if ODPDRVP_BYTE_ORDER == ODPDRVP_LITTLE_ENDIAN +#if ODPDRV_BYTE_ORDER == ODPDRV_LITTLE_ENDIAN return (__odpdrv_force odpdrv_u64be_t)__builtin_bswap64(cpu64); #else return (__odpdrv_force odpdrv_u64be_t)cpu64; @@ -81,7 +81,7 @@ static inline odpdrv_u64be_t odpdrv_cpu_to_be_64(uint64_t cpu64) static inline uint16_t odpdrv_le_to_cpu_16(odpdrv_u16le_t le16) { -#if ODPDRVP_BYTE_ORDER == ODPDRVP_LITTLE_ENDIAN +#if ODPDRV_BYTE_ORDER == ODPDRV_LITTLE_ENDIAN return (__odpdrv_force uint16_t)le16; #else return __odpdrv_builtin_bswap16((__odpdrv_force uint16_t)le16); @@ -90,7 +90,7 @@ static inline uint16_t odpdrv_le_to_cpu_16(odpdrv_u16le_t le16) static inline uint32_t odpdrv_le_to_cpu_32(odpdrv_u32le_t le32) { -#if ODPDRVP_BYTE_ORDER == ODPDRVP_LITTLE_ENDIAN +#if ODPDRV_BYTE_ORDER == ODPDRV_LITTLE_ENDIAN return (__odpdrv_force uint32_t)le32; #else return __builtin_bswap32((__odpdrv_force uint32_t)le32); @@ -99,7 +99,7 @@ static inline uint32_t odpdrv_le_to_cpu_32(odpdrv_u32le_t le32) static inline uint64_t odpdrv_le_to_cpu_64(odpdrv_u64le_t le64) { -#if ODPDRVP_BYTE_ORDER == ODPDRVP_LITTLE_ENDIAN +#if ODPDRV_BYTE_ORDER == ODPDRV_LITTLE_ENDIAN return (__odpdrv_force uint64_t)le64; #else return __builtin_bswap64((__odpdrv_force uint64_t)le64); @@ -108,7 +108,7 @@ static inline uint64_t odpdrv_le_to_cpu_64(odpdrv_u64le_t le64) static inline odpdrv_u16le_t odpdrv_cpu_to_le_16(uint16_t cpu16) { -#if ODPDRVP_BYTE_ORDER == ODPDRVP_LITTLE_ENDIAN +#if ODPDRV_BYTE_ORDER == ODPDRV_LITTLE_ENDIAN return (__odpdrv_force odpdrv_u16le_t)cpu16; #else return (__odpdrv_force odpdrv_u16le_t)__odpdrv_builtin_bswap16(cpu16); @@ -117,7 +117,7 @@ static inline odpdrv_u16le_t odpdrv_cpu_to_le_16(uint16_t cpu16) static inline odpdrv_u32le_t odpdrv_cpu_to_le_32(uint32_t cpu32) { -#if ODPDRVP_BYTE_ORDER == ODPDRVP_LITTLE_ENDIAN +#if ODPDRV_BYTE_ORDER == ODPDRV_LITTLE_ENDIAN return (__odpdrv_force odpdrv_u32le_t)cpu32; #else return (__odpdrv_force odpdrv_u32le_t)__builtin_bswap32(cpu32); @@ -126,7 +126,7 @@ static inline odpdrv_u32le_t odpdrv_cpu_to_le_32(uint32_t cpu32) static inline odpdrv_u64le_t odpdrv_cpu_to_le_64(uint64_t cpu64) { -#if ODPDRVP_BYTE_ORDER == ODPDRVP_LITTLE_ENDIAN +#if ODPDRV_BYTE_ORDER == ODPDRV_LITTLE_ENDIAN return (__odpdrv_force odpdrv_u64le_t)cpu64; #else return (__odpdrv_force odpdrv_u64le_t)__builtin_bswap64(cpu64);