[Pkg-ofed-commits] [libibverbs] 01/01: Add patch update_barriers

Ana Beatriz Guerrero López ana at moszumanska.debian.org
Tue Sep 13 20:24:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

ana pushed a commit to branch master
in repository libibverbs.

commit da84a74fa4f8cea2ea01c30caaf7864f807dd827
Author: Ana Beatriz Guerrero Lopez <ana at debian.org>
Date:   Tue Sep 13 22:18:18 2016 +0200

    Add patch update_barriers
    
    add barriers for MIPS and avoid FTBFS in those architectures where
    barriers haven't been defined.
---
 debian/changelog               |  8 ++++++++
 debian/patches/series          |  1 +
 debian/patches/update_barriers | 27 +++++++++++++++++++++++++++
 3 files changed, 36 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 76695bf..88b384a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+libibverbs (1.2.1-2) unstable; urgency=medium
+
+  * Add patch update_barriers: add barriers for MIPS and
+    avoid FTBFS in those architectures where barriers haven't
+    been defined.
+
+ -- Ana Beatriz Guerrero Lopez <ana at debian.org>  Tue, 13 Sep 2016 22:17:54 +0200
+
 libibverbs (1.2.1-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b178e83
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+update_barriers
diff --git a/debian/patches/update_barriers b/debian/patches/update_barriers
new file mode 100644
index 0000000..057e315
--- /dev/null
+++ b/debian/patches/update_barriers
@@ -0,0 +1,27 @@
+Description: Define the barriers for mips and provide a warning message
+for archs that are not defined instead of an error. The warning message
+was the behavior in previous releases of libibverbs.
+Author: Ana Guerrero Lopez <ana at debian.org>
+
+Last-Update: 2016-09-11
+
+--- libibverbs-1.2.1.orig/include/infiniband/arch.h
++++ libibverbs-1.2.1/include/infiniband/arch.h
+@@ -130,9 +130,16 @@ static inline uint64_t ntohll(uint64_t x
+ #define wmb()	{ asm volatile("dsb st" ::: "memory"); }
+ #define wc_wmb() wmb()
+ 
++#elif defined(__mips__)
++
++#define mb()   { asm volatile("sync" ::: "memory"); }
++#define rmb()  { asm volatile("sync_rmb" ::: "memory"); }
++#define wmb()  { asm volatile("sync_wmb" ::: "memory"); }
++#define wc_wmb() wmb()
++
+ #else
+ 
+-#error No architecture specific memory barrier defines found!
++#warning No architecture specific memory barrier defines found!
+ 
+ #endif
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/libibverbs.git



More information about the Pkg-ofed-commits mailing list