[lttng-dev] [RFC PATCH lttng-modules v2 03/30] Drop support for kernels < 3.0 from atomic.h wrapper

Michael Jeanson mjeanson at efficios.com
Thu Nov 8 16:45:08 EST 2018


Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
 wrapper/atomic.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/wrapper/atomic.h b/wrapper/atomic.h
index 51920c4..5ead899 100644
--- a/wrapper/atomic.h
+++ b/wrapper/atomic.h
@@ -11,11 +11,7 @@
 #define _LTTNG_WRAPPER_ATOMIC_H
 
 #include <linux/version.h>
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
 #include <linux/atomic.h>
-#else
-#include <asm/atomic.h>
-#endif
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0))
 static inline void lttng_smp_mb__before_atomic(void)
-- 
2.17.1



More information about the lttng-dev mailing list