efx_family() is only called from efx_family_probe_bar() in the same
file. Make it static and drop the declaration.

Signed-off-by: Stephen Hemminger <[email protected]>
---
 drivers/common/sfc_efx/base/efx.h     | 8 --------
 drivers/common/sfc_efx/base/efx_nic.c | 2 +-
 2 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/drivers/common/sfc_efx/base/efx.h 
b/drivers/common/sfc_efx/base/efx.h
index 5626563cb8..5c58bdb9a9 100644
--- a/drivers/common/sfc_efx/base/efx.h
+++ b/drivers/common/sfc_efx/base/efx.h
@@ -80,14 +80,6 @@ typedef struct efx_bar_region_s {
        efsys_dma_addr_t        ebr_length;
 } efx_bar_region_t;
 
-/* The function is deprecated. It is used only if Riverhead is not supported. 
*/
-extern __checkReturn   efx_rc_t
-efx_family(
-       __in            uint16_t venid,
-       __in            uint16_t devid,
-       __out           efx_family_t *efp,
-       __out           unsigned int *membarp);
-
 #if EFSYS_OPT_PCI
 
 /* PCIe interface numbers for multi-host configurations. */
diff --git a/drivers/common/sfc_efx/base/efx_nic.c 
b/drivers/common/sfc_efx/base/efx_nic.c
index f21c59fb00..9c7d17823f 100644
--- a/drivers/common/sfc_efx/base/efx_nic.c
+++ b/drivers/common/sfc_efx/base/efx_nic.c
@@ -8,7 +8,7 @@
 #include "efx_impl.h"
 
 
-       __checkReturn   efx_rc_t
+static __checkReturn   efx_rc_t
 efx_family(
        __in            uint16_t venid,
        __in            uint16_t devid,
-- 
2.53.0

Reply via email to