git: 47cc457bd6c1 - main - mlx5: Fix mismatch in array bounds.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Dec 2022 20:34:16 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=47cc457bd6c16352b47d3fb1288f745482a082af commit 47cc457bd6c16352b47d3fb1288f745482a082af Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-12-07 20:32:54 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-12-07 20:32:54 +0000 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 --- sys/dev/mlx5/vport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,