From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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:3n82lEqpGAfpQumFYn3ffIAq90pcAqOr2mfN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WXVicGmdS1MjheB1MTSz9ttdgPkltlY219sahffKd85OPcz8jHqbvJcj8Vd1qqoxT2MYXVvMaCXyUjW5lVz5rJ9WzhcjLO3UN/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?B?MTtDTzJQUjAzTUIyMzU5OzIzOmJVak45U1FtMWFtME9WK2NDMSsvcXpSV2FX?= =?utf-8?B?ZVN3OUE4QWU2ZFcvNzQwQzNVVTQ4cDF1UWt6RU0zRmlubkU0UTVQRkV4dC94?= =?utf-8?B?cUZlU3JLL3FLWkxLMEFaeUtKOU42MnFiQ25aT1c0OHF3MStxUDNqdGxKUXlR?= =?utf-8?B?b3lFTUc5ZGJPSkdrNmtPMXhmaDNYYW5tdzVFUXhvaUVJWHFtQ3MrVzhEd0Zp?= =?utf-8?B?clRYRlNkYzNlZ0pFWGdpOEtEdFJ0QVlIRVZFeDg2UVVDK0ZxMHBnNmZuTkdM?= =?utf-8?B?Nzl1Y3pqTkw3OWErMHFib2t4RVk5bXAxUExNTjY0RnpDdUJGS0FaUllGa0Vo?= =?utf-8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iLvlumu8kCJPo3LWmdoGLd2A3mmhmOJtQQ1zxoSdsOH+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: , X-List-Received-Date: Mon, 18 Dec 2017 07:58:04 -0000 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(-) 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: -- 2.7.4