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>
This commit is contained in:
Joel Granados 2026-08-10 15:01:03 +02:00 • committed by Paolo Abeni
commit 09190c59cd
7 changed files with 7 additions and 7 deletions