]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm64: Make atomic64_t() return "long", not "long long"
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 8 May 2014 21:13:47 +0000 (22:13 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 9 May 2014 15:00:19 +0000 (16:00 +0100)
arm64 sets CONFIG_64BIT=y and hence uses the "long counter" atomic64_t
definition from include/linux/types.h.  Make atomic64_read() return "long",
not "long long".

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/atomic.h

index 0237f0867e377a1acc4f3840e1a9307cff6a3fe8..9c48d74652cb9e8a23b2dd2ad693425dda571e24 100644 (file)
@@ -162,7 +162,7 @@ static inline int __atomic_add_unless(atomic_t *v, int a, int u)
  */
 #define ATOMIC64_INIT(i) { (i) }
 
-#define atomic64_read(v)       (*(volatile long long *)&(v)->counter)
+#define atomic64_read(v)       (*(volatile long *)&(v)->counter)
 #define atomic64_set(v,i)      (((v)->counter) = (i))
 
 static inline void atomic64_add(u64 i, atomic64_t *v)