Commit d3a7fafa authored by Robert Love's avatar Robert Love Committed by Linus Torvalds

[PATCH] flag type cleanup

This fixes various instances of the interrupt flag variable not being
the proper `unsigned long', most notably kernel/softirq.c ...
parent 2a3f7d06
...@@ -1307,7 +1307,7 @@ static int cmd_out_T(void) ...@@ -1307,7 +1307,7 @@ static int cmd_out_T(void)
static int cc_DriveReset(void); static int cc_DriveReset(void);
int i, j, l=0, m, ntries; int i, j, l=0, m, ntries;
long flags; unsigned long flags;
D_S[d].error_state=0; D_S[d].error_state=0;
D_S[d].b3=0; D_S[d].b3=0;
......
...@@ -14115,7 +14115,7 @@ printk("ncr_user_command: data=%ld\n", uc->data); ...@@ -14115,7 +14115,7 @@ printk("ncr_user_command: data=%ld\n", uc->data);
if (len) if (len)
return -EINVAL; return -EINVAL;
else { else {
long flags; unsigned long flags;
NCR_LOCK_NCB(np, flags); NCR_LOCK_NCB(np, flags);
ncr_usercmd (np); ncr_usercmd (np);
......
...@@ -1686,7 +1686,7 @@ printk("sym_user_command: data=%ld\n", uc->data); ...@@ -1686,7 +1686,7 @@ printk("sym_user_command: data=%ld\n", uc->data);
if (len) if (len)
return -EINVAL; return -EINVAL;
else { else {
long flags; unsigned long flags;
SYM_LOCK_HCB(np, flags); SYM_LOCK_HCB(np, flags);
sym_exec_user_command (np, uc); sym_exec_user_command (np, uc);
......
...@@ -25,7 +25,7 @@ char * bdup_printf (char *format, ...) ...@@ -25,7 +25,7 @@ char * bdup_printf (char *format, ...)
va_list args; va_list args;
int i; int i;
char *path; char *path;
long flags; unsigned long flags;
spin_lock_irqsave(&kml_lock, flags); spin_lock_irqsave(&kml_lock, flags);
va_start(args, format); va_start(args, format);
......
...@@ -59,7 +59,7 @@ static inline void wakeup_softirqd(unsigned cpu) ...@@ -59,7 +59,7 @@ static inline void wakeup_softirqd(unsigned cpu)
asmlinkage void do_softirq() asmlinkage void do_softirq()
{ {
__u32 pending; __u32 pending;
long flags; unsigned long flags;
__u32 mask; __u32 mask;
int cpu; int cpu;
...@@ -129,7 +129,7 @@ inline void cpu_raise_softirq(unsigned int cpu, unsigned int nr) ...@@ -129,7 +129,7 @@ inline void cpu_raise_softirq(unsigned int cpu, unsigned int nr)
void raise_softirq(unsigned int nr) void raise_softirq(unsigned int nr)
{ {
long flags; unsigned long flags;
local_irq_save(flags); local_irq_save(flags);
cpu_raise_softirq(smp_processor_id(), nr); cpu_raise_softirq(smp_processor_id(), nr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment