From: Thomas Weißschuh Date: Sun, 25 Aug 2024 10:53:14 +0000 (+0200) Subject: ucounts: constify sysctl table user_table X-Git-Tag: v6.13-rc1~103^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad45af930449426ae94bb00d0ca42f4cf4d92a66;p=thirdparty%2Fkernel%2Flinux.git ucounts: constify sysctl table user_table The data of user_table is never modified, but only used as a template to create copies from. Signed-off-by: Thomas Weißschuh Signed-off-by: Joel Granados --- diff --git a/kernel/ucount.c b/kernel/ucount.c index 8c07714ff27d4..4f6dd1a301172 100644 --- a/kernel/ucount.c +++ b/kernel/ucount.c @@ -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"),