File libibverbs-add-s390x-platform-support.patch of Package libibverbs
include/infiniband/arch.h | 7 +++++++
1 file changed, 7 insertions(+)
Index: libibverbs-1.1.7/include/infiniband/arch.h
===================================================================
--- libibverbs-1.1.7.orig/include/infiniband/arch.h 2014-03-05 10:36:36.000000000 +0100
+++ libibverbs-1.1.7/include/infiniband/arch.h 2015-08-11 13:09:58.346141613 +0200
@@ -115,6 +115,13 @@ static inline uint64_t ntohll(uint64_t x
#define wmb() mb()
#define wc_wmb() wmb()
+#elif defined(__s390x__) || defined(__s390__)
+
+#define mb() { asm volatile("" : : : "memory"); } /* for s390x */
+#define rmb() mb() /* for s390x */
+#define wmb() mb() /* for s390x */
+#define wc_wmb() wmb() /* for s390x */
+
#else
#warning No architecture specific defines found. Using generic implementation.