Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8df1d08b authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

mlxsw: spectrum: Make function mlxsw_sp_kvdl_part_occ() static



Fixes the following sparse warning:

drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c:289:5: warning:
 symbol 'mlxsw_sp_kvdl_part_occ' was not declared. Should it be static?

Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarArkadi Sharshevsky <arkadis@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1da847b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -286,7 +286,7 @@ static void mlxsw_sp_kvdl_parts_fini(struct mlxsw_sp *mlxsw_sp)
		mlxsw_sp_kvdl_part_fini(mlxsw_sp, i);
}

u64 mlxsw_sp_kvdl_part_occ(struct mlxsw_sp_kvdl_part *part)
static u64 mlxsw_sp_kvdl_part_occ(struct mlxsw_sp_kvdl_part *part)
{
	unsigned int nr_entries;
	int bit = -1;