aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/user_exp_rcv.c
diff options
context:
space:
mode:
authorHarish Chegondi <harish.chegondi@intel.com>2017-08-21 18:27:16 -0700
committerDoug Ledford <dledford@redhat.com>2017-08-28 19:12:21 -0400
commitddd3affb50015c3c7ee218b83e73e646aa48e212 (patch)
treeb421c8029bc7580c193d0d21c6acf2c8f96e6bd7 /drivers/infiniband/hw/hfi1/user_exp_rcv.c
parentIB/hfi1: Fix the bail out code in pin_vector_pages() function (diff)
downloadlinux-dev-ddd3affb50015c3c7ee218b83e73e646aa48e212.tar.xz
linux-dev-ddd3affb50015c3c7ee218b83e73e646aa48e212.zip
IB/hfi1: Remove duplicate definitions of num_user_pages() function
num_user_pages() function has been defined in both user_exp_rcv.c file and user_sdma.c file. Move the function definition to a header file so there is only one definition in the source repo. Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Harish Chegondi <harish.chegondi@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/user_exp_rcv.c')
-rw-r--r--drivers/infiniband/hw/hfi1/user_exp_rcv.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/hfi1/user_exp_rcv.c b/drivers/infiniband/hw/hfi1/user_exp_rcv.c
index 04be178b72f8..026790ee0e84 100644
--- a/drivers/infiniband/hw/hfi1/user_exp_rcv.c
+++ b/drivers/infiniband/hw/hfi1/user_exp_rcv.c
@@ -67,11 +67,6 @@ struct tid_pageset {
u16 count;
};
-#define num_user_pages(vaddr, len) \
- (1 + (((((unsigned long)(vaddr) + \
- (unsigned long)(len) - 1) & PAGE_MASK) - \
- ((unsigned long)vaddr & PAGE_MASK)) >> PAGE_SHIFT))
-
static void unlock_exp_tids(struct hfi1_ctxtdata *uctxt,
struct exp_tid_set *set,
struct hfi1_filedata *fd);