[v2,2/2] drivers/net: fix void function returning a value
Checks
Commit Message
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
Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
---
drivers/net/i40e/i40e_rxtx_vec_avx2.c | 2 +-
drivers/net/i40e/i40e_rxtx_vec_avx512.c | 2 +-
drivers/net/iavf/iavf_rxtx_vec_avx2.c | 2 +-
drivers/net/ice/ice_rxtx_vec_avx2.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
Comments
On Wed, Jan 22, 2025 at 07:20:44AM -0800, Andre Muezerie wrote:
> 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
>
> Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
> ---
> drivers/net/i40e/i40e_rxtx_vec_avx2.c | 2 +-
> drivers/net/i40e/i40e_rxtx_vec_avx512.c | 2 +-
> drivers/net/iavf/iavf_rxtx_vec_avx2.c | 2 +-
> drivers/net/ice/ice_rxtx_vec_avx2.c | 2 +-
> 4 files changed, 4 insertions(+), 4 deletions(-)
>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
On Wed, Jan 22, 2025 at 03:48:11PM +0000, Bruce Richardson wrote:
> On Wed, Jan 22, 2025 at 07:20:44AM -0800, Andre Muezerie wrote:
> > 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
> >
> > Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
> > ---
> > drivers/net/i40e/i40e_rxtx_vec_avx2.c | 2 +-
> > drivers/net/i40e/i40e_rxtx_vec_avx512.c | 2 +-
> > drivers/net/iavf/iavf_rxtx_vec_avx2.c | 2 +-
> > drivers/net/ice/ice_rxtx_vec_avx2.c | 2 +-
> > 4 files changed, 4 insertions(+), 4 deletions(-)
> >
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Fixes: 0604b1f2208f ("net/i40e: fix crash in AVX512")
Fixes: 4eb3dcce7c5d ("net/iavf: fix crash in AVX512")
Fixes: 20daa1c978b7 ("net/ice: fix crash in AVX512")
Cc: stable@dpdk.org
Patch applied to dpdk-next-net-intel
Thanks,
/Bruce
@@ -22,7 +22,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
@@ -24,7 +24,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
@@ -13,7 +13,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
@@ -14,7 +14,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