summaryrefslogtreecommitdiff
path: root/net/xfrm
diff options
context:
space:
mode:
authorJoel Granados <joel.granados@kernel.org>2026-08-10 15:01:03 +0200
committerPaolo Abeni <pabeni@redhat.com>2026-08-13 13:12:24 +0200
commit09190c59cd101e0bf87a1c5a32ebae25c91e6d81 (patch)
tree9425d8880a7c77a172f103c7693169fded00d39f /net/xfrm
parentef6cb145e216b0378686bce356f3317284d54231 (diff)
downloadlinux-next-09190c59cd101e0bf87a1c5a32ebae25c91e6d81.tar.gz
linux-next-09190c59cd101e0bf87a1c5a32ebae25c91e6d81.zip
net: Const qualify ctl_tables that kmemdup unconditionally
Const qualify clt_table arrays in the net directory that always pass a memory duplicate to sysctl register. The template would then be in .rodata and the kmemdup'ed array would be outside. Signed-off-by: Joel Granados <joel.granados@kernel.org> Link: https://patch.msgid.link/20260810-jag-net_const_qualify-v4-2-77e888237c69@kernel.org Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/xfrm')
-rw-r--r--net/xfrm/xfrm_sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_sysctl.c b/net/xfrm/xfrm_sysctl.c
index ca003e8a0376..357152a50faf 100644
--- a/net/xfrm/xfrm_sysctl.c
+++ b/net/xfrm/xfrm_sysctl.c
@@ -13,7 +13,7 @@ static void __net_init __xfrm_sysctl_init(struct net *net)
}
#ifdef CONFIG_SYSCTL
-static struct ctl_table xfrm_table[] = {
+static const struct ctl_table xfrm_table[] = {
{
.procname = "xfrm_aevent_etime",
.maxlen = sizeof(u32),