From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0059.outbound.protection.outlook.com [104.47.42.59]) by dpdk.org (Postfix) with ESMTP id 1A8781B3A7; Thu, 2 Nov 2017 11:09:46 +0100 (CET) Received: from MWHPR03CA0004.namprd03.prod.outlook.com (10.175.133.142) by BN6PR03MB2691.namprd03.prod.outlook.com (10.173.144.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Thu, 2 Nov 2017 10:09:45 +0000 Received: from BN1BFFO11FD036.protection.gbl (2a01:111:f400:7c10::1:132) by MWHPR03CA0004.outlook.office365.com (2603:10b6:300:117::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.77.21 via Frontend Transport; Thu, 2 Nov 2017 10:09:44 +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 BN1BFFO11FD036.mail.protection.outlook.com (10.58.144.99) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Thu, 2 Nov 2017 10:09:44 +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 vA2A9bnR031572; Thu, 2 Nov 2017 03:09:42 -0700 From: Hemant Agrawal To: CC: , Michal Kobylinski , Date: Thu, 2 Nov 2017 15:38:52 +0530 Message-ID: <1509617335-6354-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> References: <1509617335-6354-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: 131540909847496220; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7966004)(346002)(376002)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(85426001)(189998001)(316002)(50986999)(2906002)(2950100002)(36756003)(4326008)(68736007)(50466002)(6916009)(23676003)(5820100001)(106466001)(105606002)(54906003)(76176999)(2351001)(2870700001)(33646002)(50226002)(6666003)(53936002)(8936002)(86362001)(97736004)(498600001)(104016004)(77096006)(8676002)(81156014)(81166006)(5660300001)(47776003)(305945005)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2691; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD036; 1:G/ihgvhQkM1Tx+7cDI4PXsntozwhpIVI0g0ztLanqIuwX7dkakXq7PI3QbLn1FQ66i17ZlZRYtHIi8tHjX0jTKVEcz5ZlPdr0BgGf9kFyIs8m9qKFlwSy/Kopx2GsBiH X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 58b6753e-f3fb-418d-461c-08d521d9d75b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603238); SRVR:BN6PR03MB2691; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2691; 3:qAtzSXeMldBH7U2u9I9ro5Ys0Mtt0sJ2LeTsfmCZ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v4u61ImOI3DP8/DTtrR5k/e20lZloHbfBt4L9WB9ElXBVycMEkcW0OQXOiewVFAm3fQYsa+pRJtd2sHT23MCAdDVZHza1/U6y4DLg1HvvqgXBnmU62HAt9wSoAIxqKf06Qce4dtNW/JgkGaQAqbI3ZKYLINoq9hwvqvA/yW6uuvWqdb1SpcFXZH1ksCc94Vbawkk3qz30+N/Mmmfj+FVXfIJ7j/M/BG+tbtK6MkmRq6pbq/tIleAxbHX0PO+K/BIi48nsVVT4tthE7+XpU= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231020)(100000703101)(100105400095)(3002001)(6055026)(6096035)(20161123563025)(20161123561025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123559100)(20161123556025)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB2691; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB2691; X-Forefront-PRVS: 047999FF16 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjAzTUIyNjkxOzIzOjBpVFNIUlFaeXBYelVVTU9aZVdxS3hFUTZz?= =?utf-8?B?Y3BUbmY4ZTl2K3N5djQ4Y2g3SDdka1JpbTM1a01GRHNJdlBXd0EyazJDVWtK?= =?utf-8?B?a0tmQkU5djFzMGhiSjR4ckk4Q1FLRkFpUHRxYlJCV3k1YmNpeVNyR0R1dngy?= =?utf-8?B?KzJGWVkrcUlRVXl6bmtYdC9mOEx6OFZHUFJ5dTdqeEdTYVk3cm51NTBjbTdP?= =?utf-8?B?RXZVTyt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XGojVZIXURLg4M0t26m6EcSCZoEpe/SefRKLy36D0cOa6MRXm7zW6JH2yxsGzCRA=; 24:s3tgQleKyWsTSmwQg7F435nwIayalgFsPI3mT6+enymhYi/FvwtT3uXz1IxiZFupIlT6jq0sAcdrJ21Az4a2fOc/wcrrX8nrJMy8qqJUq20=; 7:mVsai8da18ZveuJrvfrUJKwCNFqy61CUGKq7JA0lNxVHkCMBJR+NiFgOxfGvV2/zeep1sswyUqQEB7vE7wS22F6PDVPxeV3ejFZIT//IXZ/+9QlZ8ivPsWqvTs3na+xmO+UktE4a9TjsLGJ75WeaqpMiHLIt3U1O7R+s9auIWzb+ZRX/B+5WvQQfNFynFj0zx9citFf1SB3C94EeSegtsu6g4Ox7ETBddtUFsiD30RqfJ4wSY4dhPHzq1pZKkH9Q SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2017 10:09:44.5780 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 58b6753e-f3fb-418d-461c-08d521d9d75b 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: BN6PR03MB2691 Subject: [dpdk-stable] [PATCH 2/5] lpm: fix compilation on ARM BE X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2017 10:09:47 -0000 Compiling on ARM BE using Linaro toolchain caused following error/warnings. rte_lpm.c: In function ‘add_depth_big_v20’: rte_lpm.c:911:4: error: braces around scalar initializer [-Werror] { .group_idx = (uint8_t)tbl8_group_index, }, ^ rte_lpm.c:911:4: note: (near initialization for ‘new_tbl24_entry.depth’) rte_lpm.c:911:6:error: field name not in record or union initializer { .group_idx = (uint8_t)tbl8_group_index, }, ^ rte_lpm.c:911:6: note: (near initialization for ‘new_tbl24_entry.depth’) rte_lpm.c:914:13: error: initialized field overwritten [-Werror=override-init] .depth = 0, Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field") Cc: Michal Kobylinski Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- lib/librte_lpm/rte_lpm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index 140dbb2..3723743 100644 --- a/lib/librte_lpm/rte_lpm.c +++ b/lib/librte_lpm/rte_lpm.c @@ -913,7 +913,7 @@ add_depth_big_v20(struct rte_lpm_v20 *lpm, uint32_t ip_masked, uint8_t depth, */ struct rte_lpm_tbl_entry_v20 new_tbl24_entry = { - { .group_idx = (uint8_t)tbl8_group_index, }, + .group_idx = (uint8_t)tbl8_group_index, .valid = VALID, .valid_group = 1, .depth = 0, @@ -959,7 +959,7 @@ add_depth_big_v20(struct rte_lpm_v20 *lpm, uint32_t ip_masked, uint8_t depth, */ struct rte_lpm_tbl_entry_v20 new_tbl24_entry = { - { .group_idx = (uint8_t)tbl8_group_index, }, + .group_idx = (uint8_t)tbl8_group_index, .valid = VALID, .valid_group = 1, .depth = 0, @@ -1366,7 +1366,7 @@ delete_depth_small_v20(struct rte_lpm_v20 *lpm, uint32_t ip_masked, */ struct rte_lpm_tbl_entry_v20 new_tbl24_entry = { - {.next_hop = lpm->rules_tbl[sub_rule_index].next_hop,}, + .next_hop = lpm->rules_tbl[sub_rule_index].next_hop, .valid = VALID, .valid_group = 0, .depth = sub_rule_depth, @@ -1669,7 +1669,7 @@ delete_depth_big_v20(struct rte_lpm_v20 *lpm, uint32_t ip_masked, } else if (tbl8_recycle_index > -1) { /* Update tbl24 entry. */ struct rte_lpm_tbl_entry_v20 new_tbl24_entry = { - { .next_hop = lpm->tbl8[tbl8_recycle_index].next_hop, }, + .next_hop = lpm->tbl8[tbl8_recycle_index].next_hop, .valid = VALID, .valid_group = 0, .depth = lpm->tbl8[tbl8_recycle_index].depth, -- 2.7.4