summaryrefslogtreecommitdiff
path: root/linux/src/drivers/scsi/advansys.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2009-12-09 02:59:26 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-03-20 02:09:13 +0100
commit735cf19fdebf4a3df886426a51cad78b7ef025f2 (patch)
tree9e944a89cb6ce3c5f3a61df6050c170d49291711 /linux/src/drivers/scsi/advansys.c
parent5b6966db94a3f3113f7795d9513c832bd1a43f26 (diff)
Change types holding cpu flags from int to long
On amd64 the cpu flags is a 64-bit word, and long on 32-bit systems is 32-bit wide anyway. * linux/dev/glue/kmem.c (linux_kmalloc, linux_kfree, __get_free_pages, free_pages): Use unsigned long instead of unsigned. * linux/dev/include/asm-i386/system.h (__save_flags, __restore_flags): Likewise. * linux/dev/kernel/printk.c (printk): Likewise. * linux/src/drivers/scsi/advansys.c (DvcEnterCritical, DvcLeaveCritical, advansys_queuecommand, advansys_abort, advansys_reset, advansys_interrupt, interrupts_enabled, AdvISR): Likewise. * linux/src/drivers/scsi/aha152x.c (aha152x_intr): Likewise. * linux/src/drivers/scsi/aha1542.c (aha1542_intr_handle): Likewise. * linux/src/drivers/scsi/aic7xxx.c (aic7xxx_done_cmds_complete): Likewise. * linux/src/drivers/scsi/ultrastor.c (log_ultrastor_abort, ultrastor_queuecommand, ultrastor_abort): Likewise.
Diffstat (limited to 'linux/src/drivers/scsi/advansys.c')
-rw-r--r--linux/src/drivers/scsi/advansys.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/linux/src/drivers/scsi/advansys.c b/linux/src/drivers/scsi/advansys.c
index b7bfcc1..ef61fac 100644
--- a/linux/src/drivers/scsi/advansys.c
+++ b/linux/src/drivers/scsi/advansys.c
@@ -2033,8 +2033,8 @@ STATIC void AscSetISAPNPWaitForKey(void);
STATIC uchar AscGetChipIRQ(PortAddr, ushort);
STATIC uchar AscSetChipIRQ(PortAddr, uchar, ushort);
STATIC ushort AscGetChipBiosAddress(PortAddr, ushort);
-STATIC int DvcEnterCritical(void);
-STATIC void DvcLeaveCritical(int);
+STATIC long DvcEnterCritical(void);
+STATIC void DvcLeaveCritical(long);
STATIC void DvcInPortWords(PortAddr, ushort *, int);
STATIC void DvcOutPortWords(PortAddr, ushort *, int);
STATIC void DvcOutPortDWords(PortAddr, ulong *, int);
@@ -2870,8 +2870,8 @@ typedef struct adv_scsi_req_q {
/*
* Device drivers must define the following functions.
*/
-STATIC int DvcEnterCritical(void);
-STATIC void DvcLeaveCritical(int);
+STATIC long DvcEnterCritical(void);
+STATIC void DvcLeaveCritical(long);
STATIC void DvcSleepMilliSecond(ulong);
STATIC uchar DvcAdvReadPCIConfigByte(ADV_DVC_VAR *, ushort);
STATIC void DvcAdvWritePCIConfigByte(ADV_DVC_VAR *, ushort, uchar);
@@ -5400,7 +5400,7 @@ advansys_queuecommand(Scsi_Cmnd *scp, void (*done)(Scsi_Cmnd *))
{
struct Scsi_Host *shp;
asc_board_t *boardp;
- int flags;
+ long flags;
Scsi_Cmnd *done_scp;
shp = scp->host;
@@ -5495,7 +5495,7 @@ advansys_abort(Scsi_Cmnd *scp)
asc_board_t *boardp;
ASC_DVC_VAR *asc_dvc_varp;
ADV_DVC_VAR *adv_dvc_varp;
- int flags;
+ long flags;
int do_scsi_done;
int scp_found;
Scsi_Cmnd *done_scp = NULL;
@@ -5734,7 +5734,7 @@ advansys_reset(Scsi_Cmnd *scp, unsigned int reset_flags)
asc_board_t *boardp;
ASC_DVC_VAR *asc_dvc_varp;
ADV_DVC_VAR *adv_dvc_varp;
- int flags;
+ long flags;
Scsi_Cmnd *done_scp = NULL, *last_scp = NULL;
Scsi_Cmnd *tscp, *new_last_scp;
int do_scsi_done;
@@ -6269,7 +6269,7 @@ advansys_interrupt(int irq, void *dev_id, struct pt_regs *regs)
#endif /* version >= v1.3.70 */
{
#if LINUX_VERSION_CODE < ASC_LINUX_VERSION(2,1,95)
- int flags;
+ long flags;
#else /* version >= v2.1.95 */
unsigned long flags;
#endif /* version >= v2.1.95 */
@@ -9227,10 +9227,10 @@ DvcSleepMilliSecond(ulong n)
}
}
-STATIC int
+STATIC long
DvcEnterCritical(void)
{
- int flags;
+ long flags;
save_flags(flags);
cli();
@@ -9238,7 +9238,7 @@ DvcEnterCritical(void)
}
STATIC void
-DvcLeaveCritical(int flags)
+DvcLeaveCritical(long flags)
{
restore_flags(flags);
}
@@ -10198,7 +10198,7 @@ asc_prt_hex(char *f, uchar *s, int l)
STATIC int
interrupts_enabled(void)
{
- int flags;
+ long flags;
save_flags(flags);
if (flags & 0x0200) {
@@ -15078,7 +15078,7 @@ AdvISR(ADV_DVC_VAR *asc_dvc)
uchar int_stat;
ushort next_done_loc, target_bit;
int completed_q;
- int flags;
+ long flags;
ADV_SCSI_REQ_Q *scsiq;
ASC_REQ_SENSE *sense_data;
int ret;