common/mlx5: fix pointer cast on Windows
authorTal Shnaiderman <talshn@nvidia.com>
Thu, 7 Jan 2021 11:45:45 +0000 (13:45 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jan 2021 09:12:37 +0000 (10:12 +0100)
commit5a90a6e40db6e712fd9dc12dedd14d8feb690ff3
tree46a88f4bf908c2c290325df3db7314f2bf555e59
parent7819b8fb9a372a6daeced40d96b1a44a779ec180
common/mlx5: fix pointer cast on Windows

While compiling with clang 11 the callers of the
__mlx5_bit_off macro warns on the cast of pointers to
unsigned long which is a smaller int type in Windows.

warning: cast to smaller integer type 'unsigned long'
from 'u8 (*)[16]' [-Wpointer-to-int-cast]

To resolve it the type is changed to uintptr_t to be
compatible for both Linux and Windows.

Fixes: 865a0c15672c ("net/mlx5: add Direct Verbs prepare function")
Cc: stable@dpdk.org
Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/mlx5_prm.h