From 187785f62e0332defd412eee122f9cc5baebb0e2 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Wed, 2 Jul 2014 15:11:47 +0200 Subject: [PATCH] vmxnet3: fix build with debug 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 Acked-by: Bruce Richardson --- 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 c6aa9638bb..13960fa993 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.20.1