diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2025-07-29 07:49:30 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2025-07-30 23:26:50 -0400 |
commit | 383cd6d879a18acdaa84c29330b25c49cbc0b490 (patch) | |
tree | 5e628acb9f4dcc6fc65357c06715f443d345c939 /lib/mpi/mpi-inline.c | |
parent | a2f54ff15c3bdc0132e20aae041607e2320dbd73 (diff) |
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 <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20250729064930.1659007-1-colin.i.king@gmail.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions