From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4A43A43E7F for ; Tue, 16 Apr 2024 01:09:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 36760402DC; Tue, 16 Apr 2024 01:09:45 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id DC5484027F; Tue, 16 Apr 2024 01:09:41 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id F349320FCF9D; Mon, 15 Apr 2024 16:09:40 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com F349320FCF9D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1713222581; bh=mzjnczprB79F1spY5oNCUBrddagUhCDjUrZv3TEBbFk=; h=From:To:Cc:Subject:Date:From; b=NXIABeYekHOFVVEVzPgmJrvwFN3MPpADOm6PVOyQrBlvomdY7pmUJXkVUwEBc8TXO 5hwO9JHC4XCfBfWkCRZK6ZvKmdZUviVzLUea7kJE3slBGB87EVSyNtjRTM64znnuHB MoD6HVqjyTwwHB2EbFiiZ/Bfe15yhLvd9pDBfH4s= From: Tyler Retzlaff To: dev@dpdk.org Cc: Dariusz Sosnowski , Dekel Peled , Matan Azrad , Ori Kam , Suanming Mou , Viacheslav Ovsiienko , Tyler Retzlaff , dekelp@mellanox.com, matan@mellanox.com, stable@dpdk.org Subject: [PATCH] common/mlx5: fix unsigned signed mismatch warning Date: Mon, 15 Apr 2024 16:09:37 -0700 Message-Id: <1713222577-7382-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Use unsigned int for 2 loop indexes that are being compared against an unsigned int struct field to avoid signed/unsigned mismatch warning. Fixes: 718d166e5504 ("net/mlx5: create advanced RxQ table via DevX") Fixes: e1da60a8a6e9 ("common/mlx5: add DevX command to modify RQT") Cc: dekelp@mellanox.com Cc: matan@mellanox.com Cc: stable@dpdk.org Signed-off-by: Tyler Retzlaff --- drivers/common/mlx5/mlx5_devx_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c index 9b7abab..9952733 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -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) { -- 1.8.3.1