]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 6.5 compat: register_sysctl_table removed
authorColeman Kane <ckane@colemankane.org>
Wed, 2 Aug 2023 21:05:46 +0000 (17:05 -0400)
committerGitHub <noreply@github.com>
Wed, 2 Aug 2023 21:05:46 +0000 (14:05 -0700)
commite47e9bbe86f2e8fe5da0fc7c3a9014e1f8c132a9
tree8ee1f8b1088aa577bb5ab8b14d8626f1853683dc
parenta5fdba1185eeb1b6596e656a3e6bf3ef39b87ea3
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 Atkinson <batkinson@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #15138
config/kernel-register_sysctl_table.m4 [new file with mode: 0644]
config/kernel.m4
module/os/linux/spl/spl-proc.c