diff mbox

[rdma-core] util: Fix mmio_flush_writes for SPARC and S390x

Message ID 88cef736-88c3-08d9-4042-fd73b2d4cb97@suse.de (mailing list archive)
State Accepted
Headers show

Commit Message

Nicolas Morey-Chaisemartin June 7, 2017, 12:58 p.m. UTC
Due to a missing #else, udma_barrier.h failed on sparc and s390x

Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
---
 util/udma_barrier.h | 1 +
 1 file changed, 1 insertion(+)

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

Comments

Jason Gunthorpe June 7, 2017, 4:04 p.m. UTC | #1
On Wed, Jun 07, 2017 at 02:58:39PM +0200, Nicolas Morey-Chaisemartin wrote:
> Due to a missing #else, udma_barrier.h failed on sparc and s390x

Oops, yes, thank you

Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Leon Romanovsky June 7, 2017, 4:31 p.m. UTC | #2
On Wed, Jun 07, 2017 at 02:58:39PM +0200, Nicolas Morey-Chaisemartin wrote:
> Due to a missing #else, udma_barrier.h failed on sparc and s390x
>
> Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
> ---
>  util/udma_barrier.h | 1 +
>  1 file changed, 1 insertion(+)
>

Thanks, applied.
diff mbox

Patch

diff --git a/util/udma_barrier.h b/util/udma_barrier.h
index 9932a687..23acf233 100644
--- a/util/udma_barrier.h
+++ b/util/udma_barrier.h
@@ -192,6 +192,7 @@ 
 #define mmio_flush_writes() asm volatile("dsb st" ::: "memory");
 #elif defined(__sparc__) || defined(__s390x__)
 #define mmio_flush_writes() asm volatile("" ::: "memory")
+#else
 #error No architecture specific memory barrier defines found!
 #endif