diff options
author | Ryan Moeller <[email protected]> | 2020-06-16 14:47:04 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-16 11:47:04 -0700 |
commit | 86a0f4948363cc196d1ad6de9ba8685999bf8cdd (patch) | |
tree | 999d9c4ad34bc466e3123bddc3032ee535e2612b | |
parent | d366c8fd7a163f17e8984952d8f0aeb550844e8a (diff) |
FreeBSD: Kernel module should depend on xdr not krpc after 1300092
Since https://reviews.freebsd.org/D24408 FreeBSD provides XDR functions
in the xdr module instead of krpc.
For FreeBSD 13, the MODULE_DEPEND should be changed to xdr
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #10442
Closes #10443
-rw-r--r-- | module/os/freebsd/zfs/kmod_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module/os/freebsd/zfs/kmod_core.c b/module/os/freebsd/zfs/kmod_core.c index 2e16cf123..17e9e8dff 100644 --- a/module/os/freebsd/zfs/kmod_core.c +++ b/module/os/freebsd/zfs/kmod_core.c @@ -398,7 +398,11 @@ EVENTHANDLER_DEFINE(mountroot, spa_boot_init, NULL, 0); DECLARE_MODULE(zfsctrl, zfs_mod, SI_SUB_CLOCKS, SI_ORDER_ANY); MODULE_VERSION(zfsctrl, 1); +#if __FreeBSD_version > 1300092 +MODULE_DEPEND(zfsctrl, xdr, 1, 1, 1); +#else MODULE_DEPEND(zfsctrl, krpc, 1, 1, 1); +#endif MODULE_DEPEND(zfsctrl, acl_nfs4, 1, 1, 1); MODULE_DEPEND(zfsctrl, crypto, 1, 1, 1); MODULE_DEPEND(zfsctrl, cryptodev, 1, 1, 1); |