Title: [6639] trunk/arch/blackfin/include/asm: fix storage type of "flags" specified to irq save/restore functions
- Revision
- 6639
- Author
- vapier
- Date
- 2009-06-10 19:40:21 -0500 (Wed, 10 Jun 2009)
Log Message
fix storage type of "flags" specified to irq save/restore functions
Modified Paths
Diff
Modified: trunk/arch/blackfin/include/asm/atomic.h (6638 => 6639)
--- trunk/arch/blackfin/include/asm/atomic.h 2009-06-11 00:21:45 UTC (rev 6638)
+++ trunk/arch/blackfin/include/asm/atomic.h 2009-06-11 00:40:21 UTC (rev 6639)
@@ -92,7 +92,7 @@
static inline void atomic_add(int i, atomic_t *v)
{
- long flags;
+ unsigned long flags;
local_irq_save_hw(flags);
v->counter += i;
@@ -101,7 +101,7 @@
static inline void atomic_sub(int i, atomic_t *v)
{
- long flags;
+ unsigned long flags;
local_irq_save_hw(flags);
v->counter -= i;
@@ -112,7 +112,7 @@
static inline int atomic_add_return(int i, atomic_t *v)
{
int __temp = 0;
- long flags;
+ unsigned long flags;
local_irq_save_hw(flags);
v->counter += i;
@@ -126,7 +126,7 @@
static inline int atomic_sub_return(int i, atomic_t *v)
{
int __temp = 0;
- long flags;
+ unsigned long flags;
local_irq_save_hw(flags);
v->counter -= i;
@@ -138,7 +138,7 @@
static inline void atomic_inc(volatile atomic_t *v)
{
- long flags;
+ unsigned long flags;
local_irq_save_hw(flags);
v->counter++;
@@ -147,7 +147,7 @@
static inline void atomic_dec(volatile atomic_t *v)
{
- long flags;
+ unsigned long flags;
local_irq_save_hw(flags);
v->counter--;
@@ -156,7 +156,7 @@
static inline void atomic_clear_mask(unsigned int mask, atomic_t *v)
{
- long flags;
+ unsigned long flags;
local_irq_save_hw(flags);
v->counter &= ~mask;
@@ -165,7 +165,7 @@
static inline void atomic_set_mask(unsigned int mask, atomic_t *v)
{
- long flags;
+ unsigned long flags;
local_irq_save_hw(flags);
v->counter |= mask;
Modified: trunk/arch/blackfin/include/asm/bitops.h (6638 => 6639)
--- trunk/arch/blackfin/include/asm/bitops.h 2009-06-11 00:21:45 UTC (rev 6638)
+++ trunk/arch/blackfin/include/asm/bitops.h 2009-06-11 00:40:21 UTC (rev 6639)
@@ -109,7 +109,8 @@
static inline void change_bit(int nr, volatile unsigned long *addr)
{
- int mask, flags;
+ int mask;
+ unsigned long flags;
unsigned long *ADDR = (unsigned long *)addr;
ADDR += nr >> 5;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits