From afff2aa3e34ea4c739327d71ab14a7b754a14483 Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Tue, 28 Apr 2020 14:37:26 +0100 Subject: [PATCH] net/sfc/base: fix build when EVB is enabled Make local MCDI helper functions static. Fixes: f0bda0cd680d ("net/sfc/base: add MCDI wrappers for vPort and vSwitch in EVB") Fixes: ea94d14dbea0 ("net/sfc/base: provide APIs to configure and reset vPort") Cc: stable@dpdk.org Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_evb.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/sfc/base/ef10_evb.c b/drivers/net/sfc/base/ef10_evb.c index d541db4980..aeeaa5189f 100644 --- a/drivers/net/sfc/base/ef10_evb.c +++ b/drivers/net/sfc/base/ef10_evb.c @@ -27,7 +27,7 @@ ef10_evb_fini( EFSYS_ASSERT(EFX_FAMILY_IS_EF10(enp)); } - __checkReturn efx_rc_t +static __checkReturn efx_rc_t efx_mcdi_vswitch_alloc( __in efx_nic_t *enp, __in efx_vport_id_t vport_id, @@ -94,7 +94,7 @@ fail1: return (rc); } - __checkReturn efx_rc_t +static __checkReturn efx_rc_t efx_mcdi_vswitch_free( __in efx_nic_t *enp) { @@ -125,7 +125,7 @@ fail1: return (rc); } - __checkReturn efx_rc_t +static __checkReturn efx_rc_t efx_mcdi_vport_alloc( __in efx_nic_t *enp, __in efx_vport_type_t vport_type, @@ -188,7 +188,7 @@ fail1: return (rc); } - __checkReturn efx_rc_t +static __checkReturn efx_rc_t efx_mcdi_vport_free( __in efx_nic_t *enp, __in efx_vport_id_t vport_id) @@ -219,7 +219,7 @@ fail1: return (rc); } - __checkReturn efx_rc_t +static __checkReturn efx_rc_t efx_mcdi_vport_mac_addr_add( __in efx_nic_t *enp, __in efx_vport_id_t vport_id, @@ -254,7 +254,7 @@ fail1: return (rc); } - __checkReturn efx_rc_t +static __checkReturn efx_rc_t efx_mcdi_vport_mac_addr_del( __in efx_nic_t *enp, __in efx_vport_id_t vport_id, @@ -289,7 +289,7 @@ fail1: return (rc); } - __checkReturn efx_rc_t +static __checkReturn efx_rc_t efx_mcdi_port_assign( __in efx_nic_t *enp, __in efx_vport_id_t vport_id, @@ -326,7 +326,7 @@ fail1: return (rc); } - __checkReturn efx_rc_t +static __checkReturn efx_rc_t efx_mcdi_vport_reconfigure( __in efx_nic_t *enp, __in efx_vport_id_t vport_id, -- 2.20.1