aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2025-06-29 21:06:38 +0000
committerJakub Kicinski <[email protected]>2025-07-02 02:33:31 +0000
commit10c38949e0f5d832b23963e2bbfe398dcad9f52e (patch)
tree65425dd5c2b6734b51af83fe566a5cad43ec6f65 /net/lapb/lapb_subr.c
parentMerge branch 'seg6-fix-typos-in-comments-within-the-srv6-subsystem' (diff)
downloadkernel-10c38949e0f5d832b23963e2bbfe398dcad9f52e.tar.gz
kernel-10c38949e0f5d832b23963e2bbfe398dcad9f52e.zip
net: dsa: hellcreek: Constify struct devlink_region_ops and struct hellcreek_fdb_entry
'struct devlink_region_ops' and 'struct hellcreek_fdb_entry' are not modified in this driver. Constifying these structures moves some data to a read-only section, so increases overall security, especially when the structure holds some function pointers. On a x86_64, with allmodconfig: Before: ====== text data bss dec hex filename 55320 19216 320 74856 12468 drivers/net/dsa/hirschmann/hellcreek.o After: ===== text data bss dec hex filename 55960 18576 320 74856 12468 drivers/net/dsa/hirschmann/hellcreek.o Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Kurt Kanzenbach <[email protected]> Link: https://patch.msgid.link/2f7e8dc30db18bade94999ac7ce79f333342e979.1751231174.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions