rte_gpu_notify() is only called from gpudev.c when a device is
added or removed. Make it static, with a forward declaration
alongside the existing one for gpu_free_callbacks().

Signed-off-by: Stephen Hemminger <[email protected]>
---
 lib/gpudev/gpudev.c        | 3 ++-
 lib/gpudev/gpudev_driver.h | 3 ---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/gpudev/gpudev.c b/lib/gpudev/gpudev.c
index 78bfd5bed3..9ee956366d 100644
--- a/lib/gpudev/gpudev.c
+++ b/lib/gpudev/gpudev.c
@@ -50,6 +50,7 @@ struct rte_gpu_callback {
 };
 static rte_rwlock_t gpu_callback_lock = RTE_RWLOCK_INITIALIZER;
 static void gpu_free_callbacks(struct rte_gpu *dev);
+static void rte_gpu_notify(struct rte_gpu *dev, enum rte_gpu_event event);
 
 RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_gpu_init, 21.11)
 int
@@ -456,7 +457,7 @@ gpu_free_callbacks(struct rte_gpu *dev)
        rte_rwlock_write_unlock(&gpu_callback_lock);
 }
 
-void
+static void
 rte_gpu_notify(struct rte_gpu *dev, enum rte_gpu_event event)
 {
        int16_t dev_id;
diff --git a/lib/gpudev/gpudev_driver.h b/lib/gpudev/gpudev_driver.h
index 7a569beb67..87b896ad46 100644
--- a/lib/gpudev/gpudev_driver.h
+++ b/lib/gpudev/gpudev_driver.h
@@ -102,9 +102,6 @@ void rte_gpu_complete_new(struct rte_gpu *dev);
 __rte_internal
 int rte_gpu_release(struct rte_gpu *dev);
 
-/* Call registered callbacks. No multi-process event. */
-void rte_gpu_notify(struct rte_gpu *dev, enum rte_gpu_event);
-
 #ifdef __cplusplus
 }
 #endif
-- 
2.53.0

Reply via email to