mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-14 08:13:56 +08:00
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: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Arkadi Sharshevsky <arkadis@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1da847b992
commit
8df1d08bf2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user