]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] flag type cleanup
authorRobert Love <rml@tech9.net>
Tue, 3 Sep 2002 05:43:06 +0000 (22:43 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 3 Sep 2002 05:43:06 +0000 (22:43 -0700)
This fixes various instances of the interrupt flag variable not being
the proper `unsigned long', most notably kernel/softirq.c ...

drivers/cdrom/sbpcd.c
drivers/scsi/sym53c8xx.c
drivers/scsi/sym53c8xx_2/sym_glue.c
fs/intermezzo/kml_utils.c
kernel/softirq.c

index c822f2d3546e3047715cf34da88722153ad5d3ad..2b2625b5ba2ffcbd8dd6b5e1905b74b9af684bb3 100644 (file)
@@ -1307,7 +1307,7 @@ static int cmd_out_T(void)
        
        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;
index 98a24b6bd1960db4fcee7e0a08d0c7560d717f6d..5558ae08a692609dbee94d80fe02f6f5d9dcb4e6 100644 (file)
@@ -14115,7 +14115,7 @@ printk("ncr_user_command: data=%ld\n", uc->data);
        if (len)
                return -EINVAL;
        else {
-               long flags;
+               unsigned long flags;
 
                NCR_LOCK_NCB(np, flags);
                ncr_usercmd (np);
index 04875c35c6a2143049e5091f1b09f45c7a042521..564802b6c8c24e3c4f822e51d7ffdd197148118d 100644 (file)
@@ -1686,7 +1686,7 @@ printk("sym_user_command: data=%ld\n", uc->data);
        if (len)
                return -EINVAL;
        else {
-               long flags;
+               unsigned long flags;
 
                SYM_LOCK_HCB(np, flags);
                sym_exec_user_command (np, uc);
index b1c60f90deab5e0638cf06803019b26c0d13cfd4..45f7735f33d0c281034fa8b4a4f21ff698212fbd 100644 (file)
@@ -25,7 +25,7 @@ char * bdup_printf (char *format, ...)
         va_list args;
         int  i;
         char *path;
-        long flags;
+        unsigned long flags;
 
         spin_lock_irqsave(&kml_lock, flags);
         va_start(args, format);
index 4405e83aaf21888b033ce04bcd741e30ad035c47..14cff3f400f843383342c9fa5a2e8a71961ada2b 100644 (file)
@@ -59,7 +59,7 @@ static inline void wakeup_softirqd(unsigned cpu)
 asmlinkage void do_softirq()
 {
        __u32 pending;
-       long flags;
+       unsigned long flags;
        __u32 mask;
        int cpu;
 
@@ -129,7 +129,7 @@ inline void cpu_raise_softirq(unsigned int cpu, unsigned int nr)
 
 void raise_softirq(unsigned int nr)
 {
-       long flags;
+       unsigned long flags;
 
        local_irq_save(flags);
        cpu_raise_softirq(smp_processor_id(), nr);