summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/zcommon/zfs_fletcher.c2
-rw-r--r--module/zfs/vdev_raidz_math.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/module/zcommon/zfs_fletcher.c b/module/zcommon/zfs_fletcher.c
index f955dc8d9..18998bcee 100644
--- a/module/zcommon/zfs_fletcher.c
+++ b/module/zcommon/zfs_fletcher.c
@@ -886,7 +886,7 @@ zio_abd_checksum_func_t fletcher_4_abd_ops = {
};
-#if defined(_KERNEL)
+#if defined(_KERNEL) && defined(__linux__)
static int
fletcher_4_param_get(char *buffer, zfs_kernel_param_t *unused)
diff --git a/module/zfs/vdev_raidz_math.c b/module/zfs/vdev_raidz_math.c
index c62a6eb58..294067e0f 100644
--- a/module/zfs/vdev_raidz_math.c
+++ b/module/zfs/vdev_raidz_math.c
@@ -627,7 +627,7 @@ vdev_raidz_impl_set(const char *val)
return (err);
}
-#if defined(_KERNEL)
+#if defined(_KERNEL) && defined(__linux__)
static int
zfs_vdev_raidz_impl_set(const char *val, zfs_kernel_param_t *kp)