rte_vmbus_unregister() is not called anywhere in the tree. The vmbus
driver registration macro RTE_PMD_REGISTER_VMBUS only references
rte_vmbus_register(), and no driver unregisters itself.

Drop the internal export so the symbol is no longer part of the
version map, and remove the now inconsistent __rte_internal tag
on the declaration. The function itself is kept since it is the
counterpart of rte_vmbus_register().

Signed-off-by: Stephen Hemminger <[email protected]>
---
 drivers/bus/vmbus/bus_vmbus_driver.h | 1 -
 drivers/bus/vmbus/vmbus_common.c     | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/bus/vmbus/bus_vmbus_driver.h 
b/drivers/bus/vmbus/bus_vmbus_driver.h
index 706ff1fcf5..3f5d379afa 100644
--- a/drivers/bus/vmbus/bus_vmbus_driver.h
+++ b/drivers/bus/vmbus/bus_vmbus_driver.h
@@ -91,7 +91,6 @@ void rte_vmbus_register(struct rte_vmbus_driver *driver);
  *   A pointer to a rte_vmbus_driver structure describing the driver
  *   to be unregistered.
  */
-__rte_internal
 void rte_vmbus_unregister(struct rte_vmbus_driver *driver);
 
 /** Helper for VMBUS device registration from driver instance */
diff --git a/drivers/bus/vmbus/vmbus_common.c b/drivers/bus/vmbus/vmbus_common.c
index 4c64856abb..66e403dfe6 100644
--- a/drivers/bus/vmbus/vmbus_common.c
+++ b/drivers/bus/vmbus/vmbus_common.c
@@ -199,7 +199,6 @@ rte_vmbus_register(struct rte_vmbus_driver *driver)
 }
 
 /* unregister vmbus driver */
-RTE_EXPORT_INTERNAL_SYMBOL(rte_vmbus_unregister)
 void
 rte_vmbus_unregister(struct rte_vmbus_driver *driver)
 {
-- 
2.53.0

Reply via email to