Skip to contentSkip to conversation

barrier.h: add generic smp_mb implementation

PATCH Applied Jeff Moyer 2 participants 2 messages Nov 5, 2019 io_uring

lore
Share & tools
lore

Jeff Moyer

author
#0 lore raw

PATCH 1/1 barrier.h: add generic smp_mb implementation

This missing define causes build failures on s390:

src/include/liburing.h:298: undefined reference to `io_uring_smp_mb'

src/include/liburing/barrier.h +1 -0
index fc40a8a..aca308a 100644
@@ -76,6 +76,7 @@ do {						\
  * Add arch appropriate definitions. Be safe and use full barriers for
  * archs we don't have support for.
  */
+#define io_uring_smp_mb()	__sync_synchronize()
 #define io_uring_smp_rmb()	__sync_synchronize()
 #define io_uring_smp_wmb()	__sync_synchronize()
 #endif /* defined(__x86_64__) || defined(__i386__) */
maintainer Applied
#1 lore raw
Quoted 3 lines · Jeff Moyer

This missing define causes build failures on s390:

src/include/liburing.h:298: undefined reference to `io_uring_smp_mb'

Applied, thanks.

Signature · 1 line
Jens Axboe