diff options
author | Jiri Pirko <jiri@mellanox.com> | 2016-10-21 16:07:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-23 17:21:28 -0400 |
commit | 412791df394bbf3547204b9875c7f5648e3dcf91 (patch) | |
tree | 30f7af7649d463bca855fb734a436309e4753abc /drivers/net/ethernet/mellanox/mlxsw/pci.c | |
parent | fe0612dc902a299c78f46c776038b91ecf64e8d8 (diff) | |
download | linux-412791df394bbf3547204b9875c7f5648e3dcf91.tar.gz |
mlxsw: item: Make char *buf arg constant for getters
Enforce const for getter buf args.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/pci.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/pci.c b/drivers/net/ethernet/mellanox/mlxsw/pci.c index e742bd4e8894..6f368068aa15 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/pci.c +++ b/drivers/net/ethernet/mellanox/mlxsw/pci.c @@ -238,8 +238,9 @@ static bool mlxsw_pci_elem_hw_owned(struct mlxsw_pci_queue *q, bool owner_bit) return owner_bit != !!(q->consumer_counter & q->count); } -static char *mlxsw_pci_queue_sw_elem_get(struct mlxsw_pci_queue *q, - u32 (*get_elem_owner_func)(char *)) +static char * +mlxsw_pci_queue_sw_elem_get(struct mlxsw_pci_queue *q, + u32 (*get_elem_owner_func)(const char *)) { struct mlxsw_pci_queue_elem_info *elem_info; char *elem; |