Skip to content
Permalink
Browse files

eal: hide internal function

[ upstream commit ba5d78da70dfeb23f92027cb4145066e5271c478 ]

This function has never been used outside of this code unit.
Mark it static and remove it from the eal internal header.

Fixes: 9e29251 ("eal: thread affinity API")

Signed-off-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information...
david-marchand authored and kevintraynor committed Jul 31, 2019
1 parent d42af30 commit d1541e09feaf6c7a3198fd0e857b81ff1fa0010b
Showing with 2 additions and 12 deletions.
  1. +2 −1 lib/librte_eal/common/eal_common_thread.c
  2. +0 −11 lib/librte_eal/common/eal_thread.h
@@ -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;
@@ -34,17 +34,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()
*/

0 comments on commit d1541e0

Please sign in to comment.
You can’t perform that action at this time.