common/mlx5: fix unsigned signed mismatch warning
PATCH 1/1 common/mlx5: fix unsigned signed mismatch warning
Use unsigned int for 2 loop indexes that are being compared against an unsigned int struct field to avoid signed/unsigned mismatch warning.
--- drivers/common/mlx5/mlx5_devx_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/common/mlx5/mlx5_devx_cmds.c +2 -2
@@ -1816,7 +1816,7 @@ struct mlx5_devx_obj *uint32_t out[MLX5_ST_SZ_DW (create_rqt_out)] = {0 };void *rqt_ctx;struct mlx5_devx_obj *rqt =NULL ; -int i; +unsigned int i; in =mlx5_malloc (MLX5_MEM_ZERO , inlen,0 ,SOCKET_ID_ANY );if (!in) {
@@ -1869,7 +1869,7 @@ struct mlx5_devx_obj *uint32_t out[MLX5_ST_SZ_DW (modify_rqt_out)] = {0 };uint32_t *in =mlx5_malloc (MLX5_MEM_ZERO , inlen,0 ,SOCKET_ID_ANY );void *rqt_ctx; -int i; +unsigned int i;int ret;if (!in) {
Signature · 1 line
1.8.3.1
Quoted 15 lines
-----Original Message-----
From: Tyler Retzlaff <[email protected]>
Sent: Tuesday, April 16, 2024 01:10
To: [email protected]
Cc: Dariusz Sosnowski <[email protected]>; Dekel Peled <[email protected]>; Matan Azrad <[email protected]>; Ori Kam <[email protected]>; Suanming Mou <[email protected]>; Slava Ovsiienko <[email protected]>; Tyler Retzlaff <[email protected]>; [email protected]; Matan Azrad <[email protected]>; [email protected]
Subject: [PATCH] common/mlx5: fix unsigned signed mismatch warningUse unsigned int for 2 loop indexes that are being compared against an unsigned int struct field to avoid signed/unsigned mismatch warning.
Quoted 7 lines
Fixes 718d166e5504 ("net/mlx5: create advanced RxQ table via DevX")Fixes e1da60a8a6e9 ("common/mlx5: add DevX command to modify RQT")Signed-off-by Tyler Retzlaff <[email protected]>
Thanks,
Dariusz Sosnowski
Hi,
Quoted 15 lines
-----Original Message-----
From: Tyler Retzlaff <[email protected]>
Sent: Tuesday, April 16, 2024 2:10 AM
To: [email protected]
Cc: Dariusz Sosnowski <[email protected]>; Dekel Peled <[email protected]>; Matan Azrad <[email protected]>; Ori Kam <[email protected]>; Suanming Mou <[email protected]>; Slava Ovsiienko <[email protected]>; Tyler Retzlaff <[email protected]>; [email protected]; Matan Azrad <[email protected]>; [email protected]
Subject: [PATCH] common/mlx5: fix unsigned signed mismatch warningUse unsigned int for 2 loop indexes that are being compared against an unsigned int struct field to avoid signed/unsigned mismatch warning.
Quoted 7 lines
Fixes 718d166e5504 ("net/mlx5: create advanced RxQ table via DevX")Fixes e1da60a8a6e9 ("common/mlx5: add DevX command to modify RQT")Signed-off-by Tyler Retzlaff <[email protected]>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh