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 2735AA0093; Thu, 23 Jun 2022 11:21:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C1F3B4067B; Thu, 23 Jun 2022 11:21:12 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 6A9B44003F; Thu, 23 Jun 2022 11:21:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655976070; x=1687512070; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=SzV7buMUbekgMQP4XPKNnw9ptxrzt4tQn+VuZ4Qn7hI=; b=h46k/2LJA1xFaMi+HAQplp7mtU3NbQhVwpWQG2BBuN+ZtS6k6BBXc9fD S70RGkvyEYKsZ9i9c+AUca+0++vjCE8WvkPMJbLPyHQxFkOX4E2WeEqr3 NbNmJrUGSo5v7RgrifoMeY4mHklaY7jXuvHJmoGOWl7dgmuMzizn2ff6Y S/SKCl4ltvt57rN3G1S36EAVcbaUyBk7936pm4Tvf/fUTkBQAb4xJdNqs bN+rN2Yralvwds8XDgjCuR0aN1LM8UOQTs1YvfokjHfh6qHZ21zKg3NuU E8d2CdCmvrUbeyGJZsMpkdfRIrAOFgE1GaErq0+bhN6y+ZIw7pvH+X9Bo Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="342354411" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="342354411" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 02:21:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="615513011" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga008.jf.intel.com with ESMTP; 23 Jun 2022 02:21:08 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 23 Jun 2022 02:21:08 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 23 Jun 2022 02:21:08 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Thu, 23 Jun 2022 02:21:08 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.42) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Thu, 23 Jun 2022 02:21:07 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mRfxeG0GQd5+62miKcD9MP8rRl12692OviNAeyvfNnd/0+LT2xPL0Rl7CE/bnX5bk7QaONK95Ffls4+M7J+NbhIT6gDoUUM16NS4RB4bvVQ3HImSnQptfenlYX0YTjrxf0rHVF+rnGcuLGASmtNjD16pNxDddJh/9BzgwWqp+d7olxdSqxEdsaDkru9ZcXfGQgPwefl589jsKIBCHUPGzvQ4eCE+Lj5/THo4eCqrhUzNM8WzeMlLPzB78zJeimMaSKcHCtUTr32H8z01K1EMS88FdbGjq/DdIkuN8oNkQneQKKYWNKb+a6oLqLxriPS8h8mzFFE70ohQIfRy7RC3sQ== 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=d90CgwVmuVNsPw2sPdk0bd/hXgTeR5IYtwv6bJ1cudY=; b=XmjMyYKq4DfDZT1Z47JSl9bMAFkAfsYwlaXlAERGM9wcjS5OQdmsiJ8N65yC92lc70N/1V1mZgx9nOpyz7jRkEa3hR1gPuMUh6fiqgu5HxSoYXJdIbU+e9X2O+gHo4JcOZcqnAD6VuVa3yfsTgK2J3v9rLyatl9XRXf9UnorcJUDuAFQSDFfYZrjIymv62wWgwk2cckuBQds1AMrS3qNLKOk0m3gFVj+0iezRU9Wiiekr7a7RJOP6Bb9MMvL8HxkkBBWICz8HqMW9984mD6x7HkooKHYKv6xczNN9DSMkQ4mW7bma57m8lnMmAcpADSVvZMa6tckdep8Ba1tNcpdyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) by MN0PR11MB6279.namprd11.prod.outlook.com (2603:10b6:208:3c1::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.18; Thu, 23 Jun 2022 09:21:06 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::644f:ecd2:47d0:aa6d]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::644f:ecd2:47d0:aa6d%3]) with mapi id 15.20.5373.015; Thu, 23 Jun 2022 09:21:06 +0000 From: "Zhang, Qi Z" To: "Wu, WenxuanX" , "dev@dpdk.org" , "thomas@monjalon.net" , "Yang, Qiming" CC: "stephen@networkplumber.org" , "Zhou, YidingX" , "stable@dpdk.org" Subject: RE: [PATCH v2] net/ice/base: fix gcc 12 warning stringop-overflow Thread-Topic: [PATCH v2] net/ice/base: fix gcc 12 warning stringop-overflow Thread-Index: AQHYht/5fW6T2NhWl0ahdHGwrL74Wq1ctwKQ Date: Thu, 23 Jun 2022 09:21:06 +0000 Message-ID: References: <20220616103304.132368-1-wenxuanx.wu@intel.com> <20220623090105.645154-1-wenxuanx.wu@intel.com> In-Reply-To: <20220623090105.645154-1-wenxuanx.wu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.500.17 dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c250796f-bc57-419d-dd1f-08da54f9b386 x-ms-traffictypediagnostic: MN0PR11MB6279:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +PvKyvnhn1WSph3gA5Bc1uMhFdgBXhAd/d0xMGzvC8G6tdSjEWdbJetPlVNB/oKeqQvE7weWLUCYMh9nLDu1Qbyp0gJxDnTxN1nCCmZX5Em/Az+jUe90VLTIGp7NkoVqbVTlZbDC6W33fFp8f296L1/El0o99A1EvoppKjV0ANsHm1GwLr2okyWJBsCTIEw/2EUXjGx8UpAKqehECbPo9LTcT6uB/X/jnOke2755fLuQztDeGIBSZJjKATDW9QF43bq+7vSVT4HSQS+addoZcq2m/dsgEZztkB1c+E3Wig3/+FlyOYFPCxfbXvN7s976vyy1NdYWIYEVvLhCIBYHS6cZoAkQ5SaHl1FZIdD0y7GB3RX0dyZL21hfUuIGYMwaE43xny1QVVXLHLLo1EBg3Wa+hU+sGXCTmVoMena1MbixI35CQNJH58kf1XH4nyknRXy+UXiX2SGUZlRpoPCCDQwcRg8p/zmmnan5sQLKu1V5+qKKrc8zWLEGkcAJWqCIbMWIeyUYZGICCFdJqwaCtgGkjkZSf5XNGHAVzedBmA4dyWKgP0p7nGGP0EAi6XAQQ1KQlRs7w+qHW9iKOudd5uuo3VfvIqA2j0zIK7Bvxt5TDfvFi6p4gDqTp1MFKOuPT6vGKyJPvriqZ0NTU1DC140ZCH7uXw4u9Ob6nB6HxQN4dKZDGeZhqzRXgAWm6MGEqvVtaqWAv+5tpn/r9fE4c0gJgBkGy/6LFguyGmvaMJVOIAP4/AJEz9nKfSlXYez+ x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5994.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(366004)(376002)(396003)(39860400002)(136003)(346002)(316002)(64756008)(38070700005)(4744005)(52536014)(6636002)(41300700001)(9686003)(66446008)(110136005)(8676002)(82960400001)(26005)(478600001)(53546011)(76116006)(7696005)(8936002)(66556008)(5660300002)(4326008)(66476007)(66946007)(2906002)(71200400001)(54906003)(33656002)(86362001)(55016003)(6506007)(186003)(83380400001)(122000001)(38100700002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?QVGI8bmbK9QdaY2MoMFBJTyINc+NaTinx9w2NWPOI5KDaOlndBoalZ2vxmzW?= =?us-ascii?Q?96LCl0CP/252SSwir7uuyedn7L0viuHq8uLW3XQzMCvBNjxoLta10+0qXcmZ?= =?us-ascii?Q?lDACK+FKIX4+sjbT+sW3AAHD98ouet2c9XJAeuhHh/c87xOZ6cslM4XSC48D?= =?us-ascii?Q?dxoFQVsFX64Ro5bTxUP8YlP/N/Az5f3ANMgHJoHD6Y2jLVNQbL3j/VZWK4rR?= =?us-ascii?Q?QR9ztthuWQOE5/XZkMjjjqzwCk51A2nNaWRkC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OSUAKLdcgOT2C6WWppMkHujgIsyIfD/pnr2w7s81VU+wSY7?= =?us-ascii?Q?AFI4crF0bqU1551hrIxMXfcTp2mrktzGvzblyzrUcIS/CFDKTX3IE+1R3aVI?= =?us-ascii?Q?DkYFRkD5rx+xSrNH2AVPmooqBIeiqJajNOGijke0BIlg61hTof0q7kU5M9nh?= =?us-ascii?Q?F1pctYY1cXLIxAmuxgcEZDx43aEFOdcPzB3nIffj4ckacrggOpbHeYZJkYRy?= =?us-ascii?Q?ZCKKtKnYnxpgW5xYJXWeJkveonFPxP6H2qZn/TpNTUFGp3SPJZFcHQ7/NSFY?= =?us-ascii?Q?leNWQIQlGU76d70AuKa4mKVnrL5Pm7slj0RcmNH80Qc1XsloFVX6TtZvk3Rv?= =?us-ascii?Q?kDY+JqSB645GBw/Q3vKGUFRnv3yOjlyuhc376f258FEAr+YwmHtbPbklphBi?= =?us-ascii?Q?pKlWeGqZA9NylTfbVyhN6keu9+swYV4xAo2HeKHB6gsF9t7XOS42Yfe66zuc?= =?us-ascii?Q?Ow6E6hjon4roBI0E09Zn9dl/N0dBPrEMY6udPQC/54EUDOIQs7bhTEry5+t7?= =?us-ascii?Q?EYeb5uI6lqmrsddxCZhxit70LiBbNIJ727TV8SsixzAbRivsSR/gynzEsAs0?= =?us-ascii?Q?AwcykyXf3Q=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5994.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c250796f-bc57-419d-dd1f-08da54f9b386 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jun 2022 09:21:06.1584 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: j0Q3BB8Wu4pEASRxzhxJpjWHbBRHgfHj4JedArMyBChg6eDr1QXvdgRNfzH8gmlk5yQ1t/WcDJ06NGJzpg0PSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR11MB6279 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Wu, WenxuanX > Sent: Thursday, June 23, 2022 5:01 PM > To: dev@dpdk.org; thomas@monjalon.net; Yang, Qiming > ; Zhang, Qi Z > Cc: stephen@networkplumber.org; Wu, WenxuanX > ; Zhou, YidingX ; > stable@dpdk.org > Subject: [PATCH v2] net/ice/base: fix gcc 12 warning stringop-overflow >=20 > From: Wenxuan Wu >=20 > gcc 12 with -O2 flag would raise the following warning: > ../drivers/net/ice/base/ice_switch.c:7220:61: error: writing 1 byte into = a region > of size 0 [-Werror=3Dstringop-overflow=3D] > 7220 | buf[recps].content.lkup_indx[i + 1] =3D entry->fv_idx[i= ]; > | > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ >=20 > This patch changed the type of fv_idx in struct ice_recp_grp_entry to ali= gn with > its callers which are also u8 type. >=20 > Fixes: 04b8ec1ea807 ("net/ice/base: add protocol structures and defines") > Cc: stable@dpdk.org >=20 > Signed-off-by: Wenxuan Wu Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi