diff options
| author | Colin Ian King <[email protected]> | 2025-07-29 06:49:30 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2025-07-31 03:26:50 +0000 |
| commit | 383cd6d879a18acdaa84c29330b25c49cbc0b490 (patch) | |
| tree | 5e628acb9f4dcc6fc65357c06715f443d345c939 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | scsi: core: sysfs: Correct sysfs attributes access rights (diff) | |
| download | kernel-383cd6d879a18acdaa84c29330b25c49cbc0b490.tar.gz kernel-383cd6d879a18acdaa84c29330b25c49cbc0b490.zip | |
scsi: scsi_debug: Make read-only arrays static const
Don't populate the read-only arrays on the stack at run time, instead
make them static const. Also reduces overall size.
before:
text data bss dec hex filename
367439 89582 5952 462973 7107d drivers/scsi/scsi_debug.o
after:
text data bss dec hex filename
365847 90702 5952 462501 70ea5 drivers/scsi/scsi_debug.o
(gcc 14.2.0, x86-64)
Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions
