Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: Make atomic64_t() return "long", not "long long"

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>

authored by

Bjorn Helgaas and committed by
Catalin Marinas
ba6bf8c8 a501e324

+1 -1
+1 -1
arch/arm64/include/asm/atomic.h
··· 162 162 */ 163 163 #define ATOMIC64_INIT(i) { (i) } 164 164 165 - #define atomic64_read(v) (*(volatile long long *)&(v)->counter) 165 + #define atomic64_read(v) (*(volatile long *)&(v)->counter) 166 166 #define atomic64_set(v,i) (((v)->counter) = (i)) 167 167 168 168 static inline void atomic64_add(u64 i, atomic64_t *v)