diff options
Diffstat (limited to 'drivers/scsi/gdth_proc.c')
-rw-r--r-- | drivers/scsi/gdth_proc.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/scsi/gdth_proc.c b/drivers/scsi/gdth_proc.c index 1258da34fbc..ffb2b21992b 100644 --- a/drivers/scsi/gdth_proc.c +++ b/drivers/scsi/gdth_proc.c | |||
@@ -43,7 +43,7 @@ static int gdth_set_asc_info(struct Scsi_Host *host, char *buffer, | |||
43 | int i, found; | 43 | int i, found; |
44 | gdth_cmd_str gdtcmd; | 44 | gdth_cmd_str gdtcmd; |
45 | gdth_cpar_str *pcpar; | 45 | gdth_cpar_str *pcpar; |
46 | ulong64 paddr; | 46 | u64 paddr; |
47 | 47 | ||
48 | char cmnd[MAX_COMMAND_SIZE]; | 48 | char cmnd[MAX_COMMAND_SIZE]; |
49 | memset(cmnd, 0xff, 12); | 49 | memset(cmnd, 0xff, 12); |
@@ -156,8 +156,8 @@ static int gdth_get_info(char *buffer,char **start,off_t offset,int length, | |||
156 | off_t begin = 0,pos = 0; | 156 | off_t begin = 0,pos = 0; |
157 | int id, i, j, k, sec, flag; | 157 | int id, i, j, k, sec, flag; |
158 | int no_mdrv = 0, drv_no, is_mirr; | 158 | int no_mdrv = 0, drv_no, is_mirr; |
159 | ulong32 cnt; | 159 | u32 cnt; |
160 | ulong64 paddr; | 160 | u64 paddr; |
161 | int rc = -ENOMEM; | 161 | int rc = -ENOMEM; |
162 | 162 | ||
163 | gdth_cmd_str *gdtcmd; | 163 | gdth_cmd_str *gdtcmd; |
@@ -220,14 +220,14 @@ static int gdth_get_info(char *buffer,char **start,off_t offset,int length, | |||
220 | 220 | ||
221 | if (ha->more_proc) | 221 | if (ha->more_proc) |
222 | sprintf(hrec, "%d.%02d.%02d-%c%03X", | 222 | sprintf(hrec, "%d.%02d.%02d-%c%03X", |
223 | (unchar)(ha->binfo.upd_fw_ver>>24), | 223 | (u8)(ha->binfo.upd_fw_ver>>24), |
224 | (unchar)(ha->binfo.upd_fw_ver>>16), | 224 | (u8)(ha->binfo.upd_fw_ver>>16), |
225 | (unchar)(ha->binfo.upd_fw_ver), | 225 | (u8)(ha->binfo.upd_fw_ver), |
226 | ha->bfeat.raid ? 'R':'N', | 226 | ha->bfeat.raid ? 'R':'N', |
227 | ha->binfo.upd_revision); | 227 | ha->binfo.upd_revision); |
228 | else | 228 | else |
229 | sprintf(hrec, "%d.%02d", (unchar)(ha->cpar.version>>8), | 229 | sprintf(hrec, "%d.%02d", (u8)(ha->cpar.version>>8), |
230 | (unchar)(ha->cpar.version)); | 230 | (u8)(ha->cpar.version)); |
231 | 231 | ||
232 | size = sprintf(buffer+len, | 232 | size = sprintf(buffer+len, |
233 | " Driver Ver.: \t%-10s\tFirmware Ver.: \t%s\n", | 233 | " Driver Ver.: \t%-10s\tFirmware Ver.: \t%s\n", |
@@ -281,7 +281,7 @@ static int gdth_get_info(char *buffer,char **start,off_t offset,int length, | |||
281 | pds->bid = ha->raw[i].local_no; | 281 | pds->bid = ha->raw[i].local_no; |
282 | pds->first = 0; | 282 | pds->first = 0; |
283 | pds->entries = ha->raw[i].pdev_cnt; | 283 | pds->entries = ha->raw[i].pdev_cnt; |
284 | cnt = (3*GDTH_SCRATCH/4 - 5 * sizeof(ulong32)) / | 284 | cnt = (3*GDTH_SCRATCH/4 - 5 * sizeof(u32)) / |
285 | sizeof(pds->list[0]); | 285 | sizeof(pds->list[0]); |
286 | if (pds->entries > cnt) | 286 | if (pds->entries > cnt) |
287 | pds->entries = cnt; | 287 | pds->entries = cnt; |
@@ -604,7 +604,7 @@ static int gdth_get_info(char *buffer,char **start,off_t offset,int length, | |||
604 | 604 | ||
605 | size = sprintf(buffer+len, | 605 | size = sprintf(buffer+len, |
606 | " Capacity [MB]:\t%-6d \tStart Sector: \t%d\n", | 606 | " Capacity [MB]:\t%-6d \tStart Sector: \t%d\n", |
607 | (ulong32)(ha->hdr[i].size/2048), ha->hdr[i].start_sec); | 607 | (u32)(ha->hdr[i].size/2048), ha->hdr[i].start_sec); |
608 | len += size; pos = begin + len; | 608 | len += size; pos = begin + len; |
609 | if (pos < offset) { | 609 | if (pos < offset) { |
610 | len = 0; | 610 | len = 0; |
@@ -664,9 +664,9 @@ free_fail: | |||
664 | } | 664 | } |
665 | 665 | ||
666 | static char *gdth_ioctl_alloc(gdth_ha_str *ha, int size, int scratch, | 666 | static char *gdth_ioctl_alloc(gdth_ha_str *ha, int size, int scratch, |
667 | ulong64 *paddr) | 667 | u64 *paddr) |
668 | { | 668 | { |
669 | ulong flags; | 669 | unsigned long flags; |
670 | char *ret_val; | 670 | char *ret_val; |
671 | 671 | ||
672 | if (size == 0) | 672 | if (size == 0) |
@@ -691,9 +691,9 @@ static char *gdth_ioctl_alloc(gdth_ha_str *ha, int size, int scratch, | |||
691 | return ret_val; | 691 | return ret_val; |
692 | } | 692 | } |
693 | 693 | ||
694 | static void gdth_ioctl_free(gdth_ha_str *ha, int size, char *buf, ulong64 paddr) | 694 | static void gdth_ioctl_free(gdth_ha_str *ha, int size, char *buf, u64 paddr) |
695 | { | 695 | { |
696 | ulong flags; | 696 | unsigned long flags; |
697 | 697 | ||
698 | if (buf == ha->pscratch) { | 698 | if (buf == ha->pscratch) { |
699 | spin_lock_irqsave(&ha->smp_lock, flags); | 699 | spin_lock_irqsave(&ha->smp_lock, flags); |
@@ -705,16 +705,16 @@ static void gdth_ioctl_free(gdth_ha_str *ha, int size, char *buf, ulong64 paddr) | |||
705 | } | 705 | } |
706 | 706 | ||
707 | #ifdef GDTH_IOCTL_PROC | 707 | #ifdef GDTH_IOCTL_PROC |
708 | static int gdth_ioctl_check_bin(gdth_ha_str *ha, ushort size) | 708 | static int gdth_ioctl_check_bin(gdth_ha_str *ha, u16 size) |
709 | { | 709 | { |
710 | ulong flags; | 710 | unsigned long flags; |
711 | int ret_val; | 711 | int ret_val; |
712 | 712 | ||
713 | spin_lock_irqsave(&ha->smp_lock, flags); | 713 | spin_lock_irqsave(&ha->smp_lock, flags); |
714 | 714 | ||
715 | ret_val = FALSE; | 715 | ret_val = FALSE; |
716 | if (ha->scratch_busy) { | 716 | if (ha->scratch_busy) { |
717 | if (((gdth_iord_str *)ha->pscratch)->size == (ulong32)size) | 717 | if (((gdth_iord_str *)ha->pscratch)->size == (u32)size) |
718 | ret_val = TRUE; | 718 | ret_val = TRUE; |
719 | } | 719 | } |
720 | spin_unlock_irqrestore(&ha->smp_lock, flags); | 720 | spin_unlock_irqrestore(&ha->smp_lock, flags); |
@@ -724,11 +724,11 @@ static int gdth_ioctl_check_bin(gdth_ha_str *ha, ushort size) | |||
724 | 724 | ||
725 | static void gdth_wait_completion(gdth_ha_str *ha, int busnum, int id) | 725 | static void gdth_wait_completion(gdth_ha_str *ha, int busnum, int id) |
726 | { | 726 | { |
727 | ulong flags; | 727 | unsigned long flags; |
728 | int i; | 728 | int i; |
729 | Scsi_Cmnd *scp; | 729 | Scsi_Cmnd *scp; |
730 | struct gdth_cmndinfo *cmndinfo; | 730 | struct gdth_cmndinfo *cmndinfo; |
731 | unchar b, t; | 731 | u8 b, t; |
732 | 732 | ||
733 | spin_lock_irqsave(&ha->smp_lock, flags); | 733 | spin_lock_irqsave(&ha->smp_lock, flags); |
734 | 734 | ||
@@ -738,8 +738,8 @@ static void gdth_wait_completion(gdth_ha_str *ha, int busnum, int id) | |||
738 | 738 | ||
739 | b = scp->device->channel; | 739 | b = scp->device->channel; |
740 | t = scp->device->id; | 740 | t = scp->device->id; |
741 | if (!SPECIAL_SCP(scp) && t == (unchar)id && | 741 | if (!SPECIAL_SCP(scp) && t == (u8)id && |
742 | b == (unchar)busnum) { | 742 | b == (u8)busnum) { |
743 | cmndinfo->wait_for_completion = 0; | 743 | cmndinfo->wait_for_completion = 0; |
744 | spin_unlock_irqrestore(&ha->smp_lock, flags); | 744 | spin_unlock_irqrestore(&ha->smp_lock, flags); |
745 | while (!cmndinfo->wait_for_completion) | 745 | while (!cmndinfo->wait_for_completion) |