From: Ralf Baechle Date: Thu, 30 Nov 2006 15:38:10 +0000 (+0000) Subject: [MIPS] Fix atomic.h build errors. X-Git-Tag: firefly_0821_release~30985^2~47^2~108^2~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4f8b5c70967de5fd27f2092f1f8da47f4705bb67;p=firefly-linux-kernel-4.4.55.git [MIPS] Fix atomic.h build errors. For the definition of atomic64_t atomic.h was relying on having been included previously. Before changeset d89d8e0637a5e4e0a12e90c4bc934d0d4c335239 this was happening as a side effect of including . Signed-off-by: Ralf Baechle --- diff --git a/include/asm-mips/atomic.h b/include/asm-mips/atomic.h index 7978d8e11647..365767074c79 100644 --- a/include/asm-mips/atomic.h +++ b/include/asm-mips/atomic.h @@ -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) }