diff options
| author | Christophe JAILLET <[email protected]> | 2025-05-18 18:26:43 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2025-05-21 02:11:03 +0000 |
| commit | fd2963e729ed69ced422c230a3f70fa6d5a5ce25 (patch) | |
| tree | 53168004aba11cdb043ab3a88c8d2b603fe2ea1b /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | scsi: target: core: Constify enabled() in struct target_opcode_descriptor (diff) | |
| download | kernel-fd2963e729ed69ced422c230a3f70fa6d5a5ce25.tar.gz kernel-fd2963e729ed69ced422c230a3f70fa6d5a5ce25.zip | |
scsi: target: core: Constify struct target_opcode_descriptor
Instances of 'struct target_opcode_descriptor' are 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
53602 19750 0 73352 11e88 drivers/target/target_core_spc.o
After:
=====
text data bss dec hex filename
58594 14758 0 73352 11e88 drivers/target/target_core_spc.o
Signed-off-by: Christophe JAILLET <[email protected]>
Link: https://lore.kernel.org/r/889ee46e75db33e8ab997a627a1d3d651ad648db.1747592774.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions
