From 3bbc26097e53c472084d978dd37343b07ed17e3c Mon Sep 17 00:00:00 2001 From: Rich Ercolani <214141+rincebrain@users.noreply.github.com> Date: Wed, 25 May 2022 12:18:49 -0400 Subject: [PATCH] Unbreak zstd build on sparc64 It turns out that wrapping the atomic macro in () breaks build on Linux/SPARC64. Oops. Reviewed-by: Brian Behlendorf Signed-off-by: Rich Ercolani Closes #13506 --- include/sys/zstd/zstd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sys/zstd/zstd.h b/include/sys/zstd/zstd.h index ec2341b76..d8c3fa86d 100644 --- a/include/sys/zstd/zstd.h +++ b/include/sys/zstd/zstd.h @@ -79,7 +79,7 @@ typedef struct zfs_zstd_meta { */ #define ZSTDSTAT(stat) (zstd_stats.stat.value.ui64) #define ZSTDSTAT_ZERO(stat) \ - (atomic_store_64(&zstd_stats.stat.value.ui64, 0)) + atomic_store_64(&zstd_stats.stat.value.ui64, 0) #define ZSTDSTAT_ADD(stat, val) \ atomic_add_64(&zstd_stats.stat.value.ui64, (val)) #define ZSTDSTAT_SUB(stat, val) \