Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=92ddc447ce7382e36b72a240697c00bf4beb8d75
Commit:     92ddc447ce7382e36b72a240697c00bf4beb8d75
Parent:     bfb3ea125174813cdf87b1120caf0c9bd580283e
Author:     Dotan Barak <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 1 13:33:56 2007 +0300
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Fri Aug 3 10:45:18 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
---
 drivers/infiniband/core/umem.c |    5 +++++
 include/rdma/ib_verbs.h        |    5 -----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/infiniband/core/umem.c b/drivers/infiniband/core/umem.c
index 26d0470..664d2fa 100644
--- a/drivers/infiniband/core/umem.c
+++ b/drivers/infiniband/core/umem.c
@@ -40,6 +40,11 @@
 
 #include "uverbs.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]))
+
 static void __ib_umem_release(struct ib_device *dev, struct ib_umem *umem, int 
dirty)
 {
        struct ib_umem_chunk *chunk, *tmp;
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 7a99f11..4bea182 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to