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 D89A1A0540; Mon, 8 Aug 2022 23:21:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 247F342B91; Mon, 8 Aug 2022 23:21:39 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id D4F064014F for ; Mon, 8 Aug 2022 23:21:36 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 2C8B52109433; Mon, 8 Aug 2022 14:21:36 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2C8B52109433 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1659993696; bh=tABGPbl2sBZ7A4G13J5UPa/VlH3vxnxvuLBLYRRsVeE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ssp7YSbISFAPeoblwNQHC/CazxYDeZCM+xpPkz4NKzEQWYX5Vt31fmzlCqXG1RDPB H3junTh1rd74nqZP3IIpbKmWmh0DLfyRZbRDpEYAUi/L31noh2Ib0WO17Q8agOqnT/ 26tq6La/DT9/pl4alSmV+4ryu5NMYYttuf/BO5Bc= From: Tyler Retzlaff To: dev@dpdk.org Cc: thomas@monjalon.net, anatoly.burakov@intel.com, ranjit.menon@intel.com, mb@smartsharesystems.com, Tyler Retzlaff , Tyler Retzlaff Subject: [PATCH 3/3] test: fix sign compare warning for rte_bsf64 return type change Date: Mon, 8 Aug 2022 14:21:32 -0700 Message-Id: <1659993692-17479-4-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1659993692-17479-1-git-send-email-roretzla@linux.microsoft.com> References: <1615418650-19513-1-git-send-email-roretzla@linux.microsoft.com> <1659993692-17479-1-git-send-email-roretzla@linux.microsoft.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Tyler Retzlaff rte_bsf64 return type has been changed insert cast to suppress sign-comapre warning with int. Signed-off-by: Tyler Retzlaff --- app/test/test_mbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c index e09b254..be4c3ff 100644 --- a/app/test/test_mbuf.c +++ b/app/test/test_mbuf.c @@ -2677,7 +2677,7 @@ struct test_case { flag3 = rte_mbuf_dynflag_register_bitnum(&dynflag3, rte_bsf64(RTE_MBUF_F_LAST_FREE)); - if (flag3 != rte_bsf64(RTE_MBUF_F_LAST_FREE)) + if ((uint32_t)flag3 != rte_bsf64(RTE_MBUF_F_LAST_FREE)) GOTO_FAIL("failed to register dynamic flag 3, flag3=%d: %s", flag3, strerror(errno)); -- 1.8.3.1