]> www.infradead.org Git - nvme.git/commit
mm/hugetlb: constify ctl_table arguments of utility functions
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 18 May 2024 14:00:04 +0000 (16:00 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:29:52 +0000 (19:29 -0700)
commit525c30304928ff0efee4dfab8319a9d4f254ab46
treecb2b99ed25b3b61ec968e176bd0d0c1ff755faa1
parent22a40d14b572deb80c0648557f4bd502d7e83826
mm/hugetlb: constify ctl_table arguments of utility functions

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.

Link: https://lkml.kernel.org/r/20240518-sysctl-const-handler-hugetlb-v1-1-47e34e2871b2@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Muchun Song <muchun.song@linux.dev>
Cc: Joel Granados <j.granados@samsung.com>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c