diff options
author | Dean Luick <dean.luick@intel.com> | 2016-07-28 12:27:27 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-08-02 22:46:21 -0400 |
commit | fc87879ae237785704a6b6a54c1c5a47c395662c (patch) | |
tree | 470854b088dd94686ff8c378059378963abc64ee /drivers/infiniband | |
parent | 8e1f52df978ec17475e1184ed9f72078babcbbfa (diff) | |
download | linux-stable-fc87879ae237785704a6b6a54c1c5a47c395662c.tar.gz linux-stable-fc87879ae237785704a6b6a54c1c5a47c395662c.tar.bz2 linux-stable-fc87879ae237785704a6b6a54c1c5a47c395662c.zip |
IB/hfi1: Remove unused function hfi1_mmu_rb_search
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/hfi1/mmu_rb.c | 17 | ||||
-rw-r--r-- | drivers/infiniband/hw/hfi1/mmu_rb.h | 2 |
2 files changed, 0 insertions, 19 deletions
diff --git a/drivers/infiniband/hw/hfi1/mmu_rb.c b/drivers/infiniband/hw/hfi1/mmu_rb.c index b7a80aa1ae30..9289bfaa4911 100644 --- a/drivers/infiniband/hw/hfi1/mmu_rb.c +++ b/drivers/infiniband/hw/hfi1/mmu_rb.c @@ -223,23 +223,6 @@ static void __mmu_rb_remove(struct mmu_rb_handler *handler, handler->ops->remove(handler->root, node, mm); } -struct mmu_rb_node *hfi1_mmu_rb_search(struct rb_root *root, unsigned long addr, - unsigned long len) -{ - struct mmu_rb_handler *handler = find_mmu_handler(root); - struct mmu_rb_node *node; - unsigned long flags; - - if (!handler) - return ERR_PTR(-EINVAL); - - spin_lock_irqsave(&handler->lock, flags); - node = __mmu_rb_search(handler, addr, len); - spin_unlock_irqrestore(&handler->lock, flags); - - return node; -} - struct mmu_rb_node *hfi1_mmu_rb_extract(struct rb_root *root, unsigned long addr, unsigned long len) { diff --git a/drivers/infiniband/hw/hfi1/mmu_rb.h b/drivers/infiniband/hw/hfi1/mmu_rb.h index 7a57b9c49d27..215c728e52cd 100644 --- a/drivers/infiniband/hw/hfi1/mmu_rb.h +++ b/drivers/infiniband/hw/hfi1/mmu_rb.h @@ -68,8 +68,6 @@ int hfi1_mmu_rb_register(struct rb_root *root, struct mmu_rb_ops *ops); void hfi1_mmu_rb_unregister(struct rb_root *); int hfi1_mmu_rb_insert(struct rb_root *, struct mmu_rb_node *); void hfi1_mmu_rb_remove(struct rb_root *, struct mmu_rb_node *); -struct mmu_rb_node *hfi1_mmu_rb_search(struct rb_root *, unsigned long, - unsigned long); struct mmu_rb_node *hfi1_mmu_rb_extract(struct rb_root *, unsigned long, unsigned long); |