On Fri, Feb 09, 2018 at 07:44:57PM +0800, Yixian Liu wrote: > diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h > index 42c3b5a..2da30fc 100644 > +++ b/drivers/infiniband/hw/hns/hns_roce_device.h > @@ -105,6 +105,10 @@ > #define PAGES_SHIFT_24 24 > #define PAGES_SHIFT_32 32 > > +enum { > + HNS_ROCE_SUPPORT_RQ_RECORD_DB = BIT(0), > +}; This belongs in the uapi header same remark in userspace. Dont' use BIT in uapi headers. Same remark for the other cap_flags in other patches > diff --git a/include/uapi/rdma/hns-abi.h b/include/uapi/rdma/hns-abi.h > index 5d74019..1b05d00 100644 > +++ b/include/uapi/rdma/hns-abi.h > @@ -48,6 +48,10 @@ struct hns_roce_ib_create_qp { > __u8 reserved[5]; > }; > > +struct hns_roce_ib_create_qp_resp { > + __u32 cap_flags; > +}; > + > struct hns_roce_ib_alloc_ucontext_resp { > __u32 qp_tab_size; > }; All structures in this file need to be aligned to 64 bits, add the implicit padding necessary. Jasn -- 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