]> git.hungrycats.org Git - linux/commit
[PATCH] Fix qla2xxx warnings
authorAndrew Morton <akpm@osdl.org>
Sat, 7 Feb 2004 04:49:38 +0000 (22:49 -0600)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Sat, 7 Feb 2004 04:49:38 +0000 (22:49 -0600)
commit937348097de4ef831edf8c91dc8e86e486b11518
tree21820ff97942a951745344d44e37e1fd0be40cb1
parent2040078eefe660a2ca7faf975dc3a4a31c0b8c92
[PATCH] Fix qla2xxx warnings

On ppc64:

drivers/scsi/qla2xxx/qla_dbg.c: In function `qla2300_fw_dump':
drivers/scsi/qla2xxx/qla_dbg.c:64: warning: int format, different type arg (arg 5)
drivers/scsi/qla2xxx/qla_dbg.c: In function `qla2100_fw_dump':
drivers/scsi/qla2xxx/qla_dbg.c:600: warning: int format, different type arg (arg 5)
drivers/scsi/qla2xxx/qla_os.c: In function `qla2x00_proc_info':
drivers/scsi/qla2xxx/qla_os.c:2386: warning: cast to pointer from integer of different size
drivers/scsi/qla2xxx/qla_os.c:2386: warning: cast to pointer from integer of different size

The qla_dbg() warning occurs because on ppc64 size_t is a long.  sizeof
returns a size_t.

I used %Z rather than the more modern %z, because gcc-2.95 warns about %z.
printk supports both.

For printing out dma_addr_t's, we really don't know what size they are here,
so treating them as unsigned long long is best.
drivers/scsi/qla2xxx/qla_dbg.c
drivers/scsi/qla2xxx/qla_os.c