mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-06-25 10:38:00 +03:00
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 <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Pavel Snajdr <snajpa@snajpa.net> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #17377
This commit is contained in:
parent
dd4e2f99f0
commit
9392be427e
@ -31,15 +31,6 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
|
||||
/*
|
||||
* 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
|
||||
|
Loading…
Reference in New Issue
Block a user