From: Jason Gunthorpe <jgg@xxxxxxxxxxxx> The only remaining user wasn't right, so get rid of them. Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx> --- libibverbs/verbs.h | 2 -- providers/mlx4/verbs.c | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libibverbs/verbs.h b/libibverbs/verbs.h index 5325f8fe412276..cb96f33322dccc 100644 --- a/libibverbs/verbs.h +++ b/libibverbs/verbs.h @@ -1608,12 +1608,10 @@ struct ibv_context { enum ibv_cq_init_attr_mask { IBV_CQ_INIT_ATTR_MASK_FLAGS = 1 << 0, - IBV_CQ_INIT_ATTR_MASK_RESERVED = 1 << 1 }; enum ibv_create_cq_attr_flags { IBV_CREATE_CQ_ATTR_SINGLE_THREADED = 1 << 0, - IBV_CREATE_CQ_ATTR_RESERVED = 1 << 1, }; struct ibv_cq_init_attr_ex { diff --git a/providers/mlx4/verbs.c b/providers/mlx4/verbs.c index 3c8bcaae4765e9..9385d5b38a3d4b 100644 --- a/providers/mlx4/verbs.c +++ b/providers/mlx4/verbs.c @@ -574,7 +574,8 @@ struct ibv_cq_ex *mlx4_create_cq_ex(struct ibv_context *context, .comp_mask = cq_attr->comp_mask, .flags = cq_attr->flags}; - if (!check_comp_mask(cq_attr_c.comp_mask, IBV_CQ_INIT_ATTR_MASK_RESERVED - 1)) { + if (!check_comp_mask(cq_attr_c.comp_mask, + IBV_CQ_INIT_ATTR_MASK_FLAGS)) { errno = EINVAL; return NULL; } -- 2.16.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html