]> www.infradead.org Git - users/willy/xarray.git/commit
net/neighbour: constify ctl_table arguments of utility function
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 27 May 2024 17:04:19 +0000 (19:04 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 29 May 2024 02:49:47 +0000 (19:49 -0700)
commit874aa96d78c791565781bb38570971f614d800ff
tree3c2001fd96c87f73e76d902dfb469319959b8343
parent982300c115d229565d7af8e8b38aa1ee7bb1f5bd
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>
net/core/neighbour.c