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 DE199A04AD; Tue, 8 Feb 2022 08:38:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A76D74014E; Tue, 8 Feb 2022 08:38:20 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id B483140141 for ; Tue, 8 Feb 2022 08:38:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644305898; x=1675841898; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YplNRDujS7NrVb+J3jBxdGBMlZe1hDDXHtQsbdKS9ss=; b=CGY0CWu54joGI5bZchN6sFj2fInskdLnOvIJf5/8sUjh5vka/rTSxd4J /YkGfphsqujxvehlHI4bAgYmyux7eIppXp4i+NEMinoShNmnKbx5+xTCH 0zYARA5zClHxic+1esoaIAi68H1SI2Fysnh87khARz9xxdx3KI+4TEWff rO/AAc7RIxw4+AfMGfVKCVdMg1y/+P1NBUMFLxRzSeKUPG05nLIoU+YT2 aZk/KdAMZSpPNoRYGMtihTMZ6Ma+C80GIT9C8IHXc5omONw+93d+1NGv0 Y0Z74f+hRF8R3LQXrz0OCXb/giMd/YXd3qzkb6cvUBgLlm5lQrYnMlH8k A==; X-IronPort-AV: E=McAfee;i="6200,9189,10251"; a="335295226" X-IronPort-AV: E=Sophos;i="5.88,352,1635231600"; d="scan'208";a="335295226" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 23:38:17 -0800 X-IronPort-AV: E=Sophos;i="5.88,352,1635231600"; d="scan'208";a="678022637" Received: from unknown (HELO localhost.localdomain) ([10.239.251.174]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 23:38:16 -0800 From: Yiding Zhou To: qiming.yang@intel.com, qi.z.zhang@intel.com Cc: yidingx.zhou@intel.com, dev@dpdk.org Subject: [PATCH v2] net/ice: fix gcc error with -DRTE_LIBRTE_ICE_16BYTE_RX_DESC Date: Tue, 8 Feb 2022 15:42:19 +0000 Message-Id: <20220208154219.266278-1-yidingx.zhou@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220207164801.2768734-1-yidingx.zhou@intel.com> References: <20220207164801.2768734-1-yidingx.zhou@intel.com> 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 RTE_SET_USED 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..4f218bcd0d 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 + RTE_SET_USED(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 + RTE_SET_USED(rxq); #endif } -- 2.25.1