From 9392be427e58d00d1bdd61c96bd31fe27095a774 Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Sat, 24 May 2025 17:10:15 +1000 Subject: [PATCH] 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 Reviewed-by: Alexander Motin Reviewed-by: Pavel Snajdr Signed-off-by: Rob Norris Closes #17377 --- include/os/linux/kernel/linux/mod_compat.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/os/linux/kernel/linux/mod_compat.h b/include/os/linux/kernel/linux/mod_compat.h index 78b874852..5ae511539 100644 --- a/include/os/linux/kernel/linux/mod_compat.h +++ b/include/os/linux/kernel/linux/mod_compat.h @@ -31,15 +31,6 @@ #include #include -/* - * Despite constifying struct kernel_param_ops, some older kernels define a - * `__check_old_set_param()` function in their headers that checks for a - * non-constified `->set()`. This has long been fixed in Linux mainline, but - * since we support older kernels, we workaround it by using a preprocessor - * definition to disable it. - */ -#define __check_old_set_param(_) (0) - typedef const struct kernel_param zfs_kernel_param_t; #define ZMOD_RW 0644