diff options
| author | Christophe JAILLET <[email protected]> | 2024-07-14 16:15:20 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-07-15 15:51:19 +0000 |
| commit | 0970bf676f86c2c4d9bf7e672f5504d390c9fce6 (patch) | |
| tree | ac24e6e25f35275fbd2defa67a8449733d9295d2 /rust/helpers.c | |
| parent | llc: Constify struct llc_conn_state_trans (diff) | |
| download | kernel-0970bf676f86c2c4d9bf7e672f5504d390c9fce6.tar.gz kernel-0970bf676f86c2c4d9bf7e672f5504d390c9fce6.zip | |
llc: Constify struct llc_sap_state_trans
'struct llc_sap_state_trans' are not modified in this driver.
Constifying this structure moves some data to a read-only section, so
increase overall security.
On a x86_64, with allmodconfig, as an example:
Before:
======
text data bss dec hex filename
339 456 24 819 333 net/llc/llc_s_st.o
After:
=====
text data bss dec hex filename
683 144 0 827 33b net/llc/llc_s_st.o
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/9d17587639195ee94b74ff06a11ef97d1833ee52.1720973710.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
