]> www.infradead.org Git - linux.git/commitdiff
ucounts: constify sysctl table user_table
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 25 Aug 2024 10:53:14 +0000 (12:53 +0200)
committerJoel Granados <joel.granados@kernel.org>
Wed, 23 Oct 2024 13:28:40 +0000 (15:28 +0200)
The data of user_table is never modified,
but only used as a template to create copies from.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
kernel/ucount.c

index 8c07714ff27d42e16cf24400c6678cd691887dbd..4f6dd1a301172fdd8644454b09a068a662e90986 100644 (file)
@@ -70,7 +70,7 @@ static long ue_int_max = INT_MAX;
                .extra1         = &ue_zero,                     \
                .extra2         = &ue_int_max,                  \
        }
-static struct ctl_table user_table[] = {
+static const struct ctl_table user_table[] = {
        UCOUNT_ENTRY("max_user_namespaces"),
        UCOUNT_ENTRY("max_pid_namespaces"),
        UCOUNT_ENTRY("max_uts_namespaces"),