From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0060.outbound.protection.outlook.com [104.47.41.60]) by dpdk.org (Postfix) with ESMTP id B3EDE1AFE8; Wed, 13 Dec 2017 13:54:10 +0100 (CET) Received: from BN6PR03CA0015.namprd03.prod.outlook.com (10.168.230.153) by CO2PR03MB2357.namprd03.prod.outlook.com (10.166.93.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Wed, 13 Dec 2017 12:54:09 +0000 Received: from BY2FFO11FD041.protection.gbl (2a01:111:f400:7c0c::133) by BN6PR03CA0015.outlook.office365.com (2603:10b6:404:23::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend Transport; Wed, 13 Dec 2017 12:54:09 +0000 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 BY2FFO11FD041.mail.protection.outlook.com (10.1.14.226) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.282.5 via Frontend Transport; Wed, 13 Dec 2017 12:54:01 +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 vBDCrsSj021824; Wed, 13 Dec 2017 05:54:06 -0700 From: Hemant Agrawal To: CC: , Date: Wed, 13 Dec 2017 18:22:58 +0530 Message-ID: <1513169578-28440-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513169578-28440-1-git-send-email-hemant.agrawal@nxp.com> References: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> <1513169578-28440-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: 131576432421269110; (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)(7966004)(39860400002)(39380400002)(346002)(376002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(6666003)(6916009)(97736004)(356003)(305945005)(106466001)(105606002)(4326008)(2351001)(316002)(5660300001)(54906003)(296002)(23676004)(50466002)(8936002)(50226002)(36756003)(77096006)(53936002)(8676002)(76176011)(2950100002)(47776003)(2906002)(5820100001)(2870700001)(86362001)(68736007)(81156014)(104016004)(59450400001)(498600001)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2357; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD041; 1:GQIlftMLfhDQb0LMnvKILbBlJ5KjDhRO7AvPqK5HWHuwQMyPWx8j0XxKytZRVHjdSp3I+ETehjEEST05GxvMwUrkpstQEnv2dQKC70m8nbFcwMrwMciGUW/3x/uvwMFe X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e31ca62c-3cb5-42b5-6e76-08d5422895bf X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:CO2PR03MB2357; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2357; 3:aaVWK4qC3qp9xUt/qfhgFDOXbfSz+cV4RRITaWVReSPTIqWnNjRqYjfFBDuPUyMOzDfqKsQBFxUb9emROjah9c4tZqibWM3bNm9sAqxxrgG1DItY0xOpGaQIQSlCg7nqW+7E8s0fYC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IUoqZpQUrHVMGhcnUUl2zUG05Z7b1gvHwHqK3o8EYAW6hAopVjbBmu6RGdPXszhm6jQ+YUVsbrMwhLxExOIOYsLSs8B863CPS09e0ln4eQ6dw5fuS8mVSqoILD8wu7FQv7U3UkfEeZlUUZmMs9279VuFqRgLBuhC9Q4xSX4WZNVvcmZ2Y= 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)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231023)(6055026)(6096035)(20161123563025)(20161123561025)(20161123565025)(20161123559100)(20161123556025)(201703131430075)(201703131520075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(201708071742011); SRVR:CO2PR03MB2357; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CO2PR03MB2357; X-Forefront-PRVS: 052017CAF1 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDTzJQUjAzTUIyMzU3OzIzOkNQKysreFVpQUFLbkNvMjdWUkJDQ1JJdVhY?= =?utf-8?B?Ynp6UG53ZTFsUjZhNklSTGs4NkxsNUlBU1RHSXdoVUxNTkxmWVFlZytlcUEv?= =?utf-8?B?UWorR2ZtUEYxRk44OU9TSEFqNmE4TFBQNjV1bkhlYnY5bDFKY1plSUdZSlN1?= =?utf-8?B?QVVRNVFIajhLZUVrT2hENjlLMDcvelhQU1prZFlKcmF2Y3B1OFVHUEJFV3hj?= =?utf-8?B?cnRsRGpMc0JiQk12TFNMNUhpc2grREpObXU4eTRzUjErUUpXVjBUUUI4LzJJ?= =?utf-8?B?NXNEU3VhMlB1RUpjL2E3TUxqMFc4SDRHek9SM2E5MHdiVDM0MWNnS1ZxempP?= =?utf-8?B?dDQ0ckZXaktDeUtuQ21LYnVkd0c2NGlMWXNSRExkdS9ZNDAzRC9LN2ZMRlZO?= =?utf-8?B?NGN5SWpkN00wdzY0N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S/NGKZNe8DQal+G95JDPIIOV2D57aZV2WKfYC5+4/qEAou3jVyvxZtf85hywEbIEVzrjathHGlW8ixZ49Pk8jxZwO4mRRQu5TLRwJn/3s8E1Yy6Gy1p+5h4 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2017 12:54:01.9241 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e31ca62c-3cb5-42b5-6e76-08d5422895bf 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: CO2PR03MB2357 Subject: [dpdk-dev] [PATCH v2 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: Wed, 13 Dec 2017 12:54:11 -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