From 0a833dff03a3ec8ca724682ef5d73464d2477b2e Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Fri, 6 Dec 2019 16:20:22 +0000 Subject: [PATCH] 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 MFC after: 1 week Sponsored by: Mellanox Technologies --- 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 e7da451ddb7..c9204aacd5e 100644 --- a/sys/dev/mlx5/qp.h +++ b/sys/dev/mlx5/qp.h @@ -143,11 +143,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 {