From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id EECC18DA8 for ; Wed, 28 Oct 2015 17:08:18 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 28 Oct 2015 09:08:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,210,1444719600"; d="scan'208";a="821555692" Received: from sie-lab-212-222.ir.intel.com (HELO silpixa00366884.ir.intel.com) ([10.237.212.222]) by fmsmga001.fm.intel.com with ESMTP; 28 Oct 2015 09:08:02 -0700 From: Harry van Haaren To: dev@dpdk.org Date: Wed, 28 Oct 2015 16:08:00 +0000 Message-Id: <1446048480-9139-1-git-send-email-harry.van.haaren@intel.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH v2] e1000: mark rxq with RTE_SET_USED X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2015 16:08:19 -0000 This patch marks rxq with RTE_SET_USED in rx_desc_hlen_type_rss_to_pkt_flags(), when ieee1588 is disabled. Previously a compilation error occurred on unused-parameter. Fixes: 1ce6591e238a ("igb: fix ieee1588 frame identification in i210") Signed-off-by: Harry van Haaren --- v2: Fixed Fixes line (the irony) drivers/net/e1000/igb_rxtx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index 66bc3f0..d734a19 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -732,6 +732,8 @@ rx_desc_hlen_type_rss_to_pkt_flags(struct igb_rx_queue *rxq, uint32_t hl_tp_rs) pkt_flags |= ip_pkt_etqf_map[(hl_tp_rs >> 12) & 0x07]; else pkt_flags |= ip_pkt_etqf_map[(hl_tp_rs >> 4) & 0x07]; +#else + RTE_SET_USED(rxq); #endif return pkt_flags; -- 1.9.1