Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sfc: Remove unused efx_mae_mport_vf

efx_mae_mport_vf() has been unused since
commit 5227adff37af ("sfc: add mport lookup based on driver's mport data")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Link: https://patch.msgid.link/20241102151625.39535-3-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Dr. David Alan Gilbert and committed by
Jakub Kicinski
70e58249 cc4914d9

-12
-11
drivers/net/ethernet/sfc/mae.c
··· 76 76 *out = EFX_DWORD_VAL(mport); 77 77 } 78 78 79 - void efx_mae_mport_vf(struct efx_nic *efx __always_unused, u32 vf_id, u32 *out) 80 - { 81 - efx_dword_t mport; 82 - 83 - EFX_POPULATE_DWORD_3(mport, 84 - MAE_MPORT_SELECTOR_TYPE, MAE_MPORT_SELECTOR_TYPE_FUNC, 85 - MAE_MPORT_SELECTOR_FUNC_PF_ID, MAE_MPORT_SELECTOR_FUNC_PF_ID_CALLER, 86 - MAE_MPORT_SELECTOR_FUNC_VF_ID, vf_id); 87 - *out = EFX_DWORD_VAL(mport); 88 - } 89 - 90 79 /* Constructs an mport selector from an mport ID, because they're not the same */ 91 80 void efx_mae_mport_mport(struct efx_nic *efx __always_unused, u32 mport_id, u32 *out) 92 81 {
-1
drivers/net/ethernet/sfc/mae.h
··· 23 23 24 24 void efx_mae_mport_wire(struct efx_nic *efx, u32 *out); 25 25 void efx_mae_mport_uplink(struct efx_nic *efx, u32 *out); 26 - void efx_mae_mport_vf(struct efx_nic *efx, u32 vf_id, u32 *out); 27 26 void efx_mae_mport_mport(struct efx_nic *efx, u32 mport_id, u32 *out); 28 27 29 28 int efx_mae_lookup_mport(struct efx_nic *efx, u32 selector, u32 *id);