Skip to content

Commit 840b070

Browse files
robnbehlendorf
authored andcommitted
tunables: remove FreeBSD compat macros for Linux module params
Nothing in any FreeBSD code uses them. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Pavel Snajdr <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes openzfs#17377
1 parent d02d3ad commit 840b070

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

include/os/freebsd/spl/sys/ccompile.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ extern "C" {
4343
#endif
4444

4545
#define EXPORT_SYMBOL(x)
46-
#define module_param(a, b, c)
47-
#define module_param_call(a, b, c, d, e)
48-
#define module_param_named(a, b, c, d)
49-
#define MODULE_PARM_DESC(a, b)
46+
5047
#define asm __asm
5148
#ifdef ZFS_DEBUG
5249
#undef NDEBUG

module/os/freebsd/zfs/zio_crypt.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,9 +1822,3 @@ zio_do_crypt_abd(boolean_t encrypt, zio_crypt_key_t *key, dmu_object_type_t ot,
18221822

18231823
return (SET_ERROR(ret));
18241824
}
1825-
1826-
#if defined(_KERNEL) && defined(HAVE_SPL)
1827-
module_param(zfs_key_max_salt_uses, ulong, 0644);
1828-
MODULE_PARM_DESC(zfs_key_max_salt_uses, "Max number of times a salt value "
1829-
"can be used for generating encryption keys before it is rotated");
1830-
#endif

0 commit comments

Comments
 (0)