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/zcommon | |
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/zcommon')
-rw-r--r-- | module/zcommon/zfeature_common.c | 1 | ||||
-rw-r--r-- | module/zcommon/zfs_fletcher_avx512.c | 2 | ||||
-rw-r--r-- | module/zcommon/zfs_fletcher_superscalar.c | 1 | ||||
-rw-r--r-- | module/zcommon/zfs_fletcher_superscalar4.c | 1 |
4 files changed, 5 insertions, 0 deletions
diff --git a/module/zcommon/zfeature_common.c b/module/zcommon/zfeature_common.c index 302d48570..ed7967dc1 100644 --- a/module/zcommon/zfeature_common.c +++ b/module/zcommon/zfeature_common.c @@ -36,6 +36,7 @@ #include <sys/fs/zfs.h> #include <sys/inttypes.h> #include <sys/types.h> +#include <sys/param.h> #include <sys/zfs_sysfs.h> #include "zfeature_common.h" 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) diff --git a/module/zcommon/zfs_fletcher_superscalar.c b/module/zcommon/zfs_fletcher_superscalar.c index fbbbf8060..153f5c7d7 100644 --- a/module/zcommon/zfs_fletcher_superscalar.c +++ b/module/zcommon/zfs_fletcher_superscalar.c @@ -41,6 +41,7 @@ * SOFTWARE. */ +#include <sys/param.h> #include <sys/byteorder.h> #include <sys/spa_checksum.h> #include <sys/strings.h> diff --git a/module/zcommon/zfs_fletcher_superscalar4.c b/module/zcommon/zfs_fletcher_superscalar4.c index 97fdb7b7d..75e6a3baf 100644 --- a/module/zcommon/zfs_fletcher_superscalar4.c +++ b/module/zcommon/zfs_fletcher_superscalar4.c @@ -41,6 +41,7 @@ * SOFTWARE. */ +#include <sys/param.h> #include <sys/byteorder.h> #include <sys/spa_checksum.h> #include <sys/strings.h> |