Skip to content

Commit

Permalink
[MIPS] Fix atomic.h build errors.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralf Baechle committed Dec 4, 2006
1 parent 05e4396 commit 4f8b5c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-mips/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) }

Expand Down

0 comments on commit 4f8b5c7

Please sign in to comment.