Skip to contentSkip to conversation

flag type cleanup

PATCH New Robert Love 1 participant 1 message Sep 3, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 flag type cleanup

Linus,

Attached patch fixes various instances of the interrupt flag variable not being the proper `unsigned long'.

Most notably, kernel/softirq.c ...

Patch is against 2.5.33-BK, please apply.

Robert Love

drivers/cdrom/sbpcd.c +1 -1
diff -urN linux-2.5.33/drivers/cdrom/sbpcd.c linux/drivers/cdrom/sbpcd.c
@@ -1307,7 +1307,7 @@
 	
 	static int cc_DriveReset(void);
 	int i, j, l=0, m, ntries;
-	long flags;
+	unsigned long flags;
 
 	D_S[d].error_state=0;
 	D_S[d].b3=0;
drivers/scsi/sym53c8xx.c +1 -1
diff -urN linux-2.5.33/drivers/scsi/sym53c8xx.c linux/drivers/scsi/sym53c8xx.c
@@ -14115,7 +14115,7 @@
 	if (len)
 		return -EINVAL;
 	else {
-		long flags;
+		unsigned long flags;
 
 		NCR_LOCK_NCB(np, flags);
 		ncr_usercmd (np);
drivers/scsi/sym53c8xx_2/sym_glue.c +1 -1
diff -urN linux-2.5.33/drivers/scsi/sym53c8xx_2/sym_glue.c linux/drivers/scsi/sym53c8xx_2/sym_glue.c
@@ -1686,7 +1686,7 @@
 	if (len)
 		return -EINVAL;
 	else {
-		long flags;
+		unsigned long flags;
 
 		SYM_LOCK_HCB(np, flags);
 		sym_exec_user_command (np, uc);
fs/intermezzo/kml_utils.c +1 -1
diff -urN linux-2.5.33/fs/intermezzo/kml_utils.c linux/fs/intermezzo/kml_utils.c
@@ -25,7 +25,7 @@
         va_list args;
         int  i;
         char *path;
-        long flags;
+        unsigned long flags;
 
         spin_lock_irqsave(&kml_lock, flags);
         va_start(args, format);
kernel/softirq.c +2 -2
diff -urN linux-2.5.33/kernel/softirq.c linux/kernel/softirq.c
@@ -59,7 +59,7 @@
 asmlinkage void do_softirq()
 {
 	__u32 pending;
-	long flags;
+	unsigned long flags;
 	__u32 mask;
 	int cpu;
 
@@ -129,7 +129,7 @@
 
 void raise_softirq(unsigned int nr)
 {
-	long flags;
+	unsigned long flags;
 
 	local_irq_save(flags);
 	cpu_raise_softirq(smp_processor_id(), nr);