aboutsummaryrefslogtreecommitdiffstats
path: root/module/zcommon/zfs_fletcher_avx512.c
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2020-07-25 20:09:50 -0700
committerGitHub <[email protected]>2020-07-25 20:09:50 -0700
commite64cc4954c7862db6a6b4dc978a091ebc3f870da (patch)
treec4338faa05d73ed93d55b4a775edf93ab15e99f7 /module/zcommon/zfs_fletcher_avx512.c
parent6d8da84106de1fc8480e1758cc88e81393b4c0c2 (diff)
Refactor ccompile.h to not include system headers
This is a step toward being able to vendor the OpenZFS code in FreeBSD. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #10625
Diffstat (limited to 'module/zcommon/zfs_fletcher_avx512.c')
-rw-r--r--module/zcommon/zfs_fletcher_avx512.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zcommon/zfs_fletcher_avx512.c b/module/zcommon/zfs_fletcher_avx512.c
index d33d2dc33..300ec4c1f 100644
--- a/module/zcommon/zfs_fletcher_avx512.c
+++ b/module/zcommon/zfs_fletcher_avx512.c
@@ -31,7 +31,9 @@
#include <sys/simd.h>
#include <zfs_fletcher.h>
+#ifdef __linux__
#define __asm __asm__ __volatile__
+#endif
static void
fletcher_4_avx512f_init(fletcher_4_ctx_t *ctx)