diff options
author | Matthew Macy <[email protected]> | 2020-07-25 20:09:50 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-25 20:09:50 -0700 |
commit | e64cc4954c7862db6a6b4dc978a091ebc3f870da (patch) | |
tree | c4338faa05d73ed93d55b4a775edf93ab15e99f7 /module/zfs/vdev_raidz_math_avx512bw.c | |
parent | 6d8da84106de1fc8480e1758cc88e81393b4c0c2 (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/zfs/vdev_raidz_math_avx512bw.c')
-rw-r--r-- | module/zfs/vdev_raidz_math_avx512bw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module/zfs/vdev_raidz_math_avx512bw.c b/module/zfs/vdev_raidz_math_avx512bw.c index 38cdbedf7..f06b46902 100644 --- a/module/zfs/vdev_raidz_math_avx512bw.c +++ b/module/zfs/vdev_raidz_math_avx512bw.c @@ -27,10 +27,14 @@ #if defined(__x86_64) && defined(HAVE_AVX512BW) +#include <sys/param.h> #include <sys/types.h> #include <sys/simd.h> + +#ifdef __linux__ #define __asm __asm__ __volatile__ +#endif #define _REG_CNT(_0, _1, _2, _3, _4, _5, _6, _7, N, ...) N #define REG_CNT(r...) _REG_CNT(r, 8, 7, 6, 5, 4, 3, 2, 1) |