From patchwork Mon Dec 18 07:56:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 122189 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2527102qgn; Sun, 17 Dec 2017 23:58:37 -0800 (PST) X-Google-Smtp-Source: ACJfBosXXkoYZ3yiR6m9m0GYPS93u9DPc4BWz7kTngRh3QazpWbDcd6yKT050VzwNgb8thODu8XC X-Received: by 10.28.238.221 with SMTP id j90mr11607453wmi.44.1513583917643; Sun, 17 Dec 2017 23:58:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513583917; cv=none; d=google.com; s=arc-20160816; b=YyFbeVev1H945d5zrdEjKEVK75j/OS7Nr9cPxylZNFrQTAbPMWXqSBEABmghRmsbp3 93uqY0THyWGzMICaTcFzIbTdyL+lI+aJIGT3n5bOdcXBUcvV/6pZYxpOuUUF54Nr+yKD /8ENJwTRzU2BBt2DMPgLVXweg8PQb048wQ0X7lWihDHZnF+oyZdN83XCDaD20gKubJ9+ QJgFOLffHMIZDih0qWkLhjO3kQ1LfXYATWzHgOi3wuGI1ehOqRXS4JIBw252aO40hDaW SZce1TMEOM6D1M1L12K/0HFlBjdhob2mmct0231MfZTmfEZMZhvrBuEcwIU8Zb9NyvF/ +qfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from :arc-authentication-results; bh=Jntuuw1g06DpR8okqhrWj3eOzqpmAFSuSC+1M2Yvvgo=; b=BU34kr2iUi6VwPEGuy6UG++fOAXalLC8So3cWzrBets4WNaACrCRFkdfv5UIj4xwFS VEEraIh/efwYInFeo7fCdS2MhutP7dYhwoOCTAtiiBmyM93sb8ImktcdtgntH2CpSoBc 9t83ORe+WsF650tclM7WiNRHkssY1EKUzsKW+cNQqwKcsuRnrYawDUhqUocq1yikiGFd oweb9TrqmS7uHhrGZwCGYWDJnL09QTC8zOsvh3zYa26bY3rqVOqFJDOXf/ZVQLgmm9Lp 8yn7yxB9drgD/UkDQCFkgEAc/0M63/eCe0KFTyLRWyn0y0HtSRm6lLFZV+O9AdaymZ77 VetA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id s7si8807887wrg.141.2017.12.17.23.58.37; Sun, 17 Dec 2017 23:58:37 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AA83A1B052; Mon, 18 Dec 2017 08:58:06 +0100 (CET) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0060.outbound.protection.outlook.com [104.47.34.60]) by dpdk.org (Postfix) with ESMTP id 151321B01F; Mon, 18 Dec 2017 08:58:03 +0100 (CET) Received: from MWHPR03CA0003.namprd03.prod.outlook.com (10.175.133.141) by CO2PR03MB2359.namprd03.prod.outlook.com (10.166.93.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.15; Mon, 18 Dec 2017 07:58:02 +0000 Received: from BL2FFO11OLC007.protection.gbl (2a01:111:f400:7c09::194) by MWHPR03CA0003.outlook.office365.com (2603:10b6:300:117::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.323.15 via Frontend Transport; Mon, 18 Dec 2017 07:58:02 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11OLC007.mail.protection.outlook.com (10.173.160.142) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.302.6 via Frontend Transport; Mon, 18 Dec 2017 07:57:51 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vBI7vl6I011541; Mon, 18 Dec 2017 00:57:59 -0700 From: Hemant Agrawal To: CC: , , , Date: Mon, 18 Dec 2017 13:26:49 +0530 Message-ID: <1513583809-3926-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513583809-3926-1-git-send-email-hemant.agrawal@nxp.com> References: <1513169578-28440-1-git-send-email-hemant.agrawal@nxp.com> <1513583809-3926-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131580574715545151; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(336005)(396003)(376002)(39860400002)(39380400002)(346002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(106466001)(2351001)(105606002)(50466002)(47776003)(4326008)(498600001)(81156014)(76176011)(8676002)(81166006)(53936002)(305945005)(23676004)(356003)(54906003)(8936002)(316002)(2906002)(50226002)(6666003)(2950100002)(5660300001)(6916009)(77096006)(104016004)(85426001)(5820100001)(2870700001)(97736004)(59450400001)(36756003)(86362001)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2359; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC007; 1:tYYs/KgmJT7P7GxatJ1mNnVK4844JmBPQzHDToO6M9zKfRR9qhdgbDYgC0aLCR5Yabsrb2DNuy1QN2L0KMC9BJ3UJNVKyjrXKi/h4zmGdyCnJgmsZElPtz7sjU8+/wDX X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5040660b-8959-4170-a4e2-08d545ed09b7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4628075)(201703131517081)(2017052603307); SRVR:CO2PR03MB2359; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2359; 3:3n82lEqpGAfpQumFYn3ffIAq90pcAqOr2mfN2wDklcAE0wDsQub5s0jX/eRltRHyeyM8ndn7JgsVCi1CXOqUA5uoyzZ9wUtxJYiO58QPn/h47QctiznEC8lcHum4/+TiYDZfrLCu1bYpVtktGoWmx58JzwnIYpMi3/vT+Yn6bOlhzO2TC6I7nVXFcqRb1NP6MLYttSJ/qRXIixXfOPo1Wlu3QrqtWMlOrx4bP+WvwMrH+0WdtfF/xj5yM2ocvrydMXieZNNpV5QO1Oxl+e+LamVo3jUlqtxWou7v/C3nT0Zj/CDd4BMTfeZt84bkfnZbUxWv46sPwO4HBDxtybS6IWD+bH8vdvuGXfPwptgdfpI=; 25:k/t04jg357PpCTla1GPsoOC1/lTWDmGXa8ScsYcmGt8fgpSP2GU2rx9mMFEe6dTB792PzRZ/ZtDpwbxwJqlFjBbKhNCZ6NMNn+z6bYqXGc+T2Cx7njtNCOdBAwq8c+b2u4CUCMk2bRXD1mNRdN6mXRaej4yCLQvn3vLjHwNOL3JzyhsemZg2Q4iZNyaa5aArrWj+x63742eko9JnMZxc2vKDpkcnG80x/H4Brc83+efI38+Ye1ayJ1/InlaDfI0ax4Tk+FyUqWWS45sZvEATQET7avzdeTLgyMHlxDj7nToNSm6L0HqrgjdApupjg30SvIUxIYRo+2/w3KWqhUJbvA== X-MS-TrafficTypeDiagnostic: CO2PR03MB2359: X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2359; 31:55WSmozi6Jky8hlsBTFErUZE3swZIqBAhG4mMH4ckBMQVGr/LlsDq1+F+e0FWJF7a5krgtlb0snFj4K8WC23eo7VRvIb9u79KrDwu22y1WJpGLtVeAWUZJVoojIjS337UFYarEk5WqALofhWqcUutrPqgKtTHYvv1hJhpZDNK+nOHG86QvjrV9oRtHFNQDeZCdC9Z/gOAfEawd2b5juWsz1tmmwQ/hPtmpMXQynmm/s=; 4:Kbag4t19zN5oC8ZXYI50IqoNOt2ycTNbIbIUqLEJKLBaZyvI2vQzq2kmf2PkBGvyJ4cIYyOqRhGJGj2SRENm+Cw5Eo6jWXVicGmdS1MjheB1MTSz9ttdgPkltlY219sahffKd85OPcz8jHqbvJcj8Vd1qqoxT2MYXVvMaCXyUjW5lVz5rJ9WzhcjLO3UN/kulmUhiVKzozlyKjm8pVPYab58k1LB16YoAOs6vmuIYBgK8VLa8TBogyC8DLLzjrYY+SHTmGZePWRmN9J5mWqz2U8T7m8DoGViErVFJeVuTG+t1NpYX3Ovv6A+IQ5X/MGO+fF/7094t4Z0LDHxXHzB8B6sUgPHVjJqRgFz9d6vJHM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231023)(6055026)(6096035)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123565025)(20161123561025)(20161123556025)(20161123563025)(20161123559100)(201708071742011); SRVR:CO2PR03MB2359; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CO2PR03MB2359; X-Forefront-PRVS: 0525BB0ADF X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BCO2PR03MB2359=3B23=3AbUjN?= =?utf-8?q?9SQm1am0OV+cC1+/qzRWaWeSw9A8Ae6dW/740C3UU48p1uQkzEM3Finn?= =?utf-8?q?E4Q5PFExt/xqFeSrK/qKZLK0AZyKJ9N62qbCnZOW48qw1+qP3jtlJQyQ?= =?utf-8?q?oyEMG9dbOJGk6kO1xfh3Xanmw5EQxoiEIXqmCs+W8DwFirTXFSdc3egJ?= =?utf-8?q?EXgi8KDtRtAYHEVEx86QUC+Fq0pg6fnNGL79uczjNL79a+0qbokxEY9m?= =?utf-8?q?p1PLMN64FzCuBFKAZRYFkEhF3Ade9zpeEKWMnibtpU3BUVBl6iHlmOV/?= =?utf-8?q?nYBtupEy9FKunWM5XRnMhkMrAZ20YRdGwd4RDT2jlPiuGmBec1MOL6VL?= =?utf-8?q?e5rv+R+CNmATWkyYWrQYLhOcMGBTBmbQGMaWTB8WYsGOyhNfraGnS1/f?= =?utf-8?q?/32ksb6K77T1DZX88CLfyPOjEs5ElMt+Cpu9FH/eD4CwFlaNaFctO9Ov?= =?utf-8?q?qerqO2hv47A1gnRhDuoMhdgLVOb4WMjwkdgpWh0Z0TWmf3MoUSCdWJ8G?= =?utf-8?q?dYxd1rT0Xyuf8kkOZJjCvAxEOOGQ4jcGpQjGMFzBFZNtTj95RtmlMQ/J?= =?utf-8?q?N5yLDfA54JZNBiLfIGMDMf1oux14djOVFzPfXfaG7zUHHP9fXB53vYGq?= =?utf-8?q?ymv1ZkzQv7c5QunLBPzehL/nfYFNWt5bmrZ1jCXRUUiBbd9fmxmAxo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WBRwIFoqRbLP3m2xtWO4O8HNept3cdIs0mi8y6XkSq/ZFj0Ekw=; 24:+b8J05ZmuV4LC2zM59HFKvD+cUlxJRirbqLYhMunj227EnNZS9Iq+XwfCmZHpwfF/svrlJTzvxUd1aXlvQTEdGXI6dErf+BrID79Z8DRhEs=; 7:4AMPxH6dIzaTbUbPgqsvhDpzev6Po1wXnk/iCfDfle/1RJKxylF/gksIe+4rJ9gsZLiLvlumu8kCJPo3LWmdoGLd2A3mmhmOJtQQ1zxoSdsOH+9bgb5NvTbgfht5wc5tuKUAfhAdCUZArckFSQQPqzLVx2C/dK98rba2B3ULSqYxgu+vGTR5SPPQ0VgwbrSF4fXz7NkK3piDpFNdttZuhEmsbWdACTYSQzwe9rcAtiy1FEr4GRW26UvYFta0pxuT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2017 07:57:51.3829 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5040660b-8959-4170-a4e2-08d545ed09b7 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR03MB2359 Subject: [dpdk-dev] [PATCH v3 5/5] net/ixgbe: fix compilation on ARM BE 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" fixes the following compilation error on compiling with ARM BE compiler ixgbe_common.c: In function ‘ixgbe_host_interface_command’: ixgbe_common.c:4610:22: error: passing argument 1 of ‘__builtin_bswap32’ makes integer from pointer without a cast [-Werror=int-conversion] IXGBE_LE32_TO_CPUS(&buffer[bi]); ^ Fixes: aa4fc14d2cee ("ixgbe: update base driver") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal Acked-by: Bruce Richardson --- drivers/net/ixgbe/base/ixgbe_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c index 7f85713..5e6ad95 100644 --- a/drivers/net/ixgbe/base/ixgbe_common.c +++ b/drivers/net/ixgbe/base/ixgbe_common.c @@ -4607,7 +4607,7 @@ s32 ixgbe_host_interface_command(struct ixgbe_hw *hw, u32 *buffer, /* first pull in the header so we know the buffer length */ for (bi = 0; bi < dword_len; bi++) { buffer[bi] = IXGBE_READ_REG_ARRAY(hw, IXGBE_FLEX_MNG, bi); - IXGBE_LE32_TO_CPUS(&buffer[bi]); + IXGBE_LE32_TO_CPUS((uintptr_t)&buffer[bi]); } /* If there is any thing in data position pull it in */ @@ -4627,7 +4627,7 @@ s32 ixgbe_host_interface_command(struct ixgbe_hw *hw, u32 *buffer, /* Pull in the rest of the buffer (bi is where we left off) */ for (; bi <= dword_len; bi++) { buffer[bi] = IXGBE_READ_REG_ARRAY(hw, IXGBE_FLEX_MNG, bi); - IXGBE_LE32_TO_CPUS(&buffer[bi]); + IXGBE_LE32_TO_CPUS((uintptr_t)&buffer[bi]); } rel_out: