Commit:     65d470b3ea52ee1402499d6fcb4632296452e5b1
Parent:     ce423ef50ee1b6b7db63c748034423aa0afce224
Author:     Roland Dreier <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 9 19:59:04 2007 -0700
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 19:59:04 2007 -0700

    IB: find_first_zero_bit() takes unsigned pointer
    Fix sparse warning
        drivers/infiniband/core/device.c:142:6: warning: incorrect type in 
argument 1 (different signedness)
        drivers/infiniband/core/device.c:142:6:    expected unsigned long const 
        drivers/infiniband/core/device.c:142:6:    got long *[assigned] inuse
    by making the local variable inuse unsigned.  Does not affect generated
    code at all.
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
 drivers/infiniband/core/device.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c
index 2506c43..5ac5ffe 100644
--- a/drivers/infiniband/core/device.c
+++ b/drivers/infiniband/core/device.c
@@ -120,12 +120,12 @@ static struct ib_device *__ib_device_get_by_name(const 
char *name)
 static int alloc_name(char *name)
-       long *inuse;
+       unsigned long *inuse;
        char buf[IB_DEVICE_NAME_MAX];
        struct ib_device *device;
        int i;
-       inuse = (long *) get_zeroed_page(GFP_KERNEL);
+       inuse = (unsigned long *) get_zeroed_page(GFP_KERNEL);
        if (!inuse)
                return -ENOMEM;
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

Reply via email to