aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aha152x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aha152x.c')
-rw-r--r--drivers/scsi/aha152x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c
index e86eb6a921fc..e77b72f78006 100644
--- a/drivers/scsi/aha152x.c
+++ b/drivers/scsi/aha152x.c
@@ -321,7 +321,7 @@ static LIST_HEAD(aha152x_host_list);
321#define CMDINFO(cmd) \ 321#define CMDINFO(cmd) \
322 (cmd) ? ((cmd)->device->host->host_no) : -1, \ 322 (cmd) ? ((cmd)->device->host->host_no) : -1, \
323 (cmd) ? ((cmd)->device->id & 0x0f) : -1, \ 323 (cmd) ? ((cmd)->device->id & 0x0f) : -1, \
324 (cmd) ? ((cmd)->device->lun & 0x07) : -1 324 (cmd) ? ((u8)(cmd)->device->lun & 0x07) : -1
325 325
326static inline void 326static inline void
327CMD_INC_RESID(struct scsi_cmnd *cmd, int inc) 327CMD_INC_RESID(struct scsi_cmnd *cmd, int inc)
@@ -1602,7 +1602,7 @@ static void busfree_run(struct Scsi_Host *shpnt)
1602#if defined(AHA152X_DEBUG) 1602#if defined(AHA152X_DEBUG)
1603 int hostno=DONE_SC->device->host->host_no; 1603 int hostno=DONE_SC->device->host->host_no;
1604 int id=DONE_SC->device->id & 0xf; 1604 int id=DONE_SC->device->id & 0xf;
1605 int lun=DONE_SC->device->lun & 0x7; 1605 int lun=((u8)DONE_SC->device->lun) & 0x7;
1606#endif 1606#endif
1607 Scsi_Cmnd *ptr = DONE_SC; 1607 Scsi_Cmnd *ptr = DONE_SC;
1608 DONE_SC=NULL; 1608 DONE_SC=NULL;
@@ -2984,7 +2984,7 @@ static void get_command(struct seq_file *m, Scsi_Cmnd * ptr)
2984 int i; 2984 int i;
2985 2985
2986 SPRINTF("%p: target=%d; lun=%d; cmnd=( ", 2986 SPRINTF("%p: target=%d; lun=%d; cmnd=( ",
2987 ptr, ptr->device->id, ptr->device->lun); 2987 ptr, ptr->device->id, (u8)ptr->device->lun);
2988 2988
2989 for (i = 0; i < COMMAND_SIZE(ptr->cmnd[0]); i++) 2989 for (i = 0; i < COMMAND_SIZE(ptr->cmnd[0]); i++)
2990 SPRINTF("0x%02x ", ptr->cmnd[i]); 2990 SPRINTF("0x%02x ", ptr->cmnd[i]);