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 7AE1CA04A3; Mon, 7 Feb 2022 14:14:41 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1EC1E410F3; Mon, 7 Feb 2022 14:14:41 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id B6F4D410EA for ; Mon, 7 Feb 2022 14:14:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644239680; x=1675775680; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=MeHN7Wr9hd7aJvoQXU57QP6gdInyiWR2dFBMSxlcbTs=; b=acxMlOioh7O+f/NT8M69ILsGmpMq5Mx52i4xWkhGIC+pVdk/U7dnSnXg gjhLt0AoaMmkyR98twreYY8h48avyhkTazbZQzUQvnuds08jRPSUOBF8s pJKqF2ZhlS9OWXxxCNNH803FZe7Xr1wP6TGB33VllF2GlSTrrZVGDab6d fyvdsxFVaFPjfTx7Nq5T0IumKyZl91M5hnjLALKSKlzOz/Fqx5kfm8eqb 3SstvXJ1DFL8BJSyQIz3YSOXRYFHDgFyouSgX52h65gIYCrGlubbRwDQ8 iLuFNC5f5nLYgAalMKZ8Oj+eSomCoT2DE51PPzuMBXBvyX17hIuOppWYi g==; X-IronPort-AV: E=McAfee;i="6200,9189,10250"; a="236113412" X-IronPort-AV: E=Sophos;i="5.88,349,1635231600"; d="scan'208";a="236113412" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 05:14:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,349,1635231600"; d="scan'208";a="584828036" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga008.fm.intel.com with ESMTP; 07 Feb 2022 05:14:24 -0800 Received: from orsmsx605.amr.corp.intel.com (10.22.229.18) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Mon, 7 Feb 2022 05:14:24 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Mon, 7 Feb 2022 05:14:24 -0800 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.44) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Mon, 7 Feb 2022 05:14:23 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pm692QB5pueMiDroOCr/3ClgQgS0tph4WBJ2jQwTxnLOF6qUFLq4IeZmV9wKMi/xiwktSVz1Nl/W5S1pU+VRZ20RXaagjnPuZnUOmkJ/N3uZXiuHzh9MGHbfaFDj48UiZld7xUEJqI14/2IqdsDIWgueTjRNH8svwtAbjmetlMcaDdyyv7nGdWCeiscGLZo76f+LbvF0gwzaoANOCQlRnR9g65wtXRIvfJIvs1wQYgrWR9UADauMmu5vKBhhnBLouGa2NpbcE1nBdUgsRzM0O3GcoE9zOQroboQ4XxnOhtvNooycxrvOOPqFwDDD7Z/jRvKMObGUvI5DpNYeTYuNuQ== 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=l6DI6Fh5+MY45dGlTT2MrVlrDtKhiI+CtiII+uKgmg8=; b=QREz8o+iz7Y0CNuungQwDhwac1xD6wGRFPXxcEJBpMKuUBv2M7FPLwravNnsRbBebhOnM2uQbah7Lu0scFickno+ztmHsRZT+MfB819lErcBwZiYtblmuVrtSURltB7pP1KoEuZRLzvv3K4tZB/p9wj1fb0Oz72uZUgc3n+orUOGl+BKGSVqX5v3//or8s9z2mRwCVT1XRItrQX+flWCzK9Tf0eMu/Qj4x67FA7Oimn+n55BPVpoFMGpOd7zVI+8NukswHDB1vR/hQJiEv2RwqERSpN58gtuHgLcsoSnbIJ7gfBBtQpgRQlFpYyXGa1DmO/gPrFz1KoIQupr1gd6XQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from BYAPR11MB3495.namprd11.prod.outlook.com (2603:10b6:a03:8a::14) by MN2PR11MB3613.namprd11.prod.outlook.com (2603:10b6:208:ee::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Mon, 7 Feb 2022 13:14:18 +0000 Received: from BYAPR11MB3495.namprd11.prod.outlook.com ([fe80::714b:35f9:5767:b39b]) by BYAPR11MB3495.namprd11.prod.outlook.com ([fe80::714b:35f9:5767:b39b%6]) with mapi id 15.20.4951.018; Mon, 7 Feb 2022 13:14:18 +0000 From: "Wang, Haiyue" To: "Zhou, YidingX" , "Yang, Qiming" , "Zhang, Qi Z" CC: "dev@dpdk.org" Subject: RE: [PATCH] net/ice: fix gcc error with -DRTE_LIBRTE_ICE_16BYTE_RX_DESC Thread-Topic: [PATCH] net/ice: fix gcc error with -DRTE_LIBRTE_ICE_16BYTE_RX_DESC Thread-Index: AQHYG/8tvUHxWbXubEq7WRuToTe8jKyIERAQ Date: Mon, 7 Feb 2022 13:14:18 +0000 Message-ID: References: <20220207164801.2768734-1-yidingx.zhou@intel.com> In-Reply-To: <20220207164801.2768734-1-yidingx.zhou@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.200.16 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: 5fa5b1e6-67d5-4f10-b541-08d9ea3bbf88 x-ms-traffictypediagnostic: MN2PR11MB3613:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HR6iTt1wjPTI+VxEv2XkmzgsIDI3Xqc7QYZ43iTaEqyMWg72OpqJ6UjJ9JyDaFsprVtc3jhZVpea8fb6mv3SxBvhaBHRVmtquvMTnY6p7vugb9/Ud0ghlGxyPc4wWfItwjdKxnM2eayc30/Yd2sieTYUHjfhdLVCE4Odvh59u8vEnqJs7MzAVNMnWq1kGOyp4hFnApgDDI9/ixZYiPmqG8BXS8GRkIgyRDgsRS1hs1HndyvNAWLOxiglQfYsWW3n7gw3O98fI9ID58cT86f6n5X3YQYzxQWhLwtnb6VKlnhBIIp7NjT+dUKbkTuXfDXiJH7+dTcB/hl0p2Q3U+kamHiqenCHweZ9juFxIxJffI6MU3n3nkAtLB9L/HwkKVn7/TqOURoT9Yw9u4+HwMe/r54E+pJ2lGxl85x7VW1mfAxrQOeoncEsd7dIk6RARaGHQ0J3E2HDl3zQoB4Gv5dtnFczScrKAGDfYjl7AYKCCkYGm2R/+vbTJG7znhTgnG3PJhFjJ9WIz9F63ca9SRu0Aylo4O96sL923N94NDfxnQOm+xN4XOywzW8i17WadwXRJLq875Nmz2biNSLHcxgHslymEWpZLBCxDZHf2VKMAGNSX7e+H4SO/Hwcy7eJCZrvTvpfbl9Jl/ApbQpBFAENiancWyJnANqxKeEQZI1WlXY6EEqgtnYzMVrNYbH1LRT7TWzzxQwtz+9J894vUy5pHQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3495.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(26005)(186003)(5660300002)(110136005)(6636002)(38070700005)(71200400001)(33656002)(316002)(2906002)(38100700002)(82960400001)(122000001)(9686003)(6506007)(7696005)(86362001)(4326008)(83380400001)(53546011)(508600001)(8936002)(66556008)(55016003)(66446008)(66476007)(52536014)(8676002)(64756008)(76116006)(66946007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?eHMFxpwoOQJ8XcDmmN+wSele4JONNaemRL89Zint5f3QTkSo15yO1kj7Fms2?= =?us-ascii?Q?Y5lCSiR7W4e5LEy7w1dyTZdvI2SzMGpnCCoAdKGjjAlqPBHDZLuOEdhkqf3N?= =?us-ascii?Q?DK5sftiJBWcfnoq8ku/LMmuzbhNnfV5WqXMXlU0/QxAq1QaLphOCSFstQ/4t?= =?us-ascii?Q?RdcFEbgnI07kSv6kEechqj0XHVNxYqmtB1m0eRn0w22pfqO0al+YAqSAfgkz?= =?us-ascii?Q?q9mSM3AQ12Z8cx0oXwErgvBYCwKRYD40aY60qiMZH8CVhFpS/4dtR+FdLkZC?= =?us-ascii?Q?iAV7C3e8vHYEoSMcTbH8JaDLRwFuyehtaNUUnSCGcJ+kniwKVYf8dzJi7fUw?= =?us-ascii?Q?QvPDKvggJTfiV3BFdxkLZuTMIfwepl68YWPtSd3wDRSZW3wGUZ0Uwq7ATpWt?= =?us-ascii?Q?tT1aeJzidnFfy/WjJWjN7+8U0ElwjvGCiZcxSP4L0YxXjq58bxYRf3Ahnfgf?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3lPzWLCJU1BqFfpVfLmwJfHVkln1BaKivsvWFQRize8D?= =?us-ascii?Q?1VxVE7d6xTOl9e8kiTDGRzrrOhsm9m/6JgD0Txazb5unLtaFBMtXILUeVqhH?= =?us-ascii?Q?EUlbC88P5C1v0X8FroOR2MYa81iPk8OFMYcybNyGA6pwwu3bAlx7SgHKY8iH?= =?us-ascii?Q?XkvR8tJMLWgChtuusVbgRFA1ZxiVZJxjBUuXA8m3eXfhxeoZe551dYvEcDSX?= =?us-ascii?Q?kDP2v4neaxtMAgaOy1GAduBXpzEeCxnI37/8assU4SzBce7tt60p1ltZtxUN?= =?us-ascii?Q?ag=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: BYAPR11MB3495.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5fa5b1e6-67d5-4f10-b541-08d9ea3bbf88 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Feb 2022 13:14:18.6076 (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: rAfQWegLOQPK8AT3FncRyd9H3tZysrKKUXGiLF58ib0ceteclYoLeuc9RU+N4j2lZgESzvPgpjS2CEwiBJjcJg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3613 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: Yiding Zhou > Sent: Tuesday, February 8, 2022 00:48 > To: Yang, Qiming ; Zhang, Qi Z > Cc: dev@dpdk.org > Subject: [PATCH] net/ice: fix gcc error with -DRTE_LIBRTE_ICE_16BYTE_RX_D= ESC >=20 > gcc will report error "unused parameter 'rxq'" when the macro > RTE_LIBRTE_ICE_16BYTE_RX_DESC is defined. use "(void)rxq" to avoid it >=20 > Fixes: 7a340b0b4e03 ("net/ice: refactor Rx FlexiMD handling") > Cc: stable@dpdk.org >=20 > Signed-off-by: Yiding Zhou > --- > drivers/net/ice/ice_rxtx.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c > index 58700f1b92..97572d5952 100644 > --- a/drivers/net/ice/ice_rxtx.c > +++ b/drivers/net/ice/ice_rxtx.c > @@ -163,6 +163,8 @@ ice_rxd_to_pkt_fields_by_comms_aux_v1(struct ice_rx_q= ueue *rxq, > *RTE_NET_ICE_DYNF_PROTO_XTR_METADATA(mb) =3D metadata; > } > } > +#else > + (void)rxq; > #endif > } >=20 > @@ -201,6 +203,8 @@ ice_rxd_to_pkt_fields_by_comms_aux_v2(struct ice_rx_q= ueue *rxq, > *RTE_NET_ICE_DYNF_PROTO_XTR_METADATA(mb) =3D metadata; > } > } > +#else > + (void)rxq; > #endif > } >=20 " __rte_unused struct ice_rx_queue *rxq" could make the fix clean. > -- > 2.25.1