aboutsummaryrefslogtreecommitdiffstats
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2025-05-25 09:21:24 +0000
committerJakub Kicinski <[email protected]>2025-05-28 00:31:42 +0000
commit08f8bad0255c7319f4ffe53d0f0eab50fa2cb5e9 (patch)
treec0ecf36ce132055850bf4898d05c81722d91bda4 /lib/netdev-notifier-error-inject.c
parentmlxsw: core_thermal: Constify struct thermal_zone_device_ops (diff)
downloadkernel-08f8bad0255c7319f4ffe53d0f0eab50fa2cb5e9.tar.gz
kernel-08f8bad0255c7319f4ffe53d0f0eab50fa2cb5e9.zip
cxgb4: Constify struct thermal_zone_device_ops
'struct thermal_zone_device_ops' 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 2912 1064 0 3976 f88 drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.o After: ===== text data bss dec hex filename 3040 936 0 3976 f88 drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.o Signed-off-by: Christophe JAILLET <[email protected]> Link: https://patch.msgid.link/e6416e0d15ea27a55fe1fb4e349928ac7bae1b95.1748164843.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions