diff options
-rw-r--r-- | drivers/scsi/3w-9xxx.c | 12 | ||||
-rw-r--r-- | drivers/scsi/3w-sas.c | 8 |
2 files changed, 13 insertions, 7 deletions
diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c index 05293babb031..2d655a97b959 100644 --- a/drivers/scsi/3w-9xxx.c +++ b/drivers/scsi/3w-9xxx.c | |||
@@ -143,7 +143,9 @@ static int twa_poll_status_gone(TW_Device_Extension *tw_dev, u32 flag, int secon | |||
143 | static int twa_post_command_packet(TW_Device_Extension *tw_dev, int request_id, char internal); | 143 | static int twa_post_command_packet(TW_Device_Extension *tw_dev, int request_id, char internal); |
144 | static int twa_reset_device_extension(TW_Device_Extension *tw_dev); | 144 | static int twa_reset_device_extension(TW_Device_Extension *tw_dev); |
145 | static int twa_reset_sequence(TW_Device_Extension *tw_dev, int soft_reset); | 145 | static int twa_reset_sequence(TW_Device_Extension *tw_dev, int soft_reset); |
146 | static int twa_scsiop_execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_sg, TW_SG_Entry *sglistarg); | 146 | static int twa_scsiop_execute_scsi(TW_Device_Extension *tw_dev, int request_id, |
147 | unsigned char *cdb, int use_sg, | ||
148 | TW_SG_Entry *sglistarg); | ||
147 | static void twa_scsiop_execute_scsi_complete(TW_Device_Extension *tw_dev, int request_id); | 149 | static void twa_scsiop_execute_scsi_complete(TW_Device_Extension *tw_dev, int request_id); |
148 | static char *twa_string_lookup(twa_message_type *table, unsigned int aen_code); | 150 | static char *twa_string_lookup(twa_message_type *table, unsigned int aen_code); |
149 | 151 | ||
@@ -278,7 +280,7 @@ out: | |||
278 | static int twa_aen_drain_queue(TW_Device_Extension *tw_dev, int no_check_reset) | 280 | static int twa_aen_drain_queue(TW_Device_Extension *tw_dev, int no_check_reset) |
279 | { | 281 | { |
280 | int request_id = 0; | 282 | int request_id = 0; |
281 | char cdb[TW_MAX_CDB_LEN]; | 283 | unsigned char cdb[TW_MAX_CDB_LEN]; |
282 | TW_SG_Entry sglist[1]; | 284 | TW_SG_Entry sglist[1]; |
283 | int finished = 0, count = 0; | 285 | int finished = 0, count = 0; |
284 | TW_Command_Full *full_command_packet; | 286 | TW_Command_Full *full_command_packet; |
@@ -423,7 +425,7 @@ static void twa_aen_queue_event(TW_Device_Extension *tw_dev, TW_Command_Apache_H | |||
423 | /* This function will read the aen queue from the isr */ | 425 | /* This function will read the aen queue from the isr */ |
424 | static int twa_aen_read_queue(TW_Device_Extension *tw_dev, int request_id) | 426 | static int twa_aen_read_queue(TW_Device_Extension *tw_dev, int request_id) |
425 | { | 427 | { |
426 | char cdb[TW_MAX_CDB_LEN]; | 428 | unsigned char cdb[TW_MAX_CDB_LEN]; |
427 | TW_SG_Entry sglist[1]; | 429 | TW_SG_Entry sglist[1]; |
428 | TW_Command_Full *full_command_packet; | 430 | TW_Command_Full *full_command_packet; |
429 | int retval = 1; | 431 | int retval = 1; |
@@ -1798,7 +1800,9 @@ out: | |||
1798 | static DEF_SCSI_QCMD(twa_scsi_queue) | 1800 | static DEF_SCSI_QCMD(twa_scsi_queue) |
1799 | 1801 | ||
1800 | /* This function hands scsi cdb's to the firmware */ | 1802 | /* This function hands scsi cdb's to the firmware */ |
1801 | static int twa_scsiop_execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_sg, TW_SG_Entry *sglistarg) | 1803 | static int twa_scsiop_execute_scsi(TW_Device_Extension *tw_dev, int request_id, |
1804 | unsigned char *cdb, int use_sg, | ||
1805 | TW_SG_Entry *sglistarg) | ||
1802 | { | 1806 | { |
1803 | TW_Command_Full *full_command_packet; | 1807 | TW_Command_Full *full_command_packet; |
1804 | TW_Command_Apache *command_packet; | 1808 | TW_Command_Apache *command_packet; |
diff --git a/drivers/scsi/3w-sas.c b/drivers/scsi/3w-sas.c index 266bdac75304..480cf82700e9 100644 --- a/drivers/scsi/3w-sas.c +++ b/drivers/scsi/3w-sas.c | |||
@@ -287,7 +287,9 @@ static int twl_post_command_packet(TW_Device_Extension *tw_dev, int request_id) | |||
287 | } /* End twl_post_command_packet() */ | 287 | } /* End twl_post_command_packet() */ |
288 | 288 | ||
289 | /* This function hands scsi cdb's to the firmware */ | 289 | /* This function hands scsi cdb's to the firmware */ |
290 | static int twl_scsiop_execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_sg, TW_SG_Entry_ISO *sglistarg) | 290 | static int twl_scsiop_execute_scsi(TW_Device_Extension *tw_dev, int request_id, |
291 | unsigned char *cdb, int use_sg, | ||
292 | TW_SG_Entry_ISO *sglistarg) | ||
291 | { | 293 | { |
292 | TW_Command_Full *full_command_packet; | 294 | TW_Command_Full *full_command_packet; |
293 | TW_Command_Apache *command_packet; | 295 | TW_Command_Apache *command_packet; |
@@ -372,7 +374,7 @@ out: | |||
372 | /* This function will read the aen queue from the isr */ | 374 | /* This function will read the aen queue from the isr */ |
373 | static int twl_aen_read_queue(TW_Device_Extension *tw_dev, int request_id) | 375 | static int twl_aen_read_queue(TW_Device_Extension *tw_dev, int request_id) |
374 | { | 376 | { |
375 | char cdb[TW_MAX_CDB_LEN]; | 377 | unsigned char cdb[TW_MAX_CDB_LEN]; |
376 | TW_SG_Entry_ISO sglist[1]; | 378 | TW_SG_Entry_ISO sglist[1]; |
377 | TW_Command_Full *full_command_packet; | 379 | TW_Command_Full *full_command_packet; |
378 | int retval = 1; | 380 | int retval = 1; |
@@ -554,7 +556,7 @@ out: | |||
554 | static int twl_aen_drain_queue(TW_Device_Extension *tw_dev, int no_check_reset) | 556 | static int twl_aen_drain_queue(TW_Device_Extension *tw_dev, int no_check_reset) |
555 | { | 557 | { |
556 | int request_id = 0; | 558 | int request_id = 0; |
557 | char cdb[TW_MAX_CDB_LEN]; | 559 | unsigned char cdb[TW_MAX_CDB_LEN]; |
558 | TW_SG_Entry_ISO sglist[1]; | 560 | TW_SG_Entry_ISO sglist[1]; |
559 | int finished = 0, count = 0; | 561 | int finished = 0, count = 0; |
560 | TW_Command_Full *full_command_packet; | 562 | TW_Command_Full *full_command_packet; |