aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-08-25 12:53:14 +0200
committerJoel Granados <joel.granados@kernel.org>2024-10-23 15:28:40 +0200
commitad45af930449426ae94bb00d0ca42f4cf4d92a66 (patch)
tree61eeb66ec01388ba65df81ecbd0895eb4c9f2626
parentsysctl: update comments to new registration APIs (diff)
downloadwireguard-linux-ad45af930449426ae94bb00d0ca42f4cf4d92a66.tar.xz
wireguard-linux-ad45af930449426ae94bb00d0ca42f4cf4d92a66.zip
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 <linux@weissschuh.net> Signed-off-by: Joel Granados <joel.granados@kernel.org>
-rw-r--r--kernel/ucount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/ucount.c b/kernel/ucount.c
index 8c07714ff27d..4f6dd1a30117 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"),