IB/ipath: Fix sparse warning about pointer signedness
authorArthur Jones <arthur.jones@qlogic.com>
Thu, 17 Apr 2008 04:01:06 +0000 (21:01 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 17 Apr 2008 04:01:06 +0000 (21:01 -0700)
commit6ef6aee2f0ff111a2439b02b9d788097ca82f9d1
tree5a09dbe4849b03cb5dc236c600b063ebc93f6726
parentb3d636b0d1b2eb870a55ae196b8f3838e1399554
IB/ipath: Fix sparse warning about pointer signedness

There's no reason for the third parameter of ipath_count_units() to be
a u32 *, so change it to be an int * instead.  This fixes the sparse
warning:

    drivers/infiniband/hw/ipath/ipath_file_ops.c:1654:47: warning: incorrect type in argument 3 (different signedness)
    drivers/infiniband/hw/ipath/ipath_file_ops.c:1654:47:    expected unsigned int [usertype] *maxportsp
    drivers/infiniband/hw/ipath/ipath_file_ops.c:1654:47:    got int *<noident>

Signed-off-by: Arthur Jones <arthur.jones@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_driver.c
drivers/infiniband/hw/ipath/ipath_kernel.h