diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-12-07 20:32:54 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-12-07 20:32:54 +0000 |
commit | 47cc457bd6c16352b47d3fb1288f745482a082af (patch) | |
tree | 3f3e436b359bc7d2e54e5c71b0a3808a5102d132 | |
parent | 415ccf51122eab7b55978a1db00b484a06ffc84b (diff) | |
download | src-47cc457bd6c16352b47d3fb1288f745482a082af.tar.gz src-47cc457bd6c16352b47d3fb1288f745482a082af.zip |
mlx5: Fix mismatch in array bounds.
Reported by: GCC -Warray-parameter
Reviewed by: hselasky, imp, emaste (earlier version)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D37549
-rw-r--r-- | sys/dev/mlx5/vport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mlx5/vport.h b/sys/dev/mlx5/vport.h index c8eabd1051d4..844ae92602cd 100644 --- a/sys/dev/mlx5/vport.h +++ b/sys/dev/mlx5/vport.h @@ -84,7 +84,7 @@ int mlx5_modify_nic_vport_promisc(struct mlx5_core_dev *mdev, int mlx5_query_nic_vport_mac_address(struct mlx5_core_dev *mdev, u16 vport, u8 *addr); int mlx5_modify_nic_vport_mac_address(struct mlx5_core_dev *dev, - u16 vport, u8 mac[ETH_ALEN]); + u16 vport, u8 *addr); int mlx5_set_nic_vport_current_mac(struct mlx5_core_dev *mdev, int vport, bool other_vport, u8 *addr); int mlx5_query_nic_vport_min_inline(struct mlx5_core_dev *mdev, |