Skip to content

Commit

Permalink
net/intel: fix void function returning a value
Browse files Browse the repository at this point in the history
This patch avoids warnings like the one below emitted by MSVC:

../drivers/common/idpf/idpf_common_rxtx_avx512.c(139):
    warning C4098: 'idpf_singleq_rearm':
    'void' function returning a value

Fixes: 0604b1f ("net/i40e: fix crash in AVX512")
Fixes: 4eb3dcc ("net/iavf: fix crash in AVX512")
Fixes: 20daa1c ("net/ice: fix crash in AVX512")
Cc: [email protected]

Signed-off-by: Andre Muezerie <[email protected]>
Acked-by: Bruce Richardson <[email protected]>
  • Loading branch information
Andre Muezerie authored and bruce-richardson committed Feb 10, 2025
1 parent 1313aa1 commit e26a9bd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/net/intel/i40e/i40e_rxtx_vec_avx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
static __rte_always_inline void
i40e_rxq_rearm(struct i40e_rx_queue *rxq)
{
return i40e_rxq_rearm_common(rxq, false);
i40e_rxq_rearm_common(rxq, false);
}

#ifndef RTE_LIBRTE_I40E_16BYTE_RX_DESC
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/intel/i40e/i40e_rxtx_vec_avx512.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
static __rte_always_inline void
i40e_rxq_rearm(struct i40e_rx_queue *rxq)
{
return i40e_rxq_rearm_common(rxq, true);
i40e_rxq_rearm_common(rxq, true);
}

#ifndef RTE_LIBRTE_I40E_16BYTE_RX_DESC
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/intel/iavf/iavf_rxtx_vec_avx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
static __rte_always_inline void
iavf_rxq_rearm(struct iavf_rx_queue *rxq)
{
return iavf_rxq_rearm_common(rxq, false);
iavf_rxq_rearm_common(rxq, false);
}

#define PKTLEN_SHIFT 10
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/intel/ice/ice_rxtx_vec_avx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
static __rte_always_inline void
ice_rxq_rearm(struct ice_rx_queue *rxq)
{
return ice_rxq_rearm_common(rxq, false);
ice_rxq_rearm_common(rxq, false);
}

static __rte_always_inline __m256i
Expand Down

0 comments on commit e26a9bd

Please sign in to comment.