summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2019-12-03 09:56:15 -0800
committerBrian Behlendorf <[email protected]>2019-12-03 09:56:15 -0800
commitb3673342c79b65c441c98a8161ffbf136d497c2f (patch)
tree1b79c2e1faf3e9dd6086ef53a5fcec1694627efb /module
parentbff8fb395b1f2b84a47f8245dd43f4945cab8e77 (diff)
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #9666
Diffstat (limited to 'module')
-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)