From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by dpdk.org (Postfix) with ESMTP id 4520CAB06 for ; Wed, 2 Jul 2014 17:03:02 +0200 (CEST) Received: by mail-we0-f177.google.com with SMTP id u56so11314716wes.36 for ; Wed, 02 Jul 2014 08:03:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=TiT1vvQfmwn7aa/6O/m9jaJOnyTcTx7aRlogT5UAa9Y=; b=Yh7D5Toa12eLm1lNOsdCPNgaaW6Jb2YAGwTZBude+NZHChvqpIuoBh79/l6GIP8xHd ICc2adKltE6kCh1GP+Z1gGdErLNUBZPExxdn06E4KzYT+7QTA2qF61EjGTDVdSmUyML8 TOWTYjJgQ/3xo2Qp0wArAsLES1yVRXxXz0zUXO3DuMEJITlq84uyke5xUFLdtkF5U9Ul EskatEoRfyJvWDBnY6PoRDNLwVSh1mIpIKvU93xcRzl0zxne07ExeKZnZ4IvlLqBOanF a30F68mfVMQi7BYHq4JAJnGC1B2exTGhL/FOvSsLLZY/OBcrFaZWuYjGsUYkcqTJXkTq 3L6Q== X-Gm-Message-State: ALoCoQkmbOSf2WVM008ftThGqcQaVAxIu05bkF4Brxm91tUBTfiCPcRuGoYiKki2cJm3vTKgFVna X-Received: by 10.194.22.201 with SMTP id g9mr11417064wjf.98.1404313402834; Wed, 02 Jul 2014 08:03:22 -0700 (PDT) Received: from XPS13.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id fc7sm55588765wjc.37.2014.07.02.08.03.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Jul 2014 08:03:22 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 2 Jul 2014 17:02:54 +0200 Message-Id: <1404313375-2205-7-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1404313375-2205-1-git-send-email-thomas.monjalon@6wind.com> References: <1404313375-2205-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH 6/7] vmxnet3: fix build with debug 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, 02 Jul 2014 15:03:03 -0000 Functions for queue dump are not used and cause compilation error if CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_DRIVER is enabled. Fixed by disabling them. Signed-off-by: Thomas Monjalon --- lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c index c6aa963..13960fa 100644 --- a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c +++ b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c @@ -90,7 +90,7 @@ static uint32_t rxprod_reg[2] = {VMXNET3_REG_RXPROD, VMXNET3_REG_RXPROD2}; static inline int vmxnet3_post_rx_bufs(vmxnet3_rx_queue_t* , uint8_t); static inline void vmxnet3_tq_tx_complete(vmxnet3_tx_queue_t *); -#ifdef RTE_LIBRTE_VMXNET3_DEBUG_DRIVER +#ifdef RTE_LIBRTE_VMXNET3_DEBUG_DRIVER_NOT_USED static void vmxnet3_rxq_dump(struct vmxnet3_rx_queue *); static void vmxnet3_txq_dump(struct vmxnet3_tx_queue *); #endif @@ -105,7 +105,7 @@ rte_rxmbuf_alloc(struct rte_mempool *mp) return (m); } -#ifdef RTE_LIBRTE_VMXNET3_DEBUG_DRIVER +#ifdef RTE_LIBRTE_VMXNET3_DEBUG_DRIVER_NOT_USED static void vmxnet3_rxq_dump(struct vmxnet3_rx_queue *rxq) { -- 2.0.0