diff --git a/module/zcommon/zfs_fletcher.c b/module/zcommon/zfs_fletcher.c index f955dc8d9e..18998bceea 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 c62a6eb587..294067e0f9 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)