diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-19 11:26:04 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-10-25 14:33:09 -0300 |
commit | fd92213e9af3b8e5cb3b4d3bf925c9baafb46c9e (patch) | |
tree | 90ca62cc83010d49b8e844754daab16957bba20b /drivers/infiniband/hw/usnic/usnic_fwd.c | |
parent | 50693e66fd3f089851c23a3b03bb6d6680fbdfd3 (diff) | |
download | linux-stable-fd92213e9af3b8e5cb3b4d3bf925c9baafb46c9e.tar.gz linux-stable-fd92213e9af3b8e5cb3b4d3bf925c9baafb46c9e.tar.bz2 linux-stable-fd92213e9af3b8e5cb3b4d3bf925c9baafb46c9e.zip |
RDMA: Constify netdev->dev_addr accesses
netdev->dev_addr will become const soon, make sure drivers propagate the
qualifier.
Link: https://lore.kernel.org/r/20211019182604.1441387-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Acked-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/usnic/usnic_fwd.c')
-rw-r--r-- | drivers/infiniband/hw/usnic/usnic_fwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/usnic/usnic_fwd.c b/drivers/infiniband/hw/usnic/usnic_fwd.c index 398c4c00b932..18a70850b738 100644 --- a/drivers/infiniband/hw/usnic/usnic_fwd.c +++ b/drivers/infiniband/hw/usnic/usnic_fwd.c @@ -103,7 +103,7 @@ void usnic_fwd_dev_free(struct usnic_fwd_dev *ufdev) kfree(ufdev); } -void usnic_fwd_set_mac(struct usnic_fwd_dev *ufdev, char mac[ETH_ALEN]) +void usnic_fwd_set_mac(struct usnic_fwd_dev *ufdev, const char mac[ETH_ALEN]) { spin_lock(&ufdev->lock); memcpy(&ufdev->mac, mac, sizeof(ufdev->mac)); |