• Ido Schimmel's avatar
    mlxsw: spectrum: Fix sparse warnings · 1a9234e6
    Ido Schimmel authored
    drivers/net/ethernet/mellanox/mlxsw//spectrum.c:251:28: warning: symbol
    'mlxsw_sp_span_entry_find' was not declared. Should it be static?
    drivers/net/ethernet/mellanox/mlxsw//spectrum.c:265:28: warning: symbol
    'mlxsw_sp_span_entry_get' was not declared. Should it be static?
    drivers/net/ethernet/mellanox/mlxsw//spectrum.c:367:56: warning: mixing
    different enum types
    drivers/net/ethernet/mellanox/mlxsw//spectrum.c:367:56:     int enum
    mlxsw_sp_span_type  versus
    drivers/net/ethernet/mellanox/mlxsw//spectrum.c:367:56:     int enum
    mlxsw_reg_mpar_i_e
    ...
    drivers/net/ethernet/mellanox/mlxsw//spectrum_buffers.c:598:32: warning:
    mixing different enum types
    drivers/net/ethernet/mellanox/mlxsw//spectrum_buffers.c:598:32:     int
    enum mlxsw_reg_sbxx_dir  versus
    drivers/net/ethernet/mellanox/mlxsw//spectrum_buffers.c:598:32:     int
    enum devlink_sb_pool_type
    drivers/net/ethernet/mellanox/mlxsw//spectrum_buffers.c:600:39: warning:
    mixing different enum types
    drivers/net/ethernet/mellanox/mlxsw//spectrum_buffers.c:600:39:     int
    enum mlxsw_reg_sbpr_mode  versus
    drivers/net/ethernet/mellanox/mlxsw//spectrum_buffers.c:600:39:     int
    enum devlink_sb_threshold_type
    ...
    drivers/net/ethernet/mellanox/mlxsw//spectrum_router.c:255:54: warning:
    mixing different enum types
    drivers/net/ethernet/mellanox/mlxsw//spectrum_router.c:255:54:     int
    enum mlxsw_sp_l3proto  versus
    drivers/net/ethernet/mellanox/mlxsw//spectrum_router.c:255:54:     int
    enum mlxsw_reg_ralxx_protocol
    ...
    drivers/net/ethernet/mellanox/mlxsw//spectrum_router.c:1749:6: warning:
    symbol 'mlxsw_sp_fib_entry_put' was not declared. Should it be static?
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1a9234e6
spectrum_buffers.c 27.8 KB