diff options
| author | Christophe JAILLET <[email protected]> | 2024-07-14 16:05:56 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-07-15 15:51:01 +0000 |
| commit | 70de41ef78573ce958ac04ecc2b5671851723c59 (patch) | |
| tree | 170892633c1db1b91861211131b71b9dd6fec716 /rust/helpers.c | |
| parent | dsa: lan9303: consistent naming for PHY address parameter (diff) | |
| download | kernel-70de41ef78573ce958ac04ecc2b5671851723c59.tar.gz kernel-70de41ef78573ce958ac04ecc2b5671851723c59.zip | |
llc: Constify struct llc_conn_state_trans
'struct llc_conn_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
13923 10896 32 24851 6113 net/llc/llc_c_st.o
After:
=====
text data bss dec hex filename
21859 3328 0 25187 6263 net/llc/llc_c_st.o
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/87cda89e4c9414e71d1a54bb1eb491b0e7f70375.1720973029.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
