]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 6.5 compat: register_sysctl_table removed
authorColeman Kane <ckane@colemankane.org>
Tue, 1 Aug 2023 15:27:58 +0000 (11:27 -0400)
committerGitHub <noreply@github.com>
Tue, 1 Aug 2023 15:27:58 +0000 (08:27 -0700)
commitb35374fd6474603170fd9a3c7503da6eb13ac712
tree0bf271be8f35e168e6299bf7c11ed1cb3687f996
parente9c59310f7da120d5506d11ccebb761f2825ac06
Linux 6.5 compat: register_sysctl_table removed

Additionally, the .child element of ctl_table has been removed in 6.5.
This change adds a new test for the pre-6.5 register_sysctl_table()
function, and uses the old code in that case. If it isn't found, then
the parentage entries in the tables are removed, and the register_sysctl
call is provided the paths of "kernel/spl", "kernel/spl/kmem", and
"kernel/spl/kstat" directly, to populate each subdirectory over three
calls, as is the new API.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #15098
config/kernel-register_sysctl_table.m4 [new file with mode: 0644]
config/kernel.m4
module/os/linux/spl/spl-proc.c