[PATCH] header: move smp_mb__after_atomic definition to the correct file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luca Coelho <luciano.coelho@xxxxxxxxx>

The smp_mb__after_atomic definition is in barrier.h in the mainline,
but we currently include the backport in atomic.h.  This may cause
problems with certain include chain combinations.

Move it to the correct place.

Signed-off-by: Luca Coelho <luciano.coelho@xxxxxxxxx>
---
 backport/backport-include/asm/atomic.h  | 4 ----
 backport/backport-include/asm/barrier.h | 4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/backport/backport-include/asm/atomic.h b/backport/backport-include/asm/atomic.h
index c2a46d2..3f09822 100644
--- a/backport/backport-include/asm/atomic.h
+++ b/backport/backport-include/asm/atomic.h
@@ -15,8 +15,4 @@
 #endif
 #endif
 
-#ifndef smp_mb__after_atomic
-#define smp_mb__after_atomic smp_mb__after_clear_bit
-#endif
-
 #endif /* __BACKPORT_ASM_ATOMIC_H */
diff --git a/backport/backport-include/asm/barrier.h b/backport/backport-include/asm/barrier.h
index 3eb7372..537b1aa 100644
--- a/backport/backport-include/asm/barrier.h
+++ b/backport/backport-include/asm/barrier.h
@@ -6,4 +6,8 @@
 #define dma_rmb()	rmb()
 #endif
 
+#ifndef smp_mb__after_atomic
+#define smp_mb__after_atomic smp_mb__after_clear_bit
+#endif
+
 #endif /* __BACKPORT_ASM_BARRIER_H */
-- 
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux