From b3673342c79b65c441c98a8161ffbf136d497c2f Mon Sep 17 00:00:00 2001 From: Matthew Macy Date: Tue, 3 Dec 2019 09:56:15 -0800 Subject: [PATCH] Wrap module_param_call() routines under __linux__ The module_param_call() functionality is currently still Linux-specific and should be wrapped accordingly. Reviewed-by: Allan Jude Reviewed-by: Brian Behlendorf Signed-off-by: Matt Macy Closes #9666 --- module/zcommon/zfs_fletcher.c | 2 +- module/zfs/vdev_raidz_math.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)