numam-dpdk/drivers
Thomas Monjalon 5dd12566f1 vdpa/mlx5: fix minsize build
Error occurs when configuring meson with --buildtype=minsize
with GCC 11.1.0:

drivers/vdpa/mlx5/mlx5_vdpa_mem.c: In function ‘mlx5_vdpa_mem_register’:
drivers/vdpa/mlx5/mlx5_vdpa_mem.c:183:24: error:
initialization of ‘uint64_t’ {aka ‘long unsigned int’} from ‘void *’
makes integer from pointer without a cast [-Werror=int-conversion]
|         uint64_t gcd = NULL;
|                        ^~~~
drivers/vdpa/mlx5/mlx5_vdpa_mem.c:244:75: error:
‘mode’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
|                         klm_size = mode == MLX5_MKC_ACCESS_MODE_KLM ?
|                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                               KLM_SIZE_MAX_ALIGN(empty_region_sz) : gcd;
|                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Matan Azrad <matan@nvidia.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
2021-09-15 17:12:29 +02:00
..
baseband version: 21.11-rc0 2021-08-17 08:37:52 +02:00
bus net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
common net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
compress compress/mlx5: fix leak on QP setup failure 2021-09-06 21:46:34 +02:00
crypto crypto/dpaa_sec: support PDCP short MAC-I 2021-09-08 17:20:30 +02:00
event cryptodev: expose driver interface as internal 2021-09-08 09:35:12 +02:00
mempool version: 21.11-rc0 2021-08-17 08:37:52 +02:00
net net/qede: fix minsize build 2021-09-15 17:11:56 +02:00
raw drivers: remove warning with Meson 0.59 2021-08-27 15:51:34 +02:00
regex regex/mlx5: fix minsize build 2021-09-15 17:12:29 +02:00
vdpa vdpa/mlx5: fix minsize build 2021-09-15 17:12:29 +02:00
meson.build build: fix essential drivers in disable list 2021-09-15 11:00:15 +02:00