From d86de7d563c04b2bd1bba0d273ad3dca46e0278d Mon Sep 17 00:00:00 2001 From: hselasky Date: Wed, 25 Dec 2019 09:34:16 +0000 Subject: [PATCH] MFC r355447: Fix compilation issue with mlx5core and sparc64 (gcc48): sys/dev/mlx5/mlx5_en/mlx5_en_tx.c:335: error: requested alignment is not a constant Sponsored by: Mellanox Technologies git-svn-id: svn://svn.freebsd.org/base/stable/10@356074 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/dev/mlx5/qp.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/dev/mlx5/qp.h b/sys/dev/mlx5/qp.h index ad88436a4..89f69db34 100644 --- a/sys/dev/mlx5/qp.h +++ b/sys/dev/mlx5/qp.h @@ -135,11 +135,8 @@ enum { MLX5_WQE_CTRL_SOLICITED = 1 << 1, }; -enum { - MLX5_SEND_WQE_DS = 16, - MLX5_SEND_WQE_BB = 64, -}; - +#define MLX5_SEND_WQE_DS 16 +#define MLX5_SEND_WQE_BB 64 #define MLX5_SEND_WQEBB_NUM_DS (MLX5_SEND_WQE_BB / MLX5_SEND_WQE_DS) enum { -- 2.42.0