mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
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:
parent
bff8fb395b
commit
b3673342c7
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user