diff options
author | Colin Ian King | 2018-02-14 23:35:43 +0100 |
---|---|---|
committer | Martin K. Petersen | 2018-02-16 00:20:14 +0100 |
commit | c62f40bfb26356bb289267f3b802ec0434fdc118 (patch) | |
tree | 6fc84d5f5972737f4eed464c43e330cb4ba40be2 /drivers/clk | |
parent | scsi: scsi_debug: reset injection flags for every_nth > 0 (diff) | |
download | kernel-qcow2-linux-c62f40bfb26356bb289267f3b802ec0434fdc118.tar.gz kernel-qcow2-linux-c62f40bfb26356bb289267f3b802ec0434fdc118.tar.xz kernel-qcow2-linux-c62f40bfb26356bb289267f3b802ec0434fdc118.zip |
scsi: scsi_transport_spi: make two const arrays static, shrinks object size
Don't populate the const read-only arrays spi_test_unit_ready and
spi_test_unit_ready on the stack but instead make them static. Makes the
object code smaller by over 100 bytes:
Before:
text data bss dec hex filename
40171 12832 128 53131 cf8b drivers/scsi/scsi_transport_spi.o
After:
text data bss dec hex filename
39922 12976 128 53026 cf22 drivers/scsi/scsi_transport_spi.o
(gcc version 7.2.0 x86_64)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/clk')
0 files changed, 0 insertions, 0 deletions