rte_gpu_attach() and rte_gpu_notify() are not called by any driver. The cuda driver only uses rte_gpu_allocate(), rte_gpu_complete_new(), rte_gpu_release() and rte_gpu_get_by_name(), which keep their export.
Signed-off-by: Stephen Hemminger <[email protected]> --- lib/gpudev/gpudev.c | 2 -- lib/gpudev/gpudev_driver.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/lib/gpudev/gpudev.c b/lib/gpudev/gpudev.c index 93a30464f0..11e8728211 100644 --- a/lib/gpudev/gpudev.c +++ b/lib/gpudev/gpudev.c @@ -245,7 +245,6 @@ rte_gpu_allocate(const char *name) return dev; } -RTE_EXPORT_INTERNAL_SYMBOL(rte_gpu_attach) struct rte_gpu * rte_gpu_attach(const char *name) { @@ -506,7 +505,6 @@ gpu_free_callbacks(struct rte_gpu *dev) rte_rwlock_write_unlock(&gpu_callback_lock); } -RTE_EXPORT_INTERNAL_SYMBOL(rte_gpu_notify) void rte_gpu_notify(struct rte_gpu *dev, enum rte_gpu_event event) { diff --git a/lib/gpudev/gpudev_driver.h b/lib/gpudev/gpudev_driver.h index b7621f6e5a..3f06bf89f0 100644 --- a/lib/gpudev/gpudev_driver.h +++ b/lib/gpudev/gpudev_driver.h @@ -95,7 +95,6 @@ __rte_internal struct rte_gpu *rte_gpu_allocate(const char *name); /* First step of initialization in secondary process. */ -__rte_internal struct rte_gpu *rte_gpu_attach(const char *name); /* Last step of initialization. */ @@ -107,7 +106,6 @@ __rte_internal int rte_gpu_release(struct rte_gpu *dev); /* Call registered callbacks. No multi-process event. */ -__rte_internal void rte_gpu_notify(struct rte_gpu *dev, enum rte_gpu_event); #ifdef __cplusplus -- 2.53.0

