• Andrew Morton's avatar
    [PATCH] Fix qla2xxx warnings · 93734809
    Andrew Morton authored
    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.
    93734809
qla_dbg.c 31.3 KB