diff options
| author | Christophe JAILLET <[email protected]> | 2025-06-29 12:35:49 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-02 02:31:38 +0000 |
| commit | ff2d4cfdaf91891b22117414133736f3e3d2f481 (patch) | |
| tree | a11bce7d441f642797ba26d94640168ab0f20942 /net/unix/sysctl_net_unix.c | |
| parent | net: atlantic: add set_power to fw_ops for atl2 to fix wol (diff) | |
| download | kernel-ff2d4cfdaf91891b22117414133736f3e3d2f481.tar.gz kernel-ff2d4cfdaf91891b22117414133736f3e3d2f481.zip | |
net: dsa: mv88e6xxx: Constify struct devlink_region_ops and struct mv88e6xxx_region
'struct devlink_region_ops' and 'struct mv88e6xxx_region' 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, as an example:
Before:
======
text data bss dec hex filename
18076 6496 64 24636 603c drivers/net/dsa/mv88e6xxx/devlink.o
After:
=====
text data bss dec hex filename
18652 5920 64 24636 603c drivers/net/dsa/mv88e6xxx/devlink.o
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Link: https://patch.msgid.link/46040062161dda211580002f950a6d60433243dc.1751200453.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
