diff options
author | Arthur Jones <arthur.jones@qlogic.com> | 2008-04-17 00:01:06 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-17 00:01:06 -0400 |
commit | 6ef6aee2f0ff111a2439b02b9d788097ca82f9d1 (patch) | |
tree | 5a09dbe4849b03cb5dc236c600b063ebc93f6726 /drivers/infiniband | |
parent | b3d636b0d1b2eb870a55ae196b8f3838e1399554 (diff) |
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_driver.c | 4 | ||||
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_kernel.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c index ca4d0acc6786..367f2a38744e 100644 --- a/drivers/infiniband/hw/ipath/ipath_driver.c +++ b/drivers/infiniband/hw/ipath/ipath_driver.c | |||
@@ -234,12 +234,12 @@ struct ipath_devdata *ipath_lookup(int unit) | |||
234 | return dd; | 234 | return dd; |
235 | } | 235 | } |
236 | 236 | ||
237 | int ipath_count_units(int *npresentp, int *nupp, u32 *maxportsp) | 237 | int ipath_count_units(int *npresentp, int *nupp, int *maxportsp) |
238 | { | 238 | { |
239 | int nunits, npresent, nup; | 239 | int nunits, npresent, nup; |
240 | struct ipath_devdata *dd; | 240 | struct ipath_devdata *dd; |
241 | unsigned long flags; | 241 | unsigned long flags; |
242 | u32 maxports; | 242 | int maxports; |
243 | 243 | ||
244 | nunits = npresent = nup = maxports = 0; | 244 | nunits = npresent = nup = maxports = 0; |
245 | 245 | ||
diff --git a/drivers/infiniband/hw/ipath/ipath_kernel.h b/drivers/infiniband/hw/ipath/ipath_kernel.h index ecf3f7ff7717..3d4a254ffca0 100644 --- a/drivers/infiniband/hw/ipath/ipath_kernel.h +++ b/drivers/infiniband/hw/ipath/ipath_kernel.h | |||
@@ -718,7 +718,7 @@ extern struct ipath_devdata *ipath_lookup(int unit); | |||
718 | int ipath_init_chip(struct ipath_devdata *, int); | 718 | int ipath_init_chip(struct ipath_devdata *, int); |
719 | int ipath_enable_wc(struct ipath_devdata *dd); | 719 | int ipath_enable_wc(struct ipath_devdata *dd); |
720 | void ipath_disable_wc(struct ipath_devdata *dd); | 720 | void ipath_disable_wc(struct ipath_devdata *dd); |
721 | int ipath_count_units(int *npresentp, int *nupp, u32 *maxportsp); | 721 | int ipath_count_units(int *npresentp, int *nupp, int *maxportsp); |
722 | void ipath_shutdown_device(struct ipath_devdata *); | 722 | void ipath_shutdown_device(struct ipath_devdata *); |
723 | void ipath_clear_freeze(struct ipath_devdata *); | 723 | void ipath_clear_freeze(struct ipath_devdata *); |
724 | 724 | ||