]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sysctl: move internal interfaces to const struct ctl_table
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 5 Aug 2024 09:39:37 +0000 (11:39 +0200)
committerJoel Granados <joel.granados@kernel.org>
Wed, 9 Oct 2024 11:39:11 +0000 (13:39 +0200)
commit29e1095bb1ad149b5c417719338d9c81d58bf12b
tree7235059140993ccbfb87c009e2cc2a5e9b0bdc8b
parent57e3707eb5e3d9a45eef9151f0378313b1d39a17
sysctl: move internal interfaces to const struct ctl_table

As a preparation to make all the core sysctl code work with const struct
ctl_table switch over the internal function to use the const variant.

Some pointers to "struct ctl_table" need to stay non-const as they are
newly allocated and modified before registration.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
fs/proc/internal.h
fs/proc/proc_sysctl.c
include/linux/sysctl.h