Re: [PATCH] scsi: hisi_sas: make several const arrays static

2017-07-12 Thread Martin K. Petersen
Colin, > Don't populate various tables on the stack but make them static const. > Makes the object code smaller by over 280 bytes: Applied to 4.13/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: hisi_sas: make several const arrays static

2017-07-12 Thread Martin K. Petersen
Colin, > Don't populate various tables on the stack but make them static const. > Makes the object code smaller by over 280 bytes: Applied to 4.13/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: hisi_sas: make several const arrays static

2017-07-11 Thread John Garry
On 11/07/2017 13:11, Colin King wrote: From: Colin Ian King Don't populate various tables on the stack but make them static const. Makes the object code smaller by over 280 bytes: Before: textdata bss dec hex filename 398875080 64

Re: [PATCH] scsi: hisi_sas: make several const arrays static

2017-07-11 Thread John Garry
On 11/07/2017 13:11, Colin King wrote: From: Colin Ian King Don't populate various tables on the stack but make them static const. Makes the object code smaller by over 280 bytes: Before: textdata bss dec hex filename 398875080 64 45031afe7 hisi_sas_v2_hw.o