Linux 6.5 compat: register_sysctl_table removed
commit31a4673c05ea942498a278d9dd519f251b501db1
authorColeman Kane <ckane@colemankane.org>
Wed, 2 Aug 2023 21:05:46 +0000 (2 17:05 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 19 Sep 2023 15:50:01 +0000 (19 08:50 -0700)
tree9c02a8b3bc60d521150af157eee3b6b54fe10884
parent3a68f3c50f82ec87d74b255e3a0db504ff366211
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