From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 88080A00C5; Thu, 25 Aug 2022 10:08:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6777240DFD; Thu, 25 Aug 2022 10:08:06 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 61FC540156; Thu, 25 Aug 2022 10:08:05 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27P696LM009516; Thu, 25 Aug 2022 01:08:01 -0700 Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2102.outbound.protection.outlook.com [104.47.55.102]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3j5p25v5hj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Aug 2022 01:08:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i/7AD351J4ufVvHzznoV2lIqmDqPhITwR0wjqoUoZlwBOw8nOzo5cyjf8unRkhcfuI/5e8YshJOi2Jm/Jf/YorB32KVTa8JYt5aIqe0kzpVlhzlB8tx2apOqo/HA+kbw6ZsqzmTrHIhfSN/91quq3UEfhLZgbhP8dTUcUIhIvoBXYLGujwVEotQBlhU14JLNhsW8pRZU3klD0x/Bi4K/sD1HPF4RH60nMQ8X+wdSlmfwboO4KcbaO9HXqZBQxBiabJTOD+kmCqoF/jIjOIKdMpeFE3pCuNGM5dRNxoNMILvWjuJdBJUwxiRPjjHClVk7qqlYtiR6i4cSNa5UvSce7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IoEOPQVJrDctlk+IOedTYk16fxZKSvREQqxZxp0ome8=; b=Nt5IXxhYS8Exm51+q9kNBsOoYi3NmNuJ59XJlp1yTwcikIVyIEQtYlqkMrnRocM0IptNfasWs2LNdFYEbnTbbDVAbQJxwVf2z24fh+RNOV6vHoX27Z+AMTBXS9bEce6o6pW990A7TDZDDP43FUuKS0O+5c13pFQwVEkF9i7ayGjWWOEiAvF7sQqO3PJForw1Ov/vYiBN0X1wAhnZvV2MG7uzgIRlVqlycMGOqH37Fzkeh4P/xx7tF64QjyxYiMYDjKpeGSJIjjlbPao1QSmqQBlv6uBBP+D6vkrX2h+Df3Laj0zH8GB4xkMOMIddnunvNVN2yEcju88g2zEBN7eKdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IoEOPQVJrDctlk+IOedTYk16fxZKSvREQqxZxp0ome8=; b=HeIh25qy5tWfxEpoJn6p6rvZlVMUdztjP82yskhOhBC6SX0uTjEG6RMRbQ+gN2j7Iqp+51QKGqhAYHq75kP53Jc+msxGgfUpB9oFTjTWQQycdA2uorQZ+MZ5NlDN99gGge/Vo2ppsY/XXRitaZqqSXE0MX/mijQTUrP+8l6ATV8= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by PH7PR18MB5031.namprd18.prod.outlook.com (2603:10b6:510:15d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Thu, 25 Aug 2022 08:07:59 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::b0e9:25a1:1aea:4382]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::b0e9:25a1:1aea:4382%9]) with mapi id 15.20.5566.015; Thu, 25 Aug 2022 08:07:59 +0000 From: Akhil Goyal To: Amit Prakash Shukla , Radu Nicolau , Ruifeng Wang CC: "dev@dpdk.org" , Jerin Jacob Kollanukkaran , "stable@dpdk.org" , Amit Prakash Shukla Subject: RE: [PATCH] examples/ipsec-secgw: compilation fix for GCC-12 Thread-Topic: [PATCH] examples/ipsec-secgw: compilation fix for GCC-12 Thread-Index: AQHYt8DKcQh43KKCHE2ZZqZZbaiRUa2/Q8Gg Date: Thu, 25 Aug 2022 08:07:59 +0000 Message-ID: References: <20220824135230.2581478-1-amitprakashs@marvell.com> In-Reply-To: <20220824135230.2581478-1-amitprakashs@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ded2cb0a-ae3c-40f8-12f1-08da8670ecf2 x-ms-traffictypediagnostic: PH7PR18MB5031:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gmyOJxG3CHFYadV/ywBDVokQsH4nng3l783mL7QKxQcA4dqHuI6wcAeGPCj8+lEqnXrTz+vVo3seVu1Hr5hBPa7IeYBV7FVCY1XUVHH86Wvm263MUpaJ4/o5e37TWKV3l2ieNlAZZ7MSx4NE904kTZ+pAcRVpuffJDXvUHqZrTVAkBCHEjkK3m3sNNEMVHZ2DCxdvD1ETVASX2jYJ/FTe93dsctdbG3oxkXXMIUXqVL2EraCdjRMV3CJf+T4qV9tvQ/33jdNMCMsfaU2Tvt8/FQqOy9EvLgikY+pRXTUr7UA657EIzsRGo39ZbhJCIf8UKpbIdnmgRK3l71xUcCTizLarvUJi0DeI1Y4iZ1R48FAVaP1VEnhyMRGJj8DEgOfCGHzOAFVDD6rKNDKk4/bXvwoxFmjRHXsO2SoHgGW0+9yNftTbwgEg35G+6eshhIDYKHMk7WRFcDRYF7ZqvquWbMEgQiW4sKD6fxq9xru/cUr9QwPN9Gw1TGfeMo3g6TmnWT+kIer7PubKCepO7Hg5hgv/bTJkekS89YN2JNGTtG8L1Q6FV4m8FOoxEPdF497/CkNl8BgErxlME2lrnB0+rNGkslqPkAMOit9ggbZUYGq+yTRwQRqI2fAZ0t1p/v+NqJhWJ0nYSo015D9+XHaiSDWuLpz4k8iUqeXAj/k04CMC+qhGFfvYBgw//lAcQMtxU6ePzzuex9/z9abfBHrrdNotamOmlb4wYz4h7sBJV8PUG6x/oPUtChhiCzD9UoQeQEt2FuTmpQ01Hg+fwxGiw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(396003)(346002)(376002)(39860400002)(366004)(136003)(6506007)(83380400001)(7696005)(9686003)(26005)(55236004)(33656002)(2906002)(186003)(86362001)(38070700005)(55016003)(41300700001)(122000001)(71200400001)(54906003)(38100700002)(316002)(110136005)(52536014)(76116006)(5660300002)(478600001)(8936002)(64756008)(66946007)(66556008)(66446008)(4326008)(107886003)(66476007)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?UcssFDvsvAGLyfd23WvrJ+1C8YZ9QcVuCmLdZCUyxy1T6zoiY8TUAg37qfq3?= =?us-ascii?Q?IWn8D2uTwxaJQS+f6wfb4qMTh/D87lUmqd8gdHpixLVG13zDIBVkyV5S/imU?= =?us-ascii?Q?424jXOYwJp4I5lDFzTPTZlxmzobsDB/3AH9nZTrV2ibOBRy1VDbHgtSJ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86YXSyNtXBa3dk6/T1VBOkelnoXs?= =?us-ascii?Q?oNYrGBoNa/cy1fe4Q+GCHtrAsELBUi4GpdWk6GWGjILV7AkGmdbApRh85gQ6?= =?us-ascii?Q?ZO6X/l49Q4CBvKJzx0v2MYAoJgoxqTDHPfRSUhkxZJxiudWZVSyf8c4kHlM9?= =?us-ascii?Q?/H6PhyHar5CdAXDn2aLmHNE0UAjHkqqRYAPgf3lsvKARAIyqgQ2jYMOLpdyH?= =?us-ascii?Q?s3VTPT+8JbHfZH6v9CMLID1tJsP2Wblc2rL1xU8V1tvaseS2GGtKG3iMopZc?= =?us-ascii?Q?LKkkzltQXLV6438qVS6ywSAH9Qzpd03tHq5oDZV8UXNharpFhTu7WGTH9kuv?= =?us-ascii?Q?JVI5aymb8+IVlBCy/+VY8fmt+FeHHX65tDfG7uTT6q8DU98P+d7mOPVahXP1?= =?us-ascii?Q?XeJ99leoRA5pKGQhEr3jKTGdbCCUI5MvrF0jAlMQDf0zHTtL7kCRlOxH/YQN?= =?us-ascii?Q?CpCWUFsIp1skmh4xTMgtBct9hppxzb5P54aRLUqDpymNVgf1YosJ8dbJgQy4?= =?us-ascii?Q?ORfG+7xMMIx+ZWqP3WQBL48bCbzsydqGq14BOuHC?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ded2cb0a-ae3c-40f8-12f1-08da8670ecf2 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Aug 2022 08:07:59.5936 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: CMxqZCG7YzW0BurDIMpjJBj7iL2anVKQkrB4EwHWTMa0pTwcM/tvpettWBDBrd21nAvCbTBNZDPvB387CCiSxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR18MB5031 X-Proofpoint-GUID: CmWpv_MnvljXHr78VZXcyFMa_XofIw5i X-Proofpoint-ORIG-GUID: CmWpv_MnvljXHr78VZXcyFMa_XofIw5i X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-25_03,2022-08-22_02,2022-06-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > Subject: [PATCH] examples/ipsec-secgw: compilation fix for GCC-12 >=20 > Typecasting uint32_t array to uint16_t and accessing it as max array > size(at time of declaration of uint32_t array) causes gcc-12 to > throw an error. >=20 > GCC 12 raises the following warning: >=20 > In function 'send_multi_pkts', > inlined from 'route6_pkts_neon' at > ../examples/ipsec-secgw/ipsec_lpm_neon.h:170:2, > inlined from 'ipsec_poll_mode_wrkr_inl_pr' at > ../examples/ipsec-secgw/ipsec_worker.c:1257:4: > ../examples/ipsec-secgw/ipsec_neon.h:261:21: error: 'dst_port' may be use= d > uninitialized [-Werror=3Dmaybe-uninitialized] > 261 | dlp =3D dst_port[i - 1]; > | ~~~~^~~~~~~~~~~~~~~~~ > In file included from ../examples/ipsec-secgw/ipsec_worker.c:16: > ../examples/ipsec-secgw/ipsec_worker.c: In function > 'ipsec_poll_mode_wrkr_inl_pr': > ../examples/ipsec-secgw/ipsec_lpm_neon.h:118:17: > note: 'dst_port' declared here > 118 | int32_t dst_port[MAX_PKT_BURST]; > | ^~~~~~~~ >=20 > Fixes: ce23f7ceec6b ("examples/ipsec-secgw: add support of NEON with poll > mode") > Fixes: dcbf9ad5fdf4 ("examples/ipsec-secgw: move fast path helper functio= ns") > Cc: stable@dpdk.org >=20 > Signed-off-by: Amit Prakash Shukla > Change-Id: I083405d2c083cb1228e1a0126240937675a44cd9 Change-id need to be removed. Will remove while applying. Acked-by: Akhil Goyal > ---