diff mbox series

[ovs-dev,v5,2/5] dpif-netdev-lookup: Fix GCC 5 warning.

Message ID 20220517100818.15639-3-cian.ferriter@intel.com
State Accepted
Commit 66c85fae3a9655625c30dafafbd2cb3c0c89eb03
Headers show
Series Build some AVX512 code on older compilers. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/intel-ovs-compilation success test: success

Commit Message

Ferriter, Cian May 17, 2022, 10:08 a.m. UTC
GCC 5 gave an incompatible pointer type warning for pkt_blocks when it's
passed to _mm512_mask_i64gather_epi64().

Follow the same pattern used for tbl_blocks where the 'const uint64_t *'
is cast to a 'const void *' when passed in to avx512_blocks_gather().

Fixes: 47a2a8f4138e ("dpif-netdev/dpcls-avx512: Enable 16 block processing.")
Signed-off-by: Cian Ferriter <cian.ferriter@intel.com>
Acked-by: Sunil Pai G <sunil.pai.g@intel.com>

---
v4:
* Added Sunil's Fixes and Acked-by tags.

v3:
* Add this commit to the series.
---
 lib/dpif-netdev-lookup-avx512-gather.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/dpif-netdev-lookup-avx512-gather.c b/lib/dpif-netdev-lookup-avx512-gather.c
index 7bc1e9e9a..b396772bc 100644
--- a/lib/dpif-netdev-lookup-avx512-gather.c
+++ b/lib/dpif-netdev-lookup-avx512-gather.c
@@ -155,7 +155,7 @@  netdev_rule_matches_key(const struct dpcls_rule *rule,
 static inline ALWAYS_INLINE __m512i
 avx512_blocks_gather(__m512i v_u0,
                      __m512i v_u1,
-                     const uint64_t *pkt_blocks,
+                     const void *pkt_blocks,
                      const void *tbl_blocks,
                      const void *tbl_mf_masks,
                      __mmask64 u1_bcast_msk,