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 <allanjude@freebsd.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #9666
This commit is contained in:
Matthew Macy 2019-12-03 09:56:15 -08:00 committed by Brian Behlendorf
parent bff8fb395b
commit b3673342c7
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)