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 52CD0A034F; Mon, 7 Feb 2022 09:44:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D5A4C40DDA; Mon, 7 Feb 2022 09:44:38 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id B54094069D for ; Mon, 7 Feb 2022 09:44:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644223477; x=1675759477; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=0u0i8StwaSgdqb6FCJAgttGKEUZLpoOyTOGmW6qRiIY=; b=LE537Cld45uIam6e2/hN80Q7L6/jwJJJM3Zm78sqiq+ZdeDuGK26MCDY YYv1MWXqTbZLV7PXp0o5uj103HhTteO3fzYequxkdlBEZR2hM/Jg8EWgp AIqW+K5saJ5lh3Wq0Be+ZQ2j8eCAQdooiZwgpVU4RfuxjBe92rPWvSnEe uTopoN9DTVdgitHOi3332924Zxsy42c3qGEaYvwbhmoiBAN3D5AJylh5g j/OICQFkhXlx+cJ0FgnrX0PVXReJ3DN5rLaP56ftc5NS4dSKqY07wIFrF HgHEg88ln0iYXA5Z3y+dh8Sz9w4gc6lo4Q2XmFIDidpZfXnMAGKgYD7RA A==; X-IronPort-AV: E=McAfee;i="6200,9189,10250"; a="229321843" X-IronPort-AV: E=Sophos;i="5.88,349,1635231600"; d="scan'208";a="229321843" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 00:44:36 -0800 X-IronPort-AV: E=Sophos;i="5.88,349,1635231600"; d="scan'208";a="525054900" Received: from unknown (HELO localhost.localdomain) ([10.239.251.174]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 00:44:35 -0800 From: Yiding Zhou To: qiming.yang@intel.com, qi.z.zhang@intel.com Cc: dev@dpdk.org Subject: [PATCH] net/ice: fix gcc error with -DRTE_LIBRTE_ICE_16BYTE_RX_DESC Date: Mon, 7 Feb 2022 16:48:01 +0000 Message-Id: <20220207164801.2768734-1-yidingx.zhou@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 gcc will report error "unused parameter 'rxq'" when the macro RTE_LIBRTE_ICE_16BYTE_RX_DESC is defined. use "(void)rxq" to avoid it Fixes: 7a340b0b4e03 ("net/ice: refactor Rx FlexiMD handling") Cc: stable@dpdk.org Signed-off-by: Yiding Zhou --- drivers/net/ice/ice_rxtx.c | 4 ++++ 1 file changed, 4 insertions(+) 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_queue *rxq, *RTE_NET_ICE_DYNF_PROTO_XTR_METADATA(mb) = metadata; } } +#else + (void)rxq; #endif } @@ -201,6 +203,8 @@ ice_rxd_to_pkt_fields_by_comms_aux_v2(struct ice_rx_queue *rxq, *RTE_NET_ICE_DYNF_PROTO_XTR_METADATA(mb) = metadata; } } +#else + (void)rxq; #endif } -- 2.25.1