Skip to content

Commit e73f791

Browse files
robnbehlendorf
authored andcommitted
tunables: remove __check_old_set_param workaround
This was fully removed from Linux in 4.15, so we won't be seeing it again. 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 #17377
1 parent 5499b58 commit e73f791

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

include/os/linux/kernel/linux/mod_compat.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@
3131
#include <linux/module.h>
3232
#include <linux/moduleparam.h>
3333

34-
/*
35-
* Despite constifying struct kernel_param_ops, some older kernels define a
36-
* `__check_old_set_param()` function in their headers that checks for a
37-
* non-constified `->set()`. This has long been fixed in Linux mainline, but
38-
* since we support older kernels, we workaround it by using a preprocessor
39-
* definition to disable it.
40-
*/
41-
#define __check_old_set_param(_) (0)
42-
4334
typedef const struct kernel_param zfs_kernel_param_t;
4435

4536
#define ZMOD_RW 0644

0 commit comments

Comments
 (0)