From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by dpdk.space (Postfix) with ESMTP id 781FEA0096
	for <public@inbox.dpdk.org>; Wed, 10 Apr 2019 19:16:20 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 3FE2F1B20D;
	Wed, 10 Apr 2019 19:16:13 +0200 (CEST)
Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com
 [209.85.215.195]) by dpdk.org (Postfix) with ESMTP id 0808C1B142
 for <dev@dpdk.org>; Wed, 10 Apr 2019 19:16:09 +0200 (CEST)
Received: by mail-pg1-f195.google.com with SMTP id z9so1926559pgu.10
 for <dev@dpdk.org>; Wed, 10 Apr 2019 10:16:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=networkplumber-org.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=mp6C4lmKHxRwWTazVhkNgq2X1wcsA6ywl91M4N1beSc=;
 b=Y8JEBg9PQFVkjHYPUkoE4ig8Zaw17KUl1Eg7NgYlE2VZ7eMhcYmSwZcZnZ8LTdSYHa
 prpdXJPs/8kRw3imA+qZD0GHfoAfFfPUAuY66UnfohlosyKGZKRn6SJOEpftfmc1LbkY
 nCYVCeiLUrdOJGo5r0PXNb205PBKSxwEBiq3CcqXr8TR76Z55Q0kM3Khqmqijk9X9lH9
 9Gs9A06pechSvIIrX5tzBLPOUV8bYpvtF1Abuc7Vx7W2nx7I456V4kjK/IBb9tsuzcIf
 kwyLDvOv6LCB1RRXqK8zVYjL8oop/8BMWIreVU+/rCWAQp0HAghQrf/cJyxLEbkA8vwu
 zPgg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=mp6C4lmKHxRwWTazVhkNgq2X1wcsA6ywl91M4N1beSc=;
 b=IeHg76AciVEXsPtn9eWGVcnP3i0dbMCzRev46NkYzuBs4bHuVl8zWwxOvL2SgVyMo/
 huFs7LhhC7RXoOh4onWJ3gyMIS/+u3ceu7Qya5zh4vFwAyj21JsH8+ptn4K45pyDgvb8
 HimctzKxX/FfjHYzQmb1VeJldKF7OFB9YuCGQoYjmp3Wj0tlHCU9R4vxaYCJFOMEKQ00
 UMJD75gQeJtIKbWtNmIq/1xYJx40cfQNNLkOU9dykJgGW/NGdsazU3WbEm/WeOC9DaTI
 nWyT/rTfNwoPJJVBVcp1U/3nAKhvFzLM5tKAOjmlP9jKB7aSmetGCEoRABxmIeBQswqz
 yGLQ==
X-Gm-Message-State: APjAAAWozLlTDDVNRDYSQS6lIp+IIg47wuO6HxxppsWTX15IjTQBoy4O
 lHB2hrhJjY4IfZbJ1KMJkQcpFwvyGZo=
X-Google-Smtp-Source: APXvYqxZVFVhlWZm1SE5Risev5we8ig48yZ6YA7SUk3wA3GILYIXldZI/37naUL4YKIPSobOsXR32Q==
X-Received: by 2002:a65:5286:: with SMTP id y6mr41613790pgp.79.1554916567774; 
 Wed, 10 Apr 2019 10:16:07 -0700 (PDT)
Received: from shemminger-XPS-13-9360.lan (204-195-22-127.wavecable.com.
 [204.195.22.127])
 by smtp.gmail.com with ESMTPSA id d25sm48995244pfn.154.2019.04.10.10.16.06
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 10 Apr 2019 10:16:06 -0700 (PDT)
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>
Date: Wed, 10 Apr 2019 10:15:59 -0700
Message-Id: <20190410171603.8979-2-stephen@networkplumber.org>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190410171603.8979-1-stephen@networkplumber.org>
References: <20190408182510.16078-1-stephen@networkplumber.org>
 <20190410171603.8979-1-stephen@networkplumber.org>
Subject: [dpdk-dev] [PATCH v2 1/5] eal: use unsigned int in rte_lcore.h
	functions
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
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>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <20190410171559.zxu2XhPw-IFOWNczztoGa-42hUOsb523H-W0raKbhFA@z>

Purely cosmetic change, use unsigned int instead of unsigned alone.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 lib/librte_eal/common/include/rte_lcore.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/librte_eal/common/include/rte_lcore.h b/lib/librte_eal/common/include/rte_lcore.h
index dea17f500065..959ef9ece4b2 100644
--- a/lib/librte_eal/common/include/rte_lcore.h
+++ b/lib/librte_eal/common/include/rte_lcore.h
@@ -137,7 +137,7 @@ rte_lcore_index(int lcore_id)
  * @return
  *   the ID of current lcoreid's physical socket
  */
-unsigned rte_socket_id(void);
+unsigned int rte_socket_id(void);
 
 /**
  * Return number of physical sockets detected on the system.
@@ -177,8 +177,8 @@ rte_socket_id_by_idx(unsigned int idx);
  * @return
  *   the ID of lcoreid's physical socket
  */
-static inline unsigned
-rte_lcore_to_socket_id(unsigned lcore_id)
+static inline unsigned int
+rte_lcore_to_socket_id(unsigned int lcore_id)
 {
 	return lcore_config[lcore_id].socket_id;
 }
@@ -193,7 +193,7 @@ rte_lcore_to_socket_id(unsigned lcore_id)
  *   True if the given lcore is enabled; false otherwise.
  */
 static inline int
-rte_lcore_is_enabled(unsigned lcore_id)
+rte_lcore_is_enabled(unsigned int lcore_id)
 {
 	struct rte_config *cfg = rte_eal_get_configuration();
 	if (lcore_id >= RTE_MAX_LCORE)
@@ -214,8 +214,8 @@ rte_lcore_is_enabled(unsigned lcore_id)
  * @return
  *   The next lcore_id or RTE_MAX_LCORE if not found.
  */
-static inline unsigned
-rte_get_next_lcore(unsigned i, int skip_master, int wrap)
+static inline unsigned int
+rte_get_next_lcore(unsigned int i, int skip_master, int wrap)
 {
 	i++;
 	if (wrap)
-- 
2.17.1