Skip to contentSkip to conversation

asm-generic: solve the conflict of atomic64_t type with linux/types.h and asm-generic/atomic64.h

PATCH New Guan Xuetao 1 participant 1 message Apr 20, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 asm-generic: solve the conflict of atomic64_t type with linux/types.h and asm-generic/atomic64.h

---
 include/asm-generic/atomic64.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/asm-generic/atomic64.h +2 -0
index b18ce4f..cc6e272 100644
@@ -12,9 +12,11 @@
 #ifndef _ASM_GENERIC_ATOMIC64_H
 #define _ASM_GENERIC_ATOMIC64_H
 
+#ifndef CONFIG_64BIT
 typedef struct {
 	long long counter;
 } atomic64_t;
+#endif
 
 #define ATOMIC64_INIT(i)	{ (i) }
 
Signature · 1 line
1.6.2.2