rte_intr_tls_epfd() is only called from the Linux eal_interrupts.c.
Make it static there and remove the declaration and the FreeBSD and
Windows stubs, which only returned -ENOTSUP.

Signed-off-by: Stephen Hemminger <[email protected]>
---
 lib/eal/freebsd/eal_interrupts.c |  7 -------
 lib/eal/include/rte_interrupts.h | 11 -----------
 lib/eal/linux/eal_interrupts.c   |  3 +--
 lib/eal/windows/eal_interrupts.c |  7 -------
 4 files changed, 1 insertion(+), 27 deletions(-)

diff --git a/lib/eal/freebsd/eal_interrupts.c b/lib/eal/freebsd/eal_interrupts.c
index b29a2b174e..e6c2124344 100644
--- a/lib/eal/freebsd/eal_interrupts.c
+++ b/lib/eal/freebsd/eal_interrupts.c
@@ -742,13 +742,6 @@ rte_epoll_ctl(int epfd, int op, int fd, struct 
rte_epoll_event *event)
        return -ENOTSUP;
 }
 
-RTE_EXPORT_INTERNAL_SYMBOL(rte_intr_tls_epfd)
-int
-rte_intr_tls_epfd(void)
-{
-       return -ENOTSUP;
-}
-
 RTE_EXPORT_INTERNAL_SYMBOL(rte_intr_free_epoll_fd)
 void
 rte_intr_free_epoll_fd(struct rte_intr_handle *intr_handle)
diff --git a/lib/eal/include/rte_interrupts.h b/lib/eal/include/rte_interrupts.h
index 85b5546dee..cfc3562a33 100644
--- a/lib/eal/include/rte_interrupts.h
+++ b/lib/eal/include/rte_interrupts.h
@@ -322,17 +322,6 @@ rte_intr_type_set(struct rte_intr_handle *intr_handle,
 enum rte_intr_handle_type
 rte_intr_type_get(const struct rte_intr_handle *intr_handle);
 
-/**
- * @internal
- * The function returns the per thread epoll instance.
- *
- * @return
- *   epfd the epoll instance referred to.
- */
-__rte_internal
-int
-rte_intr_tls_epfd(void);
-
 /**
  * @internal
  * @param intr_handle
diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/linux/eal_interrupts.c
index c63956cde5..9a5fb0cd29 100644
--- a/lib/eal/linux/eal_interrupts.c
+++ b/lib/eal/linux/eal_interrupts.c
@@ -1315,8 +1315,7 @@ eal_init_tls_epfd(void)
        return pfd;
 }
 
-RTE_EXPORT_INTERNAL_SYMBOL(rte_intr_tls_epfd)
-int
+static int
 rte_intr_tls_epfd(void)
 {
        if (RTE_PER_LCORE(_epfd) == -1)
diff --git a/lib/eal/windows/eal_interrupts.c b/lib/eal/windows/eal_interrupts.c
index 5650b84d1f..ad25e66d23 100644
--- a/lib/eal/windows/eal_interrupts.c
+++ b/lib/eal/windows/eal_interrupts.c
@@ -297,13 +297,6 @@ rte_epoll_ctl(int epfd, int op, int fd, struct 
rte_epoll_event *event)
        return -ENOTSUP;
 }
 
-RTE_EXPORT_INTERNAL_SYMBOL(rte_intr_tls_epfd)
-int
-rte_intr_tls_epfd(void)
-{
-       return -ENOTSUP;
-}
-
 RTE_EXPORT_INTERNAL_SYMBOL(rte_intr_free_epoll_fd)
 void
 rte_intr_free_epoll_fd(struct rte_intr_handle *intr_handle)
-- 
2.53.0

Reply via email to