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>

authored by

Colin Ian King and committed by
Martin K. Petersen
89b203e9 fb2028a0

+5 -5
+5 -5
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
··· 1693 1693 1694 1694 static int parse_trans_tx_err_code_v2_hw(u32 err_msk) 1695 1695 { 1696 - const u8 trans_tx_err_code_prio[] = { 1696 + static const u8 trans_tx_err_code_prio[] = { 1697 1697 TRANS_TX_OPEN_FAIL_WITH_IT_NEXUS_LOSS, 1698 1698 TRANS_TX_ERR_PHY_NOT_ENABLE, 1699 1699 TRANS_TX_OPEN_CNX_ERR_WRONG_DESTINATION, ··· 1738 1738 1739 1739 static int parse_trans_rx_err_code_v2_hw(u32 err_msk) 1740 1740 { 1741 - const u8 trans_rx_err_code_prio[] = { 1741 + static const u8 trans_rx_err_code_prio[] = { 1742 1742 TRANS_RX_ERR_WITH_RXFRAME_CRC_ERR, 1743 1743 TRANS_RX_ERR_WITH_RXFIS_8B10B_DISP_ERR, 1744 1744 TRANS_RX_ERR_WITH_RXFRAME_HAVE_ERRPRM, ··· 1784 1784 1785 1785 static int parse_dma_tx_err_code_v2_hw(u32 err_msk) 1786 1786 { 1787 - const u8 dma_tx_err_code_prio[] = { 1787 + static const u8 dma_tx_err_code_prio[] = { 1788 1788 DMA_TX_UNEXP_XFER_ERR, 1789 1789 DMA_TX_UNEXP_RETRANS_ERR, 1790 1790 DMA_TX_XFER_LEN_OVERFLOW, ··· 1810 1810 1811 1811 static int parse_sipc_rx_err_code_v2_hw(u32 err_msk) 1812 1812 { 1813 - const u8 sipc_rx_err_code_prio[] = { 1813 + static const u8 sipc_rx_err_code_prio[] = { 1814 1814 SIPC_RX_FIS_STATUS_ERR_BIT_VLD, 1815 1815 SIPC_RX_PIO_WRSETUP_STATUS_DRQ_ERR, 1816 1816 SIPC_RX_FIS_STATUS_BSY_BIT_ERR, ··· 1836 1836 1837 1837 static int parse_dma_rx_err_code_v2_hw(u32 err_msk) 1838 1838 { 1839 - const u8 dma_rx_err_code_prio[] = { 1839 + static const u8 dma_rx_err_code_prio[] = { 1840 1840 DMA_RX_UNKNOWN_FRM_ERR, 1841 1841 DMA_RX_DATA_LEN_OVERFLOW, 1842 1842 DMA_RX_DATA_LEN_UNDERFLOW,