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 391A942AD3; Thu, 11 May 2023 08:55:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 98B4142D5F; Thu, 11 May 2023 08:55:00 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 1D10540C35; Thu, 11 May 2023 08:54: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=1683788099; x=1715324099; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=YpK+FlqqD87cDr0+6WxFsLPDAny1CKGbKuOxwgfrruE=; b=NrRSsfHcKvF1SGVhU8md+2YyU/S3KV3qINeRo+3SJB41YOn/pa8h6VZb 7K0ZXM4wodK85XNJUe2++vGdiCl0QW3IuyodtKRO0gDcgk7LgTRZad/j/ /1mKQq8bBOolIAOJeAVs1zKmPCiQyFWgA1irujxCXA6jTNGVgYKq2mpC1 jj/TQYfiwpDBJd0zvVo352ez96NpXFWCUjuqWghguqr4fLDbg51/BLJhW X6rWX6k+YDxhSaFVsXxWDytMCilftOE2dXVROfmBkIwM289ZCDMvJ8evb OkMfIJpHU+44vDbftF8cYwCwvlYHk1241epY1KNoDDB4+DXbX5ylLqCEi w==; X-IronPort-AV: E=McAfee;i="6600,9927,10706"; a="413741311" X-IronPort-AV: E=Sophos;i="5.99,266,1677571200"; d="scan'208";a="413741311" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2023 23:54:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10706"; a="677148454" X-IronPort-AV: E=Sophos;i="5.99,266,1677571200"; d="scan'208";a="677148454" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga006.jf.intel.com with ESMTP; 10 May 2023 23:54:38 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 10 May 2023 23:54:38 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Wed, 10 May 2023 23:54:38 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.45) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Wed, 10 May 2023 23:54:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ggJYOKoOmiD3hP+3HtkhlWbGgBZ/kd9eccE7g6F1/2pk8bjA4sJtolCq6lym8Op7pPwjECF6iLzPEUUW/YW3DjCrXmvSHCbr0P0prdftDxRSTxxujyRJ+xp2KScxOLJxUEX5cGHFLwSDUAM/PITEr9jyenIbX0TYJefU4MGsCovB6m0LSxmsk3hqrlw20QYnfnO9oRhcA28ozYlB2LunKDKGC9UZ/dens8soG95fnyTGCWpFRPA2GZwaFlsjw7bPXEUj7xeQ3wcvRVD3ppfllA05eg0JN0oubZDC1ofnW0bMPiHZF8mmmckRMJH6fCSUTN8KHXws2+eKxSwa/ctlIw== 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=5xPA/OfFr0xFmWqcJfjYfn/F52X2rYS8xSZRvKN7av4=; b=Emw9LSgzFdFEOgRSiAcf2SiQ1P6IbiCgEo5xTRkh8NGM12xtKFWmX0dhfvjHF4Z1dDclFCEw7VPrOpBR/kfOom9YSWjSnzH7canRzmLrEoqb8zQHb1QbsXUP3rzw2S4hr5R7jRytdGhTXs+VRM6p1LLLSLWN6FOdBm6KLAv9FUQIZwRbfw3oqSLa65CDY1W77h+clu7o6a9mvjI8aLetICYX5xUe3CHXCERyss92pGwNWxN/inreIVfzTUn+j82LDpgtsMLF47P9ioB3xHnNcQdUq3oHCKZL+rJcF+2Vjz7iTQd7YUlYeIDDas32T9jk9LPAmSGBsop1cN/zIfgU9g== 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 MW4PR11MB5799.namprd11.prod.outlook.com (2603:10b6:303:181::17) by SA0PR11MB4749.namprd11.prod.outlook.com (2603:10b6:806:9a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.20; Thu, 11 May 2023 06:54:36 +0000 Received: from MW4PR11MB5799.namprd11.prod.outlook.com ([fe80::38ee:44ae:9445:233f]) by MW4PR11MB5799.namprd11.prod.outlook.com ([fe80::38ee:44ae:9445:233f%7]) with mapi id 15.20.6387.019; Thu, 11 May 2023 06:54:36 +0000 From: "Gao, DaxueX" To: "jerinj@marvell.com" , "dev@dpdk.org" , "Wu, Jingjing" , "Guo, Junfeng" , "Li, Xiaoyun" CC: "thomas@monjalon.net" , "david.marchand@redhat.com" , "ferruh.yigit@amd.com" , "stable@dpdk.org" , Ali Alnubani Subject: RE: [dpdk-dev] [PATCH v2] examples/ntb: fix build issue with GCC 13 Thread-Topic: [dpdk-dev] [PATCH v2] examples/ntb: fix build issue with GCC 13 Thread-Index: AQHZfmYPo8ZoJ2v3b0G8TSFO5PsaMK9Urflw Date: Thu, 11 May 2023 06:54:35 +0000 Message-ID: References: <20230502135045.3541570-2-jerinj@marvell.com> <20230504085337.3446264-1-jerinj@marvell.com> In-Reply-To: <20230504085337.3446264-1-jerinj@marvell.com> 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-traffictypediagnostic: MW4PR11MB5799:EE_|SA0PR11MB4749:EE_ x-ms-office365-filtering-correlation-id: 92c852e7-de99-4664-45cd-08db51ec950e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: KndabzGjKfkcfQ7qeBYEytxdy51FRbEN8yZ5wVISwaoQKQXVTq3MwK3mWSMC6Amorgi7A0p3Eh0gNRO33n84SYjt2IS2HA1zfDJcdZxF9KM99mf9Mz2zhWhTOkbnQONZqXvcdj6Dxy9GxxNL/zI+Ic8htyp6skhZZ/Q3CFrwY6b+kmLNmWuGd9e66AtaupE5ItwqRJoje6nW4NEMhnILidtLNvtZp4BXaypMRw7pKSJU6/P6+9NiVUE6zQ1fhscgxVK5+IQlH6CoYCYURl0kgTa67tG/VUdTLRo7XxPXoF4glCJrs0FsvE/1VAdJJsDZhT8ZcrRQg0UtuZn684lOik3+rMdw1cZF6o00zUI90QEe8gPrJ1CNtuX7kYzwclusitmScVDXUr6uhl2I2y2JpSfBl32B0Zr56xbdH1qG2up/AQ/BMpLEzGv/B6cm7sh9tiQJRBmGO4TOqRNf00bCr8vFo9kF9nsuSEWpGfM1ElYrMvBKNVCMUBC/yy169JHMXrz9Kmw7Mb0oMtpT7RPmGJFs0uz8LUSAsZr+xjOapdtsFPuei+k8HCW3xEmR7OHqvPWKdB715weeo+B/PU2t5XCaxdPASATzG9vhaORYRzYGYC5kh0Gub9hjgUGCeEYf x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR11MB5799.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(39860400002)(346002)(136003)(366004)(396003)(376002)(451199021)(54906003)(110136005)(478600001)(86362001)(7696005)(316002)(66946007)(4326008)(76116006)(64756008)(66476007)(6636002)(66556008)(66446008)(83380400001)(8676002)(41300700001)(122000001)(33656002)(8936002)(38100700002)(38070700005)(52536014)(55016003)(82960400001)(71200400001)(186003)(2906002)(26005)(5660300002)(6506007)(9686003)(53546011); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?QWFPbWRiZnNGS0NXUGZpVDZyRXc1bU5wcCtXd29sM3l2bzhha2hNKzJq?= =?iso-2022-jp?B?UmhIbFV1T3crMDZZcy83Nit0YVN4aGFWdmYyQXJyZk9jbFV0eHJoZkYy?= =?iso-2022-jp?B?OTVkcFdyM1ZmaW1CbEpVS0NsQ05hMjNsMzdkaGM5Yi9OZ2k1Y0pYY01L?= =?iso-2022-jp?B?MDNaaXJnTEpyczhLZ1VWT0NKcm44M3NhR05oVHM1RThPNU01eFd1QndW?= =?iso-2022-jp?B?Z0NWa1d5YW1tVG0rM0dBTXJmcHl1SDNQNXhjaTUrSWlMNkNjTEw4emxp?= =?iso-2022-jp?B?YnFsbjhWaUxRS1BMcXVXam13Ykc1VUF3ekZ5YzkwQlZwQ3NTNzJuQjBw?= =?iso-2022-jp?B?SktpM1NvU3hhVmZMYjMwZW90dStVY2x3dm9aL1I5ZG55UlF0dTYyc0lF?= =?iso-2022-jp?B?Z09lamRQWiszSTd2R0NuTTFIdytkUU56bEl2ZnRkZnVyLzRjNjRkb2x0?= =?iso-2022-jp?B?WGZreFpJbDFHQmJLbkgrMEh4bzNDN21NNXVxYWsyYWt3Z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2022-jp?B?cDI1SA==?= 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: MW4PR11MB5799.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92c852e7-de99-4664-45cd-08db51ec950e X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2023 06:54:35.7682 (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: 97rsiWyvhaiEbI89PWBRWR48GxRfi/ieUT4zOXvWiOE4eqp4s3lnNtEkDit7K4kr3R3uW7N9IUf/lbfZTvXLRg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4749 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: jerinj@marvell.com > Sent: 2023=1B$BG/=1B(B5=1B$B7n=1B(B4=1B$BF|=1B(B 16:54 > To: dev@dpdk.org; Wu, Jingjing ; Guo, Junfeng > ; Li, Xiaoyun > Cc: thomas@monjalon.net; david.marchand@redhat.com; > ferruh.yigit@amd.com; Jerin Jacob ; stable@dpdk.org; = Ali > Alnubani > Subject: [dpdk-dev] [PATCH v2] examples/ntb: fix build issue with GCC 13 >=20 > From: Jerin Jacob >=20 > Fix the following build issue by not allowing nb_ids to be zero. > nb_ids can be zero based on rte_rawdev_xstats_get() API documentation but= it > is not valid for the case when second argument is NULL. >=20 > examples/ntb/ntb_fwd.c: In function 'ntb_stats_display': > examples/ntb/ntb_fwd.c:945:23: error: 'rte_rawdev_xstats_get' > accessing 8 bytes in a region of size 0 [-Werror=3Dstringop-overflow=3D] > 945 | if (nb_ids !=3D rte_rawdev_xstats_get(dev_id, ids, values, nb_ids= )) { > | > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >=20 > examples/ntb/ntb_fwd.c:945:23: note: referencing argument 3 of type > 'uint64_t[0]' {aka 'long unsigned int[]'} In file included > from ../examples/ntb/ntb_fwd.c:17: > lib/rawdev/rte_rawdev.h:504:1: note: in a call to function > 'rte_rawdev_xstats_get' > 504 | rte_rawdev_xstats_get(uint16_t dev_id, >=20 > Fixes: 5194299d6ef5 ("examples/ntb: support more functions") > Cc: stable@dpdk.org > Signed-off-by: Jerin Jacob > Tested-by: Ali Alnubani Tested-by: Daxue Gao