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 B9008A04FD for ; Mon, 20 Jun 2022 03:39:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD5F5410FA; Mon, 20 Jun 2022 03:39:02 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 1D29A40150; Mon, 20 Jun 2022 03:38:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655689139; x=1687225139; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=jREOkniheDiJWHtvzkte75DCzySIbe5/9p+C2ecSILc=; b=iLr2/wFyZ4QWPIOIpQhQYloWqNlgUN4uMG0/ZERjPTnFNIHRTaEwY3Vk 0UMepPfd0H4cZ/rSRvG5DGpXVbxJNE/c5Hr3BjxRoS5hwjTKhYJ6oa1cG YlBj6F8ub6csKxrOBlT6YVS4F+ihOrvLxqUhaunhp4e4tkEAeOn7J7uWT dYLWYPd3nZVGOg+mCq9bfYLrm5u1zvha0My1xKxdNxNqTqcmfB7EfJ4Cx /Q4ZiBp90jiWYzhXJtdkhCwexjl8wcXg8wCI23hashWjt6fuLPJVl5Irj MdqA32SFUSALah6bQ4H3/A41iasKKWqiiseykrjBsiYFGaxQsa6mVdUNB A==; X-IronPort-AV: E=McAfee;i="6400,9594,10380"; a="279830730" X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="279830730" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jun 2022 18:38:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="584696143" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga007.jf.intel.com with ESMTP; 19 Jun 2022 18:38:57 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Sun, 19 Jun 2022 18:38:56 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Sun, 19 Jun 2022 18:38:56 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.105) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Sun, 19 Jun 2022 18:38:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AkEohCSwB+gOHytlNGp8qOQrBr0CyXXwgpSDMRtfvpj9EyYHNqzFNBGTMtChmEh4mu6uUPp7VT8TnhXpSMGlFhY0OJI/zXdLTAiI240ch8AJyAeW2wExSQj+hbv+UL3usPcByX/RbIlcxt8TLtEk7S1eYV3Or5UxjynwjMtyWPPejb3XcfRqaLPmVv1Lk7UT14/7ouz9pzCwcskWrnoLu/rFAmaOpKMDTKZkgLVE5QQF4aAIFvRVMN31NPOxzcW2309AmydZbsN9gjqx2+GEOILi9l0TgUkbwwlyeeM5DjoJRGwOjE3EROCUq4N8omkAb5S+etqOiDjdALPf2hnQEQ== 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=ChNPmSvOdiqHbqA7mlTS6E0b9m0EmXj3StyF1yXU1uk=; b=YFmCaU69KIoZTBuFIWVSA1/blK+EkKUi7rxiZGB2yKT/tkqdGwdEc+1V83iU7/3DUxDj7Zk+mimqqmWybgAut9xMthfV0FqCoQMIgN/cylQ4/vZ7itdmlqMd6jSoD0+kExIwx6kAP49Zd+6jiGmlKGZ8t1wyAdiEmh/Tfb8q5z0euKDBmyyQjLWo/4wY0eBYhPcEAMPfNILeQVvv9Sg7LYCR4RoXpaV3l3tbymVIfFuEdQ/dJ6rA6ZftIpDxO6CzUxnEVwRtzux9VM6/vwuedhOb5pmsEPx/c4e8f7ccR1z1LIyS/S5KkKCEByBJN+FSZl8wsMeBcf8C+XpLU+Dxhw== 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 MW3PR11MB4665.namprd11.prod.outlook.com (2603:10b6:303:5d::12) by BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.19; Mon, 20 Jun 2022 01:38:54 +0000 Received: from MW3PR11MB4665.namprd11.prod.outlook.com ([fe80::fdc5:978:be89:e4bf]) by MW3PR11MB4665.namprd11.prod.outlook.com ([fe80::fdc5:978:be89:e4bf%6]) with mapi id 15.20.5353.021; Mon, 20 Jun 2022 01:38:53 +0000 From: "Wu, WenxuanX" To: "Zhang, Qi Z" , "Yang, Qiming" , "dev@dpdk.org" , "thomas@monjalon.net" CC: "stephen@networkplumber.org" , "stable@dpdk.org" Subject: RE: [PATCH] ice/base: fix gcc 12 warning stringop-overflow Thread-Topic: [PATCH] ice/base: fix gcc 12 warning stringop-overflow Thread-Index: AQHYgWy7AMx6waeLF0KZeDyQgZ7tI61WrxmAgADaUuA= Date: Mon, 20 Jun 2022 01:38:52 +0000 Message-ID: References: <20220616103304.132368-1-wenxuanx.wu@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: 3be21915-3165-492d-11bf-08da525da200 x-ms-traffictypediagnostic: BYAPR11MB3301: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: 2L4kOz3ZRDwkrsQCo/RcO0qdSKYMh2q/S4a1d9FgFVtdjK9swwtJ8cp/Fa6Cvndjned3wakCsmzXPfIupQNFTV67RSbnnlc3WZBIzKlrzPU3tVCNISWIf+Q17I1DoOpzFsuyVG0bd4uJjEaqTnGqzhOQOuN9RMk9B0cyYqyjj+5Izz7MHDzC6cteB8EQQ6uWAduSnoXF743GbQEMOw+egSL0/4Nmyb2YjulL1WkSA7zA10AemVeW+Fk2+JAEuJnP7WUOXNWQEipKhvaMyaLQEoFF4siBvjK3nMiCkBV+vqSpl1H8SZ7uzrG9retbWuWKXkHomlCvLrr7/jiJwkNb1kD5Zq6fFfeVNZ/yytfy/1RJGuxPLXd+y+pM2cuTcq+59I5j1f/2oAEwzn5oHXd6zKa598lZQXN+0PMs3cIlwWRErHXLgca0i0SNEFHl4pfIWS6Z1rqj4i3Z0cy7ZJQ1G8uOMf3TKPrnjvRO6AK1nU/jb3LAXVn+oKqYYvOIK4u3iQoT/Ku34juFOa9Ju9ySUHFnNpAuYr7Mvy+h0V5aUT08vtcLB34l93Z49kAOkbtn9QzXDY8wkmzpabFSs83VtcMXOta7Wc4Q/02upvFVQhFdTWfXxxJ5HgFdooo2MtPr4csWUnp2TKQLrrKwAdTZ8F8kLAiHyMQnT6DU5sRLZSyqiybDo1u5w33fUpPZzw6qEnwtsXTXMQ0dQLzdasq7qQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW3PR11MB4665.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(346002)(366004)(376002)(396003)(136003)(39860400002)(54906003)(55016003)(316002)(52536014)(26005)(9686003)(38100700002)(110136005)(38070700005)(8936002)(53546011)(5660300002)(6506007)(83380400001)(8676002)(33656002)(82960400001)(76116006)(4326008)(7696005)(478600001)(66446008)(64756008)(66556008)(66476007)(66946007)(86362001)(41300700001)(2906002)(122000001)(71200400001)(186003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?UklBd1ZycUg4czcwZUlzbXdmRWwwT28xaFByeW1TeDZLZUhHVlYrblJq?= =?iso-2022-jp?B?T2NEVlhyMGRibS9zcW5BclZ5azhHTlpKODZ4SWxCUko5REVpSVJiTk1B?= =?iso-2022-jp?B?anRUdjBaRXprYTRRZFhmV3hvdmpkczJDNTZDUVQveEgzYXlEYmRXRkhC?= =?iso-2022-jp?B?NUhLVHExVS9wODZlekhKcVJkQ1g3bGdnanZXMytsdDltUklNNmxKUkNS?= =?iso-2022-jp?B?SUVGTFh2eDgxZFdrV2xLUDlHaFRvc1FnTTJMVkh5Q09mUXptUmw4WkFC?= =?iso-2022-jp?B?THFHSDVDVjNDSGZVbUpld0pHcTI0U3FKWHJDR2ExaWRFWHJQUXQ0T1dT?= =?iso-2022-jp?B?Tk9qNThDRmtJYnk3OGd1QnRFdVJ3VnY5eGkyTEY1aUFTVGpHU29CZGk4?= =?iso-2022-jp?B?WFJLWndWMFNBZEFIWkppMy9BOGNNQ3d3QnFTdnZweUhBUHpUMGN0VGFF?= =?iso-2022-jp?B?VTI3b2tkYnl6MEhsWWd0QlVoL09jdTlqWVlZbENvVVh0V2JWVENJb2Q1?= =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WRITnZaNjhEMTVSMFE4TFU1V1RM?= =?iso-2022-jp?B?MlE5ZGVJU1VFb0UrU0dXVWZac2ZPUzlqbmdhVllURk54am9OZ2I4RjNs?= =?iso-2022-jp?B?dXJXdmEyR0VOTUdqazlCN0VJTGI5bHZVdGgrR2w5NkovSVdRN0MxQ1B2?= =?iso-2022-jp?B?WGZkSGROT0FZRmhZRnhNeEdXNE9EZ29YVDA0Zz09?= Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW3PR11MB4665.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3be21915-3165-492d-11bf-08da525da200 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jun 2022 01:38:52.9227 (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: 7V2vF7j3VrVNhy9Tg4fuakkLKQrHurHU0TnjQk67J6QnF5LUOUwGJJlbecVyJ+JOkeKLnrX6zKZF5NCTMKl1UQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3301 X-OriginatorOrg: intel.com X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi all,=20 The warning below gcc 12 : inlined from =1B$B!F=1B(Bice_add_adv_recipe=1B$B!G=1B(B at ../drivers/n= et/ice/base/ice_switch.c:7951:11, inlined from =1B$B!F=1B(Bice_add_adv_rule=1B$B!G=1B(B at ../drivers/net= /ice/base/ice_switch.c:8911:11: ../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 ent= ry->fv_idx[i]; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~= ~~~~~~~~~~~ In file included from ../drivers/net/ice/base/ice_controlq.h:8, from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_adminq_cmd.h: In function =1B$B!F=1B(Bice_add_a= dv_rule=1B$B!G=1B(B: ../drivers/net/ice/base/ice_adminq_cmd.h:744:12: note: at offset 5 into des= tination object =1B$B!F=1B(Blkup_indx=1B$B!G=1B(B of size 5 744 | u8 lkup_indx[5]; | ^~~~~~~~~ In function =1B$B!F=1B(Bice_add_sw_recipe=1B$B!G=1B(B, inlined from =1B$B!F=1B(Bice_add_adv_recipe=1B$B!G=1B(B at ../drivers/n= et/ice/base/ice_switch.c:7951:11, inlined from =1B$B!F=1B(Bice_add_adv_rule=1B$B!G=1B(B at ../drivers/net= /ice/base/ice_switch.c:8911:11: ../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 ent= ry->fv_idx[i]; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~= ~~~~~~~~~~~ ../drivers/net/ice/base/ice_adminq_cmd.h: In function =1B$B!F=1B(Bice_add_a= dv_rule=1B$B!G=1B(B: ../drivers/net/ice/base/ice_adminq_cmd.h:744:12: note: at offset [6, 254] i= nto destination object =1B$B!F=1B(Blkup_indx=1B$B!G=1B(B of size 5 744 | u8 lkup_indx[5]; | ^~~~~~~~~ In function =1B$B!F=1B(Bice_add_sw_recipe=1B$B!G=1B(B, inlined from =1B$B!F=1B(Bice_add_adv_recipe=1B$B!G=1B(B at ../drivers/n= et/ice/base/ice_switch.c:7951:11, inlined from =1B$B!F=1B(Bice_add_adv_rule=1B$B!G=1B(B at ../drivers/net= /ice/base/ice_switch.c:8911:11: ../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 ent= ry->fv_idx[i]; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~= ~~~~~~~~~~~ ../drivers/net/ice/base/ice_adminq_cmd.h: In function =1B$B!F=1B(Bice_add_a= dv_rule=1B$B!G=1B(B: ../drivers/net/ice/base/ice_adminq_cmd.h:744:12: note: at offset [7, 255] i= nto destination object =1B$B!F=1B(Blkup_indx=1B$B!G=1B(B of size 5 744 | u8 lkup_indx[5]; | ^~~~~~~~~ cc1: all warnings being treated as errors Thanks=20 Wenxuan > -----Original Message----- > From: Zhang, Qi Z > Sent: 2022=1B$BG/=1B(B6=1B$B7n=1B(B19=1B$BF|=1B(B 20:35 > To: Wu, WenxuanX ; Yang, Qiming > ; dev@dpdk.org; thomas@monjalon.net > Cc: stephen@networkplumber.org; stable@dpdk.org > Subject: RE: [PATCH] ice/base: fix gcc 12 warning stringop-overflow >=20 >=20 >=20 > > -----Original Message----- > > From: Wu, WenxuanX > > Sent: Thursday, June 16, 2022 6:33 PM > > To: Yang, Qiming ; Zhang, Qi Z > > ; dev@dpdk.org; thomas@monjalon.net > > Cc: stephen@networkplumber.org; Wu, WenxuanX > ; > > stable@dpdk.org > > Subject: [PATCH] ice/base: fix gcc 12 warning stringop-overflow > > > > From: Wenxuan Wu > > > > Gcc with -O2 flag, would retrieve the value in one time. > > This patch changed the type of fv_idx in struct ice_recp_grp_entry to > > align with its callers which is also u8 type. > > > > When u8 idx[5] =3D a value u16 index[4], gcc12 would give this warning, > > because it is not big enough to store the bytes(bigger than 5 bytes) > > in one time (-O2 would do it in this way). > > > > Fixes: 04b8ec1ea807 ("net/ice/base: add protocol structures and > > defines") > > Cc: stable@dpdk.org > > Signed-off-by: Wenxuan Wu > > --- > > drivers/net/ice/base/ice_protocol_type.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/net/ice/base/ice_protocol_type.h > > b/drivers/net/ice/base/ice_protocol_type.h > > index 0e6e5990be..cfe3b62630 100644 > > --- a/drivers/net/ice/base/ice_protocol_type.h > > +++ b/drivers/net/ice/base/ice_protocol_type.h > > @@ -421,7 +421,7 @@ struct ice_recp_grp_entry { #define > > ICE_INVAL_CHAIN_IND 0xFF > > u16 rid; > > u8 chain_idx; > > - u16 fv_idx[ICE_NUM_WORDS_RECIPE]; > > + u8 fv_idx[ICE_NUM_WORDS_RECIPE]; >=20 > If you change the data type from u16 to u8 for the FV index, you'd better= also > change the type of all the symbols to store the same thing. e.g. the > parameter "fv_idx" of ice_find_prot_off. > So, what's exactly the issue that GCC 12 reported? can we fix it from the > other side without changing a type in the base code? >=20 >=20 > > u16 fv_mask[ICE_NUM_WORDS_RECIPE]; > > struct ice_pref_recipe_group r_group; }; > > -- > > 2.25.1