diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2024-08-05 11:39:37 +0200 |
|---|---|---|
| committer | Joel Granados <joel.granados@kernel.org> | 2024-10-09 13:39:11 +0200 |
| commit | 29e1095bb1ad149b5c417719338d9c81d58bf12b (patch) | |
| tree | 7235059140993ccbfb87c009e2cc2a5e9b0bdc8b /include/linux/sysctl.h | |
| parent | 57e3707eb5e3d9a45eef9151f0378313b1d39a17 (diff) | |
| download | linux-29e1095bb1ad149b5c417719338d9c81d58bf12b.tar.gz linux-29e1095bb1ad149b5c417719338d9c81d58bf12b.zip | |
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>
Diffstat (limited to 'include/linux/sysctl.h')
| -rw-r--r-- | include/linux/sysctl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index aa4c6d44aaa0..a473deaf5a91 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h @@ -162,7 +162,7 @@ struct ctl_node { struct ctl_table_header { union { struct { - struct ctl_table *ctl_table; + const struct ctl_table *ctl_table; int ctl_table_size; int used; int count; |
