• R
    [SCSI] tgt: fix build when dprintk is defined · a8aae4d3
    Randy Dunlap 提交于
    Fix scsi_tgt_lib build when dprintk is defined:
    Also fix accessors problem when dprintk is defined
    
    drivers/scsi/scsi_tgt_lib.c: In function 'scsi_tgt_cmd_destroy':
    drivers/scsi/scsi_tgt_lib.c:183: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'unsigned int'
    drivers/scsi/scsi_tgt_lib.c: In function 'scsi_tgt_cmd_done':
    drivers/scsi/scsi_tgt_lib.c:330: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'unsigned int'
    drivers/scsi/scsi_tgt_lib.c: In function 'scsi_tgt_transfer_response':
    drivers/scsi/scsi_tgt_lib.c:345: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'unsigned int'
    drivers/scsi/scsi_tgt_lib.c: In function 'scsi_tgt_init_cmd':
    drivers/scsi/scsi_tgt_lib.c:368: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'unsigned int'
    drivers/scsi/scsi_tgt_lib.c: In function 'scsi_tgt_kspace_exec':
    drivers/scsi/scsi_tgt_lib.c:499: warning: format '%lu' expects type 'long unsigned int', but argument 9 has type 'unsigned int'
    drivers/scsi/scsi_tgt_lib.c: In function 'scsi_tgt_kspace_it_nexus_rsp':
    drivers/scsi/scsi_tgt_lib.c:620: error: 'mid' undeclared (first use in this function)
    drivers/scsi/scsi_tgt_lib.c:620: error: (Each undeclared identifier is reported only once
    drivers/scsi/scsi_tgt_lib.c:620: error: for each function it appears in.)
    make[2]: *** [drivers/scsi/scsi_tgt_lib.o] Error 1
    
    [tomo:
    > -     dprintk("%d %d %llx\n", host_no, result, (unsigned long long) mid);
    > +     dprintk("%d %d\n", host_no, result);
    
    'mid' is a typo. I wanted to do:
    
            dprintk("%d %d %llx\n", host_no, result, (unsigned long long)itn_id);
    
    The rest looks ok. Thanks,
    ]
    Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
    Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
    Acked-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
    Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
    a8aae4d3
scsi_tgt_lib.c 16.6 KB