Skip to content

Commit da79554

Browse files
committed
sfc: Fix build with CONFIG_RFS_ACCEL disabled.
drivers/net/ethernet/sfc/ef100_nic.c:835:3: error: 'const struct efx_nic_type' has no member named 'filter_rfs_expire_one' 835 | .filter_rfs_expire_one = efx_mcdi_filter_rfs_expire_one, | ^~~~~~~~~~~~~~~~~~~~~ >> drivers/net/ethernet/sfc/ef100_nic.c:835:27: error: initialization of 'void (*)(struct efx_nic *, u32)' {aka 'void (*)(struct efx_nic *, unsigned int)'} from incompatible pointer type 'bool (*)(struct efx_nic *, u32, unsigned int)' {aka '_Bool (*)(struct efx_nic *, unsigned int, unsigned int)'} [-Werror=incompatible-pointer-types] 835 | .filter_rfs_expire_one = efx_mcdi_filter_rfs_expire_one, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported-by: kernel test robot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2e7199b commit da79554

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/sfc/ef100_nic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,9 @@ const struct efx_nic_type ef100_vf_nic_type = {
832832
.filter_count_rx_used = efx_mcdi_filter_count_rx_used,
833833
.filter_get_rx_id_limit = efx_mcdi_filter_get_rx_id_limit,
834834
.filter_get_rx_ids = efx_mcdi_filter_get_rx_ids,
835+
#ifdef CONFIG_RFS_ACCEL
835836
.filter_rfs_expire_one = efx_mcdi_filter_rfs_expire_one,
837+
#endif
836838

837839
.rx_prefix_size = ESE_GZ_RX_PKT_PREFIX_LEN,
838840
.rx_hash_offset = ESF_GZ_RX_PREFIX_RSS_HASH_LBN / 8,

0 commit comments

Comments
 (0)