提交 5ed3b15b 编写于 作者: I Ira Weiny 提交者: Doug Ledford

IB/hfi1: Remove unused sub-context parameter

subctxt is not used, just remove it.
Reviewed-by: NDean Luick <dean.luick@intel.com>
Signed-off-by: NIra Weiny <ira.weiny@intel.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 3c1091aa
...@@ -94,7 +94,7 @@ static int program_rcvarray(struct file *, unsigned long, struct tid_group *, ...@@ -94,7 +94,7 @@ static int program_rcvarray(struct file *, unsigned long, struct tid_group *,
struct tid_pageset *, unsigned, u16, struct page **, struct tid_pageset *, unsigned, u16, struct page **,
u32 *, unsigned *, unsigned *); u32 *, unsigned *, unsigned *);
static int unprogram_rcvarray(struct file *, u32, struct tid_group **); static int unprogram_rcvarray(struct file *, u32, struct tid_group **);
static void clear_tid_node(struct hfi1_filedata *, u16, struct tid_rb_node *); static void clear_tid_node(struct hfi1_filedata *, struct tid_rb_node *);
static struct mmu_rb_ops tid_rb_ops = { static struct mmu_rb_ops tid_rb_ops = {
.insert = mmu_rb_insert, .insert = mmu_rb_insert,
...@@ -911,12 +911,11 @@ static int unprogram_rcvarray(struct file *fp, u32 tidinfo, ...@@ -911,12 +911,11 @@ static int unprogram_rcvarray(struct file *fp, u32 tidinfo,
if (grp) if (grp)
*grp = node->grp; *grp = node->grp;
clear_tid_node(fd, fd->subctxt, node); clear_tid_node(fd, node);
return 0; return 0;
} }
static void clear_tid_node(struct hfi1_filedata *fd, u16 subctxt, static void clear_tid_node(struct hfi1_filedata *fd, struct tid_rb_node *node)
struct tid_rb_node *node)
{ {
struct hfi1_ctxtdata *uctxt = fd->uctxt; struct hfi1_ctxtdata *uctxt = fd->uctxt;
struct hfi1_devdata *dd = uctxt->dd; struct hfi1_devdata *dd = uctxt->dd;
...@@ -975,7 +974,7 @@ static void unlock_exp_tids(struct hfi1_ctxtdata *uctxt, ...@@ -975,7 +974,7 @@ static void unlock_exp_tids(struct hfi1_ctxtdata *uctxt,
else else
hfi1_mmu_rb_remove(&fd->tid_rb_root, hfi1_mmu_rb_remove(&fd->tid_rb_root,
&node->mmu); &node->mmu);
clear_tid_node(fd, -1, node); clear_tid_node(fd, node);
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册