mlxsw: spectrum: Make function mlxsw_sp_kvdl_part_occ() static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 17 Jan 2018 03:27:33 +0000 (03:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jan 2018 19:35:32 +0000 (14:35 -0500)
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c

index cfacc17..55f9d2d 100644 (file)
@@ -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;