scsi: hisi_sas: make several const arrays static
authorColin Ian King <colin.king@canonical.com>
Tue, 11 Jul 2017 12:11:44 +0000 (13:11 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Jul 2017 21:23:07 +0000 (17:23 -0400)
commit89b203e9d07d4079367120a6fe271ad9e9b751c0
tree32d6d8e3b005eaf5a0021c30cfa6ae1473bc12fc
parentfb2028a0b24e0823bbc0a28e6f0f1bd9fbbf733c
scsi: hisi_sas: make several const arrays static

Don't populate various tables on the stack but make them static const.
Makes the object code smaller by over 280 bytes:

Before:
   text    data     bss     dec     hex filename
  39887    5080      64   45031    afe7 hisi_sas_v2_hw.o

After:
   text    data     bss     dec     hex filename
  39318    5368      64   44750    aece hisi_sas_v2_hw.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c