Only used in one file, and not an exported symbol should be static. Signed-off-by: Stephen Hemminger <step...@networkplumber.org> --- lib/eal/common/eal_private.h | 22 ---------------------- lib/eal/linux/eal_dev.c | 4 ++-- 2 files changed, 2 insertions(+), 24 deletions(-)
diff --git a/lib/eal/common/eal_private.h b/lib/eal/common/eal_private.h index 71523cfdb8..e63ecd74f8 100644 --- a/lib/eal/common/eal_private.h +++ b/lib/eal/common/eal_private.h @@ -529,28 +529,6 @@ int local_dev_remove(struct rte_device *dev); */ int rte_bus_sigbus_handler(const void *failure_addr); -/** - * @internal - * Register the sigbus handler. - * - * @return - * - On success, zero. - * - On failure, a negative value. - */ -int -dev_sigbus_handler_register(void); - -/** - * @internal - * Unregister the sigbus handler. - * - * @return - * - On success, zero. - * - On failure, a negative value. - */ -int -dev_sigbus_handler_unregister(void); - /** * Get OS-specific EAL mapping base address. */ diff --git a/lib/eal/linux/eal_dev.c b/lib/eal/linux/eal_dev.c index fff4e8fa83..e63f24d108 100644 --- a/lib/eal/linux/eal_dev.c +++ b/lib/eal/linux/eal_dev.c @@ -393,7 +393,7 @@ rte_dev_event_monitor_stop(void) return ret; } -int +static int dev_sigbus_handler_register(void) { sigset_t mask; @@ -414,7 +414,7 @@ dev_sigbus_handler_register(void) return rte_errno; } -int +static int dev_sigbus_handler_unregister(void) { rte_errno = 0; -- 2.43.0