Re: [PATCH] scsi: scsi_transport_spi make two const arrays static, shrinks object size

2018-02-15 Thread Martin K. Petersen
Colin, > 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: Applied to 4.17/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: scsi_transport_spi make two const arrays static, shrinks object size

2018-02-15 Thread Martin K. Petersen
Colin, > 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: Applied to 4.17/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH] scsi: scsi_transport_spi make two const arrays static, shrinks object size

2018-02-14 Thread Colin King
From: Colin Ian King 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: textdata bss dec hex filename 40171

[PATCH] scsi: scsi_transport_spi make two const arrays static, shrinks object size

2018-02-14 Thread Colin King
From: Colin Ian King 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: textdata bss dec hex filename 40171 12832 128 53131cf8b