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 <david.marchand@redhat.com>
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;
*/
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()
*/