Commit 7a20cd1e authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Jakub Kicinski

net/ipv6/ndisc: constify ctl_table arguments of utility function

The sysctl core is preparing to only expose instances of
struct ctl_table as "const".
This will also affect the ctl_table argument of sysctl handlers.

As the function prototype of all sysctl handlers throughout the tree
needs to stay consistent that change will be done in one commit.

To reduce the size of that final commit, switch utility functions which
are not bound by "typedef proc_handler" to "const struct ctl_table".

No functional change.
Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20240527-sysctl-const-handler-net-v1-4-16523767d0b2@weissschuh.netSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c55eb037
...@@ -1936,7 +1936,7 @@ static struct notifier_block ndisc_netdev_notifier = { ...@@ -1936,7 +1936,7 @@ static struct notifier_block ndisc_netdev_notifier = {
}; };
#ifdef CONFIG_SYSCTL #ifdef CONFIG_SYSCTL
static void ndisc_warn_deprecated_sysctl(struct ctl_table *ctl, static void ndisc_warn_deprecated_sysctl(const struct ctl_table *ctl,
const char *func, const char *dev_name) const char *func, const char *dev_name)
{ {
static char warncomm[TASK_COMM_LEN]; static char warncomm[TASK_COMM_LEN];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment