• A
    scsi: lpfc: use proper format string for dma_addr_t · 825c6abb
    Arnd Bergmann 提交于
    dma_addr_t may be either u32 or u64, depending on the kernel configuration,
    and we get a warning for the 32-bit case:
    
    drivers/scsi/lpfc/lpfc_nvme.c: In function 'lpfc_nvme_ls_req':
    drivers/scsi/lpfc/lpfc_logmsg.h:52:52: error: format '%llu' expects argument of type 'long long unsigned int', but argument 11 has type 'dma_addr_t {aka unsigned int}' [-Werror=format=]
    drivers/scsi/lpfc/lpfc_logmsg.h:52:52: error: format '%llu' expects argument of type 'long long unsigned int', but argument 12 has type 'dma_addr_t {aka unsigned int}' [-Werror=format=]
    drivers/scsi/lpfc/lpfc_nvme.c: In function 'lpfc_nvme_ls_abort':
    drivers/scsi/lpfc/lpfc_logmsg.h:52:52: error: format '%llu' expects argument of type 'long long unsigned int', but argument 11 has type 'dma_addr_t {aka unsigned int}' [-Werror=format=]
    drivers/scsi/lpfc/lpfc_logmsg.h:52:52: error: format '%llu' expects argument of type 'long long unsigned int', but argument 12 has type 'dma_addr_t {aka unsigned int}' [-Werror=format=]
    
    printk has a special "%pad" format string that passes the dma address by
    reference to solve this problem.
    
    Fixes: 01649561 ("scsi: lpfc: NVME Initiator: bind to nvme_fc api")
    Signed-off-by: NArnd Bergmann <arnd@arndb.de>
    Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
    825c6abb
lpfc_nvme.c 75.5 KB