fm10k: fix clang unused function error
PATCH 1/1 fm10k: fix clang unused function error
This commit fixes the following error which was reported when compiling with clang by moving the function inside an RTE_LIBRTE_FM10K_DEBUG_RX ifdef block.
error: unused function 'dump_rxd'
--- lib/librte_pmd_fm10k/fm10k_rxtx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
lib/librte_pmd_fm10k/fm10k_rxtx.c +2 -3
@@ -41,11 +41,9 @@#define rte_packet_prefetch (p) do {} while (0)#endif +#ifdef RTE_LIBRTE_FM10K_DEBUG_RX static inline void dump_rxd (union fm10k_rx_desc *rxd) { -#ifndef RTE_LIBRTE_FM10K_DEBUG_RX -RTE_SET_USED (rxd); -#endif PMD_RX_LOG (DEBUG ,"+----------------|----------------+" );PMD_RX_LOG (DEBUG ,"| GLORT | PKT HDR & TYPE |" ); PMD_RX_LOG(DEBUG, "| 0x%08x | 0x%08x |", rxd->d.glort,
@@ -62,6 +60,7 @@ static inline void dump_rxd(union fm10k_rx_desc *rxd)PMD_RX_LOG (DEBUG ,"| 0x%016lx |" , rxd->q.timestamp); PMD_RX_LOG(DEBUG, "+----------------|----------------+"); } +#endif static inline void rx_desc_to_ol_flags (struct rte_mbuf *m,const union fm10k_rx_desc *d)
Signature · 1 line
2.1.0
A message that is not in the archive (sent off-list or not yet received): 1424282860-1517-1-git-send-email-jeffrey.b.shaw-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Wiles, Keith
Acked-byQuoted 7 lines · Jeffrey B
This commit fixes the following error which was reported when compiling with clang by moving the function inside an
RTE_LIBRTE_FM10K_DEBUG_RXifdef block.error: unused function '
dump_rxd'Signed-off-by Jeff Shaw <[email protected]>
Quoted 33 lines
---
lib/librte_pmd_fm10k/fm10k_rxtx.c| 5 ++---1 file changed, 2 insertions(+), 3 deletions(-)lib/librte_pmd_fm10k/fm10k_rxtx.c +2
-3@@ -41,11 +41,9 @@#define rte_packet_prefetch (p) do {} while (0)#endif +#ifdef RTE_LIBRTE_FM10K_DEBUG_RX static inline void dump_rxd (union fm10k_rx_desc *rxd) { -#ifndef RTE_LIBRTE_FM10K_DEBUG_RX -RTE_SET_USED (rxd); -#endif PMD_RX_LOG (DEBUG ,"+----------------|----------------+" );PMD_RX_LOG (DEBUG ,"| GLORT | PKT HDR & TYPE |" ); PMD_RX_LOG(DEBUG, "| 0x%08x | 0x%08x |", rxd->d.glort,@@ -62,6 +60,7 @@ static inline void dump_rxd(union fm10k_rx_desc *rxd)PMD_RX_LOG (DEBUG ,"| 0x%016lx |" , rxd->q.timestamp); PMD_RX_LOG(DEBUG, "+----------------|----------------+"); } +#endif static inline void
rx_desc_to_ol_flags(struct rte_mbuf *m, const union fm10k_rx_desc *d)Signature · 1 line
2.1.0
A message that is not in the archive (sent off-list or not yet received): D10A385B.13CDD%[email protected]
Thomas Monjalon
AppliedQuoted 9 lines
Quoted 7 lines
This commit fixes the following error which was reported when compiling with clang by moving the function inside an
RTE_LIBRTE_FM10K_DEBUG_RXifdef block.error: unused function '
dump_rxd'Signed-off-by Jeff Shaw <[email protected]>Acked-by [email protected]
Applied, thanks