aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Weiny <[email protected]>2016-07-28 12:27:29 -0400
committerDoug Ledford <[email protected]>2016-08-02 22:46:21 -0400
commit862548dace34690b6a477f32e8ce68b50f7cbdf6 (patch)
treef5f366e0a570f5bfc0b0b4008bd4ad1d92573b3e
parentac335e7e8079d08441aba46ce2c07398b603719f (diff)
IB/hfi1: Add parameter names to callback declarations
This makes it more clear what these functions are operating on. Reviewed-by: Dean Luick <[email protected]> Signed-off-by: Ira Weiny <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
-rw-r--r--drivers/infiniband/hw/hfi1/mmu_rb.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/hfi1/mmu_rb.h b/drivers/infiniband/hw/hfi1/mmu_rb.h
index 215c728e52cd..45e7245d813b 100644
--- a/drivers/infiniband/hw/hfi1/mmu_rb.h
+++ b/drivers/infiniband/hw/hfi1/mmu_rb.h
@@ -57,11 +57,12 @@ struct mmu_rb_node {
};
struct mmu_rb_ops {
- bool (*filter)(struct mmu_rb_node *, unsigned long, unsigned long);
- int (*insert)(struct rb_root *, struct mmu_rb_node *);
- void (*remove)(struct rb_root *, struct mmu_rb_node *,
- struct mm_struct *);
- int (*invalidate)(struct rb_root *, struct mmu_rb_node *);
+ bool (*filter)(struct mmu_rb_node *node, unsigned long addr,
+ unsigned long len);
+ int (*insert)(struct rb_root *root, struct mmu_rb_node *mnode);
+ void (*remove)(struct rb_root *root, struct mmu_rb_node *mnode,
+ struct mm_struct *mm);
+ int (*invalidate)(struct rb_root *root, struct mmu_rb_node *node);
};
int hfi1_mmu_rb_register(struct rb_root *root, struct mmu_rb_ops *ops);