From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 193CBA10DA for ; Wed, 31 Jul 2019 14:07:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 114571C12F; Wed, 31 Jul 2019 14:07:46 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 3A8A31C0DC; Wed, 31 Jul 2019 14:07:44 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5C4B230C134A; Wed, 31 Jul 2019 12:07:43 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-204-235.brq.redhat.com [10.40.204.235]) by smtp.corp.redhat.com (Postfix) with ESMTP id 14C2B60BEC; Wed, 31 Jul 2019 12:07:41 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stephen@networkplumber.org, bruce.richardson@intel.com, stable@dpdk.org Date: Wed, 31 Jul 2019 14:07:33 +0200 Message-Id: <1564574853-10533-1-git-send-email-david.marchand@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Wed, 31 Jul 2019 12:07:43 +0000 (UTC) Subject: [dpdk-dev] [PATCH] eal: hide internal function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This function has never been used outside of this code unit. Mark it static and remove it from the eal internal header. Fixes: 9e29251b2afa ("eal: thread affinity API") Cc: stable@dpdk.org Signed-off-by: David Marchand --- lib/librte_eal/common/eal_common_thread.c | 3 ++- lib/librte_eal/common/eal_thread.h | 11 ----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/lib/librte_eal/common/eal_common_thread.c b/lib/librte_eal/common/eal_common_thread.c index c91aba8..f9a8cf1 100644 --- a/lib/librte_eal/common/eal_common_thread.c +++ b/lib/librte_eal/common/eal_common_thread.c @@ -38,7 +38,8 @@ rte_lcore_has_role(unsigned int lcore_id, enum rte_lcore_role_t role) return cfg->lcore_role[lcore_id] == role; } -int eal_cpuset_socket_id(rte_cpuset_t *cpusetp) +static int +eal_cpuset_socket_id(rte_cpuset_t *cpusetp) { unsigned cpu = 0; int socket_id = SOCKET_ID_ANY; diff --git a/lib/librte_eal/common/eal_thread.h b/lib/librte_eal/common/eal_thread.h index 2d30b19..0d0bad0 100644 --- a/lib/librte_eal/common/eal_thread.h +++ b/lib/librte_eal/common/eal_thread.h @@ -35,17 +35,6 @@ void eal_thread_init_master(unsigned lcore_id); unsigned eal_cpu_socket_id(unsigned cpu_id); /** - * Get the NUMA socket id from cpuset. - * This function is private to EAL. - * - * @param cpusetp - * The point to a valid cpu set. - * @return - * socket_id or SOCKET_ID_ANY - */ -int eal_cpuset_socket_id(rte_cpuset_t *cpusetp); - -/** * Default buffer size to use with eal_thread_dump_affinity() */ #define RTE_CPU_AFFINITY_STR_LEN 256 -- 1.8.3.1