From 47cc457bd6c16352b47d3fb1288f745482a082af Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 7 Dec 2022 12:32:54 -0800 Subject: 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(-) (limited to 'sys/dev/mlx5/vport.h') 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, -- cgit v1.3