On 16/11/2020 22:23, Jason Gunthorpe wrote: > Remove the old query_device support code, it is now replaced by > ibv_cmd_query_device_any() > > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Shouldn't the legacy fallback in ibv_query_device_ex() be removed as well? /** * ibv_query_device_ex - Get extended device properties */ static inline int ibv_query_device_ex(struct ibv_context *context, const struct ibv_query_device_ex_input *input, struct ibv_device_attr_ex *attr) { struct verbs_context *vctx; int ret; if (input && input->comp_mask) return EINVAL; vctx = verbs_get_ctx_op(context, query_device_ex); if (!vctx) goto legacy; ret = vctx->query_device_ex(context, input, attr, sizeof(*attr)); if (ret == EOPNOTSUPP || ret == ENOSYS) goto legacy; return ret; legacy: memset(attr, 0, sizeof(*attr)); ret = ibv_query_device(context, &attr->orig_attr); return ret; }