Skip to content

Commit ebe2aea

Browse files
Borislav PetkovBorislav Petkov
authored andcommitted
MCE, AMD: Constify error tables
... so that checkpatch can chill out. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com> Reviewed-by: Andreas Herrmann <andreas.herrmann3@amd.com>
1 parent ae615b4 commit ebe2aea

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎drivers/edac/mce_amd.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,29 @@ EXPORT_SYMBOL_GPL(amd_unregister_ecc_decoder);
3939
*/
4040

4141
/* transaction type */
42-
const char *tt_msgs[] = { "INSN", "DATA", "GEN", "RESV" };
42+
const char * const tt_msgs[] = { "INSN", "DATA", "GEN", "RESV" };
4343
EXPORT_SYMBOL_GPL(tt_msgs);
4444

4545
/* cache level */
46-
const char *ll_msgs[] = { "RESV", "L1", "L2", "L3/GEN" };
46+
const char * const ll_msgs[] = { "RESV", "L1", "L2", "L3/GEN" };
4747
EXPORT_SYMBOL_GPL(ll_msgs);
4848

4949
/* memory transaction type */
50-
const char *rrrr_msgs[] = {
50+
const char * const rrrr_msgs[] = {
5151
"GEN", "RD", "WR", "DRD", "DWR", "IRD", "PRF", "EV", "SNP"
5252
};
5353
EXPORT_SYMBOL_GPL(rrrr_msgs);
5454

5555
/* participating processor */
56-
const char *pp_msgs[] = { "SRC", "RES", "OBS", "GEN" };
56+
const char * const pp_msgs[] = { "SRC", "RES", "OBS", "GEN" };
5757
EXPORT_SYMBOL_GPL(pp_msgs);
5858

5959
/* request timeout */
60-
const char *to_msgs[] = { "no timeout", "timed out" };
60+
const char * const to_msgs[] = { "no timeout", "timed out" };
6161
EXPORT_SYMBOL_GPL(to_msgs);
6262

6363
/* memory or i/o */
64-
const char *ii_msgs[] = { "MEM", "RESV", "IO", "GEN" };
64+
const char * const ii_msgs[] = { "MEM", "RESV", "IO", "GEN" };
6565
EXPORT_SYMBOL_GPL(ii_msgs);
6666

6767
static const char * const f15h_ic_mce_desc[] = {
@@ -101,7 +101,7 @@ static const char * const f15h_cu_mce_desc[] = {
101101
"PRB address parity error"
102102
};
103103

104-
static const char *nb_mce_desc[] = {
104+
static const char * const nb_mce_desc[] = {
105105
"DRAM ECC error detected on the NB",
106106
"CRC error detected on HT link",
107107
"Link-defined sync error packets detected on HT link",

‎drivers/edac/mce_amd.h‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ enum rrrr_ids {
6969
R4_SNOOP,
7070
};
7171

72-
extern const char *tt_msgs[];
73-
extern const char *ll_msgs[];
74-
extern const char *rrrr_msgs[];
75-
extern const char *pp_msgs[];
76-
extern const char *to_msgs[];
77-
extern const char *ii_msgs[];
72+
extern const char * const tt_msgs[];
73+
extern const char * const ll_msgs[];
74+
extern const char * const rrrr_msgs[];
75+
extern const char * const pp_msgs[];
76+
extern const char * const to_msgs[];
77+
extern const char * const ii_msgs[];
7878

7979
/*
8080
* per-family decoder ops

0 commit comments

Comments
 (0)