@@ -251,7 +251,7 @@ struct flag_table {
251
251
/*
252
252
* CCE Error flags.
253
253
*/
254
- static struct flag_table cce_err_status_flags [] = {
254
+ static const struct flag_table cce_err_status_flags [] = {
255
255
/* 0*/ FLAG_ENTRY0 ("CceCsrParityErr" ,
256
256
CCE_ERR_STATUS_CCE_CSR_PARITY_ERR_SMASK ),
257
257
/* 1*/ FLAG_ENTRY0 ("CceCsrReadBadAddrErr" ,
@@ -341,7 +341,7 @@ static struct flag_table cce_err_status_flags[] = {
341
341
* Misc Error flags
342
342
*/
343
343
#define MES (text ) MISC_ERR_STATUS_MISC_##text##_ERR_SMASK
344
- static struct flag_table misc_err_status_flags [] = {
344
+ static const struct flag_table misc_err_status_flags [] = {
345
345
/* 0*/ FLAG_ENTRY0 ("CSR_PARITY" , MES (CSR_PARITY )),
346
346
/* 1*/ FLAG_ENTRY0 ("CSR_READ_BAD_ADDR" , MES (CSR_READ_BAD_ADDR )),
347
347
/* 2*/ FLAG_ENTRY0 ("CSR_WRITE_BAD_ADDR" , MES (CSR_WRITE_BAD_ADDR )),
@@ -360,7 +360,7 @@ static struct flag_table misc_err_status_flags[] = {
360
360
/*
361
361
* TXE PIO Error flags and consequences
362
362
*/
363
- static struct flag_table pio_err_status_flags [] = {
363
+ static const struct flag_table pio_err_status_flags [] = {
364
364
/* 0*/ FLAG_ENTRY ("PioWriteBadCtxt" ,
365
365
SEC_WRITE_DROPPED ,
366
366
SEND_PIO_ERR_STATUS_PIO_WRITE_BAD_CTXT_ERR_SMASK ),
@@ -502,7 +502,7 @@ static struct flag_table pio_err_status_flags[] = {
502
502
/*
503
503
* TXE SDMA Error flags
504
504
*/
505
- static struct flag_table sdma_err_status_flags [] = {
505
+ static const struct flag_table sdma_err_status_flags [] = {
506
506
/* 0*/ FLAG_ENTRY0 ("SDmaRpyTagErr" ,
507
507
SEND_DMA_ERR_STATUS_SDMA_RPY_TAG_ERR_SMASK ),
508
508
/* 1*/ FLAG_ENTRY0 ("SDmaCsrParityErr" ,
@@ -530,7 +530,7 @@ static struct flag_table sdma_err_status_flags[] = {
530
530
* TXE Egress Error flags
531
531
*/
532
532
#define SEES (text ) SEND_EGRESS_ERR_STATUS_##text##_ERR_SMASK
533
- static struct flag_table egress_err_status_flags [] = {
533
+ static const struct flag_table egress_err_status_flags [] = {
534
534
/* 0*/ FLAG_ENTRY0 ("TxPktIntegrityMemCorErr" , SEES (TX_PKT_INTEGRITY_MEM_COR )),
535
535
/* 1*/ FLAG_ENTRY0 ("TxPktIntegrityMemUncErr" , SEES (TX_PKT_INTEGRITY_MEM_UNC )),
536
536
/* 2 reserved */
@@ -631,7 +631,7 @@ static struct flag_table egress_err_status_flags[] = {
631
631
* TXE Egress Error Info flags
632
632
*/
633
633
#define SEEI (text ) SEND_EGRESS_ERR_INFO_##text##_ERR_SMASK
634
- static struct flag_table egress_err_info_flags [] = {
634
+ static const struct flag_table egress_err_info_flags [] = {
635
635
/* 0*/ FLAG_ENTRY0 ("Reserved" , 0ull ),
636
636
/* 1*/ FLAG_ENTRY0 ("VLErr" , SEEI (VL )),
637
637
/* 2*/ FLAG_ENTRY0 ("JobKeyErr" , SEEI (JOB_KEY )),
@@ -680,7 +680,7 @@ static struct flag_table egress_err_info_flags[] = {
680
680
* TXE Send error flags
681
681
*/
682
682
#define SES (name ) SEND_ERR_STATUS_SEND_##name##_ERR_SMASK
683
- static struct flag_table send_err_status_flags [] = {
683
+ static const struct flag_table send_err_status_flags [] = {
684
684
/* 0*/ FLAG_ENTRY0 ("SendCsrParityErr" , SES (CSR_PARITY )),
685
685
/* 1*/ FLAG_ENTRY0 ("SendCsrReadBadAddrErr" , SES (CSR_READ_BAD_ADDR )),
686
686
/* 2*/ FLAG_ENTRY0 ("SendCsrWriteBadAddrErr" , SES (CSR_WRITE_BAD_ADDR ))
@@ -689,7 +689,7 @@ static struct flag_table send_err_status_flags[] = {
689
689
/*
690
690
* TXE Send Context Error flags and consequences
691
691
*/
692
- static struct flag_table sc_err_status_flags [] = {
692
+ static const struct flag_table sc_err_status_flags [] = {
693
693
/* 0*/ FLAG_ENTRY ("InconsistentSop" ,
694
694
SEC_PACKET_DROPPED | SEC_SC_HALTED ,
695
695
SEND_CTXT_ERR_STATUS_PIO_INCONSISTENT_SOP_ERR_SMASK ),
@@ -712,7 +712,7 @@ static struct flag_table sc_err_status_flags[] = {
712
712
* RXE Receive Error flags
713
713
*/
714
714
#define RXES (name ) RCV_ERR_STATUS_RX_##name##_ERR_SMASK
715
- static struct flag_table rxe_err_status_flags [] = {
715
+ static const struct flag_table rxe_err_status_flags [] = {
716
716
/* 0*/ FLAG_ENTRY0 ("RxDmaCsrCorErr" , RXES (DMA_CSR_COR )),
717
717
/* 1*/ FLAG_ENTRY0 ("RxDcIntfParityErr" , RXES (DC_INTF_PARITY )),
718
718
/* 2*/ FLAG_ENTRY0 ("RxRcvHdrUncErr" , RXES (RCV_HDR_UNC )),
@@ -847,7 +847,7 @@ static struct flag_table rxe_err_status_flags[] = {
847
847
* DCC Error Flags
848
848
*/
849
849
#define DCCE (name ) DCC_ERR_FLG_##name##_SMASK
850
- static struct flag_table dcc_err_flags [] = {
850
+ static const struct flag_table dcc_err_flags [] = {
851
851
FLAG_ENTRY0 ("bad_l2_err" , DCCE (BAD_L2_ERR )),
852
852
FLAG_ENTRY0 ("bad_sc_err" , DCCE (BAD_SC_ERR )),
853
853
FLAG_ENTRY0 ("bad_mid_tail_err" , DCCE (BAD_MID_TAIL_ERR )),
@@ -900,7 +900,7 @@ static struct flag_table dcc_err_flags[] = {
900
900
* LCB error flags
901
901
*/
902
902
#define LCBE (name ) DC_LCB_ERR_FLG_##name##_SMASK
903
- static struct flag_table lcb_err_flags [] = {
903
+ static const struct flag_table lcb_err_flags [] = {
904
904
/* 0*/ FLAG_ENTRY0 ("CSR_PARITY_ERR" , LCBE (CSR_PARITY_ERR )),
905
905
/* 1*/ FLAG_ENTRY0 ("INVALID_CSR_ADDR" , LCBE (INVALID_CSR_ADDR )),
906
906
/* 2*/ FLAG_ENTRY0 ("RST_FOR_FAILED_DESKEW" , LCBE (RST_FOR_FAILED_DESKEW )),
@@ -943,7 +943,7 @@ static struct flag_table lcb_err_flags[] = {
943
943
* DC8051 Error Flags
944
944
*/
945
945
#define D8E (name ) DC_DC8051_ERR_FLG_##name##_SMASK
946
- static struct flag_table dc8051_err_flags [] = {
946
+ static const struct flag_table dc8051_err_flags [] = {
947
947
FLAG_ENTRY0 ("SET_BY_8051" , D8E (SET_BY_8051 )),
948
948
FLAG_ENTRY0 ("LOST_8051_HEART_BEAT" , D8E (LOST_8051_HEART_BEAT )),
949
949
FLAG_ENTRY0 ("CRAM_MBE" , D8E (CRAM_MBE )),
@@ -962,7 +962,7 @@ static struct flag_table dc8051_err_flags[] = {
962
962
*
963
963
* Flags in DC8051_DBG_ERR_INFO_SET_BY_8051.ERROR field.
964
964
*/
965
- static struct flag_table dc8051_info_err_flags [] = {
965
+ static const struct flag_table dc8051_info_err_flags [] = {
966
966
FLAG_ENTRY0 ("Spico ROM check failed" , SPICO_ROM_FAILED ),
967
967
FLAG_ENTRY0 ("Unknown frame received" , UNKNOWN_FRAME ),
968
968
FLAG_ENTRY0 ("Target BER not met" , TARGET_BER_NOT_MET ),
@@ -986,7 +986,7 @@ static struct flag_table dc8051_info_err_flags[] = {
986
986
*
987
987
* Flags in DC8051_DBG_ERR_INFO_SET_BY_8051.HOST_MSG field.
988
988
*/
989
- static struct flag_table dc8051_info_host_msg_flags [] = {
989
+ static const struct flag_table dc8051_info_host_msg_flags [] = {
990
990
FLAG_ENTRY0 ("Host request done" , 0x0001 ),
991
991
FLAG_ENTRY0 ("BC PWR_MGM message" , 0x0002 ),
992
992
FLAG_ENTRY0 ("BC SMA message" , 0x0004 ),
@@ -5275,7 +5275,7 @@ static int append_str(char *buf, char **curp, int *lenp, const char *s)
5275
5275
* the buffer. End in '*' if the buffer is too short.
5276
5276
*/
5277
5277
static char * flag_string (char * buf , int buf_len , u64 flags ,
5278
- struct flag_table * table , int table_size )
5278
+ const struct flag_table * table , int table_size )
5279
5279
{
5280
5280
char extra [32 ];
5281
5281
char * p = buf ;
0 commit comments