summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-05-27 19:04:22 +0200
committerJakub Kicinski <kuba@kernel.org>2024-05-28 19:49:47 -0700
commit7a20cd1e71d87907dbba8887cd434a2195699c85 (patch)
tree060f341ce0990a5017f7e97491db0ccd227d4923 /net/ipv6
parentc55eb03765f413d43ee96e2c4eeac27fde8e63d8 (diff)
downloadlinux-7a20cd1e71d87907dbba8887cd434a2195699c85.tar.gz
linux-7a20cd1e71d87907dbba8887cd434a2195699c85.tar.bz2
linux-7a20cd1e71d87907dbba8887cd434a2195699c85.zip
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: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20240527-sysctl-const-handler-net-v1-4-16523767d0b2@weissschuh.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/ndisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index d914b23256ce..254b192c5705 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -1936,7 +1936,7 @@ static struct notifier_block ndisc_netdev_notifier = {
};
#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)
{
static char warncomm[TASK_COMM_LEN];