]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net/mlx5: When fetching CQEs return CQE instead of void pointer
authorDaniel Jurgens <danielj@mellanox.com>
Wed, 5 Dec 2018 02:03:00 +0000 (18:03 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 10 Dec 2018 02:16:16 +0000 (18:16 -0800)
The function is only used to retrieve CQEs, use the proper type as the
return value.

Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/wq.h

index b1293d153a587e7cd1c99820d1293d6c396136b0..9bc2184a46bc82dcbf989246d363087178a25e57 100644 (file)
@@ -177,7 +177,7 @@ static inline u32 mlx5_cqwq_get_ci(struct mlx5_cqwq *wq)
        return mlx5_cqwq_ctr2ix(wq, wq->cc);
 }
 
-static inline void *mlx5_cqwq_get_wqe(struct mlx5_cqwq *wq, u32 ix)
+static inline struct mlx5_cqe64 *mlx5_cqwq_get_wqe(struct mlx5_cqwq *wq, u32 ix)
 {
        return mlx5_frag_buf_get_wqe(&wq->fbc, ix);
 }