]> err.no Git - linux-2.6/commitdiff
[MIPS] Fix atomic.h build errors.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 30 Nov 2006 15:38:10 +0000 (15:38 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 4 Dec 2006 22:43:13 +0000 (22:43 +0000)
For the definition of atomic64_t atomic.h was relying on <asm/types.h>
having been included previously.  Before changeset
d89d8e0637a5e4e0a12e90c4bc934d0d4c335239 this was happening as a
side effect of including <linux/spinlock.h>.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/atomic.h

index 7978d8e11647d5fc783be1b72a7704c9f8876f7f..365767074c79c68a2f3cf6eb5195b72baece1df8 100644 (file)
@@ -375,7 +375,7 @@ static __inline__ int atomic_sub_if_positive(int i, atomic_t * v)
 
 #ifdef CONFIG_64BIT
 
-typedef struct { volatile __s64 counter; } atomic64_t;
+typedef struct { volatile long counter; } atomic64_t;
 
 #define ATOMIC64_INIT(i)    { (i) }