diff --git a/qla2x00t-32gbit/qla_os.c b/qla2x00t-32gbit/qla_os.c index 2de83a313..67dfd414f 100644 --- a/qla2x00t-32gbit/qla_os.c +++ b/qla2x00t-32gbit/qla_os.c @@ -559,7 +559,7 @@ static char * qla2x00_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len) { struct qla_hw_data *ha = vha->hw; - static const char *pci_bus_modes[] = { + static const char *const pci_bus_modes[] = { "33", "66", "100", "133", }; uint16_t pci_bus; @@ -579,7 +579,9 @@ qla2x00_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len) static char * qla24xx_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len) { - static const char *pci_bus_modes[] = { "33", "66", "100", "133", }; + static const char *const pci_bus_modes[] = { + "33", "66", "100", "133", + }; struct qla_hw_data *ha = vha->hw; uint32_t pci_bus; diff --git a/qla2x00t/qla_os.c b/qla2x00t/qla_os.c index fc0042d3e..20bb988a1 100644 --- a/qla2x00t/qla_os.c +++ b/qla2x00t/qla_os.c @@ -503,7 +503,7 @@ static char * qla2x00_pci_info_str(struct scsi_qla_host *vha, char *str, int str_len) { struct qla_hw_data *ha = vha->hw; - static char *pci_bus_modes[] = { + static const char *const pci_bus_modes[] = { "33", "66", "100", "133", }; uint16_t pci_bus; @@ -526,7 +526,9 @@ qla2x00_pci_info_str(struct scsi_qla_host *vha, char *str, int str_len) static char * qla24xx_pci_info_str(struct scsi_qla_host *vha, char *str, int str_len) { - static const char *pci_bus_modes[] = { "33", "66", "100", "133", }; + static const char *const pci_bus_modes[] = { + "33", "66", "100", "133", + }; struct qla_hw_data *ha = vha->hw; uint32_t pci_bus; int pcie_reg;