OSDN Git Service

scsi: qla2xxx: Let the compiler check the type of the SCSI command context pointer
authorBart Van Assche <bvanassche@acm.org>
Fri, 9 Aug 2019 03:02:12 +0000 (20:02 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Aug 2019 01:34:09 +0000 (21:34 -0400)
commit5ec9f9040f61dfd0412a53fa2fc1e321727a5a61
treedceb57e73c5000b1b10224d09994cdb496cbbeb9
parent88263208dd23327b56fbd7c2858c389c1153b366
scsi: qla2xxx: Let the compiler check the type of the SCSI command context pointer

Split srb_cmd.ctx into two pointers such that the compiler can check the
type of that pointer.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_iocb.c
drivers/scsi/qla2xxx/qla_nx.c
drivers/scsi/qla2xxx/qla_os.c