[PATCH V1 rdma-core 02/10] Handle always_inline attribute in util/compiler.h

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

 



From: Ariel Levkovich <lariel@xxxxxxxxxxxx>

Define always_inline function attribute under ALWAYS_INLINE
macro in util/compiler.h and clean it up from any provider code.

Signed-off-by: Ariel Levkovich <lariel@xxxxxxxxxxxx>
Reviewed-by: Yishai Hadas <yishaih@xxxxxxxxxxxx>
---
 providers/mlx5/mlx5.h | 6 ------
 util/compiler.h       | 6 ++++++
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/providers/mlx5/mlx5.h b/providers/mlx5/mlx5.h
index 1d28ccf..3f89f4b 100644
--- a/providers/mlx5/mlx5.h
+++ b/providers/mlx5/mlx5.h
@@ -46,12 +46,6 @@
 
 #include <valgrind/memcheck.h>
 
-#ifdef HAVE_FUNC_ATTRIBUTE_ALWAYS_INLINE
-#define ALWAYS_INLINE __attribute__((always_inline))
-#else
-#define ALWAYS_INLINE
-#endif
-
 #define PFX		"mlx5: "
 
 
diff --git a/util/compiler.h b/util/compiler.h
index fa2c0e7..e262540 100644
--- a/util/compiler.h
+++ b/util/compiler.h
@@ -31,4 +31,10 @@
 #endif
 #endif
 
+#ifdef HAVE_FUNC_ATTRIBUTE_ALWAYS_INLINE
+#define ALWAYS_INLINE __attribute__((always_inline))
+#else
+#define ALWAYS_INLINE
+#endif
+
 #endif
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux