diff options
| author | Christophe JAILLET <[email protected]> | 2024-09-07 07:00:04 +0000 |
|---|---|---|
| committer | Iwona Winiarska <[email protected]> | 2024-10-25 08:58:07 +0000 |
| commit | 733dc978fab659dee9938739e2b9e88ce72f0408 (patch) | |
| tree | ca35c8392acb50c83cd51312f54348dddb789dca /rust/macros/module.rs | |
| parent | Linux 6.12-rc4 (diff) | |
| download | kernel-733dc978fab659dee9938739e2b9e88ce72f0408.tar.gz kernel-733dc978fab659dee9938739e2b9e88ce72f0408.zip | |
peci: npcm: Constify struct peci_controller_ops
'struct peci_controller_ops' is not modified in this driver.
Constifying this structure moves some data to a read-only section, so
increase overall security, especially when the structure holds some
function pointers.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
8003 784 48 8835 2283 drivers/peci/controller/peci-npcm.o
After:
=====
text data bss dec hex filename
8003 776 48 8827 227b drivers/peci/controller/peci-npcm.o
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Iwona Winiarska <[email protected]>
Link: https://lore.kernel.org/r/3c7d455745c2265c19ed02f026dfc9610271d3c2.1725692376.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Iwona Winiarska <[email protected]>
Diffstat (limited to 'rust/macros/module.rs')
0 files changed, 0 insertions, 0 deletions
