From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id DCA80A0562;
	Fri, 19 Mar 2021 15:59:34 +0100 (CET)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 0AB96140F9D;
	Fri, 19 Mar 2021 15:58:08 +0100 (CET)
Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com
 [64.147.123.21])
 by mails.dpdk.org (Postfix) with ESMTP id 213FB140F70;
 Fri, 19 Mar 2021 15:58:05 +0100 (CET)
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id BAE571355;
 Fri, 19 Mar 2021 10:58:03 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute4.internal (MEProxy); Fri, 19 Mar 2021 10:58:04 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding; s=fm3; bh=OUXqsyyU8awVr
 NJCoTHruMOaFjJm6TZPW3ZjZ7sEcDY=; b=h5XmZvXC5obpVx3y3FM/faHT2oGkx
 3kfFpIAqq1uCtpo8hNIA/MtvHtmDmHlzs8rCtLBRPmYJTeP1pOQw4WPnqr7XTHrd
 s5J0G2cBQK8jNsXyGtWARzopgx22XpGGN0E+Y2N5MuYFP0V7qnl3VKylOpatNmcW
 12TooxgRFMVn8Zn9rnSkGwgofx6Ca4DcE36o+JtTjTkJMw0DcJzBsEDbPPqoB5x/
 akgT0ji/DmAweO1qKn6ftXAPUGhz74sSQLMp4xrX4+YS5YZL877mFtkvomL3SbKs
 kpAtRuuLgtTSvk2/5wGq9aV3Pewn8/0NkOL9pL3s8yW5va5KmSn67ZQdQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:date:from
 :in-reply-to:message-id:mime-version:references:subject:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm2; bh=OUXqsyyU8awVrNJCoTHruMOaFjJm6TZPW3ZjZ7sEcDY=; b=dY6E5FA+
 69nUsnmDY3YHMv6iJS67vhWFyzzQgMmhSQofyhW15fgHKoebGXngH9CPYL0auIr6
 ft+XK4gsMiQKbK+09DA2g8rWGYwFBiRlUb3CqBQMrz7qRcyjvSjApRFWLJ2HKeIQ
 uSoflLQRFtz1i1Vi6IgyDqqRM7AA03ClwAVYNU1YbSaXGiDltzN4PF1x1AGzu1eX
 kbgs6f8lV3zeXNaR1CLbspAvQFsVaTz7q4HNrtQ189z3WVYC9dCrmkLMUeDVNHa0
 eyP07LBIrDQz2/tjTW4wjvF4v+jN5X07ZYi16G76ZZwfC6kIkTmOOD8PZPV4E6WS
 7pSIf4633oVBmA==
X-ME-Sender: <xms:-7tUYB8ObMayraOwQYqRB520Qov4fdFwIuTrF_okaVm1wLbqnqCLsQ>
 <xme:-7tUYDjrZVDyjDTuxa7CxXcjzIeiAAHZARUFhAqIvth7lDTAFeNsWB2nmrpQZbcCO
 sER-5MqZ7KP3OP1pg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudefkedgjedvucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr
 shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg
 ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg
 uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf
 hiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl
 ohhnrdhnvght
X-ME-Proxy: <xmx:-7tUYJesmuG7ZDB6gQj4YWfuzaFqgKlbtAbouwCSXBhz1ShBA5jMmg>
 <xmx:-7tUYCp0tWEfAccC2D8P-SWrwaWl3Box7m50Q7hXPyx1mfcJivJhsw>
 <xmx:-7tUYGBFQ6vaLkrmvf0QEitpfc6XiTYsHbFcXCKyHFbnkggNWij-2A>
 <xmx:-7tUYD4QLv6XVhR9KOt3TmmPnHkas9e2xb1f1zDYxSZLzwUYisxIOw>
Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])
 by mail.messagingengine.com (Postfix) with ESMTPA id 67110240065;
 Fri, 19 Mar 2021 10:58:02 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: dev@dpdk.org
Cc: ncopa@alpinelinux.org, stable@dpdk.org,
 David Marchand <david.marchand@redhat.com>,
 Haiyue Wang <haiyue.wang@intel.com>,
 Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,
 Jeff Guo <jia.guo@intel.com>, Ferruh Yigit <ferruh.yigit@intel.com>,
 Alvin Zhang <alvinx.zhang@intel.com>
Date: Fri, 19 Mar 2021 15:57:26 +0100
Message-Id: <20210319145730.3555384-14-thomas@monjalon.net>
X-Mailer: git-send-email 2.30.1
In-Reply-To: <20210319145730.3555384-1-thomas@monjalon.net>
References: <20190313170657.16688-1-ncopa@alpinelinux.org>
 <20210319145730.3555384-1-thomas@monjalon.net>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-dev] [PATCH v7 13/17] net/igc: remove use of uint type
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

Improve portability (especially with musl libc)
by replacing the non-standard type 'uint' with 'size_t'.

Fixes: 746664d546fb ("net/igc: support flow API")
Cc: stable@dpdk.org

Suggested-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: David Marchand <david.marchand@redhat.com>
---
 drivers/net/igc/igc_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/igc/igc_flow.c b/drivers/net/igc/igc_flow.c
index 1bb64d323c..66053060af 100644
--- a/drivers/net/igc/igc_flow.c
+++ b/drivers/net/igc/igc_flow.c
@@ -656,7 +656,7 @@ igc_parse_action_rss(struct rte_eth_dev *dev,
  * Return the pointer of the flow, or NULL for failed
  **/
 static inline struct rte_flow *
-igc_alloc_flow(const void *filter, enum igc_filter_type type, uint inbytes)
+igc_alloc_flow(const void *filter, enum igc_filter_type type, size_t inbytes)
 {
 	/* allocate memory, 8 bytes boundary aligned */
 	struct rte_flow *flow = rte_malloc("igc flow filter",
-- 
2.30.1