mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 05:18:45 +02:00
net/neighbour: 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-1-16523767d0b2@weissschuh.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
982300c115
commit
874aa96d78
|
|
@ -3578,7 +3578,7 @@ static void neigh_copy_dflt_parms(struct net *net, struct neigh_parms *p,
|
|||
rcu_read_unlock();
|
||||
}
|
||||
|
||||
static void neigh_proc_update(struct ctl_table *ctl, int write)
|
||||
static void neigh_proc_update(const struct ctl_table *ctl, int write)
|
||||
{
|
||||
struct net_device *dev = ctl->extra1;
|
||||
struct neigh_parms *p = ctl->extra2;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user