[ofa-general] [PATCH] include/rdma: move the macro IB_UMEM_MAX_PAGE_CHUNK to ib_umem.h

Dotan Barak dotanb at dev.mellanox.co.il
Tue Jul 31 07:34:23 PDT 2007


After moving the struct ib_umem_chunk from the file 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.

Signed-off-by: Dotan Barak <dotanb at dev.mellanox.co.il>

---

diff --git a/include/rdma/ib_umem.h b/include/rdma/ib_umem.h
index c533d6c..69dea83 100644
--- a/include/rdma/ib_umem.h
+++ b/include/rdma/ib_umem.h
@@ -37,6 +37,11 @@
 #include <linux/scatterlist.h>
 #include <linux/workqueue.h>
 
+#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_ucontext;
 
 struct ib_umem {
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 0627a6a..43b4c97 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -731,11 +731,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;



More information about the general mailing list