From: Thomas Monjalon Date: Wed, 2 Jul 2014 13:11:47 +0000 (+0200) Subject: vmxnet3: fix build with debug X-Git-Tag: spdx-start~10548 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=187785f62e0332defd412eee122f9cc5baebb0e2;p=dpdk.git 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 --- 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) {