Skip to content

Commit

Permalink
Merge branch 'sfc-siena_check_caps-fixups'
Browse files Browse the repository at this point in the history
Edward Cree says:

====================
sfc: siena_check_caps fixups

Fix a bug and a build warning introduced in a recent refactor.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 12, 2020
2 parents 966a5c0 + 1b0cde4 commit 26831d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/ethernet/sfc/siena.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,8 +948,8 @@ static int siena_mtd_probe(struct efx_nic *efx)

#endif /* CONFIG_SFC_MTD */

unsigned int siena_check_caps(const struct efx_nic *efx,
u8 flag, u32 offset)
static unsigned int siena_check_caps(const struct efx_nic *efx,
u8 flag, u32 offset)
{
/* Siena did not support MC_CMD_GET_CAPABILITIES */
return 0;
Expand Down Expand Up @@ -1093,4 +1093,5 @@ const struct efx_nic_type siena_a0_nic_type = {
1 << HWTSTAMP_FILTER_PTP_V1_L4_EVENT |
1 << HWTSTAMP_FILTER_PTP_V2_L4_EVENT),
.rx_hash_key_size = 16,
.check_caps = siena_check_caps,
};

0 comments on commit 26831d7

Please sign in to comment.