Commit fd012f1c authored by oulijun's avatar oulijun Committed by Jason Gunthorpe

RDMA/hns: Add names to function arguments in function pointers

This patch mainly fix some style warings matched with the new checkpatch
requirement. The warning as follows:

WARNING: function definition argument 'struct hns_roce_cq *' should also have
an identifier name
Signed-off-by: default avatarLijun Ou <oulijun@huawei.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent c2799119
...@@ -345,8 +345,8 @@ struct hns_roce_cq { ...@@ -345,8 +345,8 @@ struct hns_roce_cq {
struct hns_roce_cq_buf hr_buf; struct hns_roce_cq_buf hr_buf;
spinlock_t lock; spinlock_t lock;
struct ib_umem *umem; struct ib_umem *umem;
void (*comp)(struct hns_roce_cq *); void (*comp)(struct hns_roce_cq *cq);
void (*event)(struct hns_roce_cq *, enum hns_roce_event); void (*event)(struct hns_roce_cq *cq, enum hns_roce_event event_type);
struct hns_roce_uar *uar; struct hns_roce_uar *uar;
u32 cq_depth; u32 cq_depth;
...@@ -486,8 +486,8 @@ struct hns_roce_qp { ...@@ -486,8 +486,8 @@ struct hns_roce_qp {
u32 atomic_rd_en; u32 atomic_rd_en;
u32 pkey_index; u32 pkey_index;
u32 qkey; u32 qkey;
void (*event)(struct hns_roce_qp *, void (*event)(struct hns_roce_qp *qp,
enum hns_roce_event); enum hns_roce_event event_type);
unsigned long qpn; unsigned long qpn;
atomic_t refcount; atomic_t refcount;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment