public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] flag type cleanup
@ 2002-09-03 14:52 Robert Love
  0 siblings, 0 replies; only message in thread
From: Robert Love @ 2002-09-03 14:52 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

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

diff -urN linux-2.5.33/drivers/cdrom/sbpcd.c linux/drivers/cdrom/sbpcd.c
--- linux-2.5.33/drivers/cdrom/sbpcd.c	Sat Aug 31 18:04:51 2002
+++ linux/drivers/cdrom/sbpcd.c	Tue Sep  3 10:38:59 2002
@@ -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;
diff -urN linux-2.5.33/drivers/scsi/sym53c8xx.c linux/drivers/scsi/sym53c8xx.c
--- linux-2.5.33/drivers/scsi/sym53c8xx.c	Sat Aug 31 18:04:49 2002
+++ linux/drivers/scsi/sym53c8xx.c	Tue Sep  3 10:33:06 2002
@@ -14115,7 +14115,7 @@
 	if (len)
 		return -EINVAL;
 	else {
-		long flags;
+		unsigned long flags;
 
 		NCR_LOCK_NCB(np, flags);
 		ncr_usercmd (np);
diff -urN linux-2.5.33/drivers/scsi/sym53c8xx_2/sym_glue.c linux/drivers/scsi/sym53c8xx_2/sym_glue.c
--- linux-2.5.33/drivers/scsi/sym53c8xx_2/sym_glue.c	Sat Aug 31 18:05:23 2002
+++ linux/drivers/scsi/sym53c8xx_2/sym_glue.c	Tue Sep  3 10:33:25 2002
@@ -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);
diff -urN linux-2.5.33/fs/intermezzo/kml_utils.c linux/fs/intermezzo/kml_utils.c
--- linux-2.5.33/fs/intermezzo/kml_utils.c	Sat Aug 31 18:05:27 2002
+++ linux/fs/intermezzo/kml_utils.c	Tue Sep  3 10:39:54 2002
@@ -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);
diff -urN linux-2.5.33/kernel/softirq.c linux/kernel/softirq.c
--- linux-2.5.33/kernel/softirq.c	Sat Aug 31 18:04:52 2002
+++ linux/kernel/softirq.c	Tue Sep  3 10:31:14 2002
@@ -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);




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-03 14:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-03 14:52 [PATCH] flag type cleanup Robert Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox