summaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_verbs.h
diff options
context:
space:
mode:
authorDotan Barak <dotanb@dev.mellanox.co.il>2007-08-01 13:33:56 +0300
committerRoland Dreier <rolandd@cisco.com>2007-08-03 10:45:18 -0700
commit92ddc447ce7382e36b72a240697c00bf4beb8d75 (patch)
tree0368be72cdeed0d9d90e35d1a77bea50fb3208f0 /include/rdma/ib_verbs.h
parentbfb3ea125174813cdf87b1120caf0c9bd580283e (diff)
downloadlinux-92ddc447ce7382e36b72a240697c00bf4beb8d75.tar.gz
linux-92ddc447ce7382e36b72a240697c00bf4beb8d75.tar.bz2
linux-92ddc447ce7382e36b72a240697c00bf4beb8d75.zip
IB: Move the macro IB_UMEM_MAX_PAGE_CHUNK() to umem.c
After moving the definition of struct ib_umem_chunk from ib_verbs.h to ib_umem.h there isn't any reason for the macro IB_UMEM_MAX_PAGE_CHUNK to stay in ib_verbs.h. Move the macro to umem.c, the only place where it is used. Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/rdma/ib_verbs.h')
-rw-r--r--include/rdma/ib_verbs.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 7a99f1125d24..4bea182d7116 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -733,11 +733,6 @@ struct ib_udata {
size_t outlen;
};
-#define IB_UMEM_MAX_PAGE_CHUNK \
- ((PAGE_SIZE - offsetof(struct ib_umem_chunk, page_list)) / \
- ((void *) &((struct ib_umem_chunk *) 0)->page_list[1] - \
- (void *) &((struct ib_umem_chunk *) 0)->page_list[0]))
-
struct ib_pd {
struct ib_device *device;
struct ib_uobject *uobject;