diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2011-11-29 13:03:25 -0500 |
---|---|---|
committer | Borislav Petkov <bp@alien8.de> | 2012-03-19 07:06:26 -0400 |
commit | ebe2aea86872622d4352cd71d55298fedf69a7bb (patch) | |
tree | aa6848d1091c766c7945e7b6f0ada986ad604e03 /drivers/edac | |
parent | ae615b4b5f0b875cbe8a029239436c6aed8c0ef4 (diff) |
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>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/mce_amd.c | 14 | ||||
-rw-r--r-- | drivers/edac/mce_amd.h | 12 |
2 files changed, 13 insertions, 13 deletions
diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index 88a92974b78c..36e1486eb9aa 100644 --- a/drivers/edac/mce_amd.c +++ b/drivers/edac/mce_amd.c | |||
@@ -39,29 +39,29 @@ EXPORT_SYMBOL_GPL(amd_unregister_ecc_decoder); | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | /* transaction type */ | 41 | /* transaction type */ |
42 | const char *tt_msgs[] = { "INSN", "DATA", "GEN", "RESV" }; | 42 | const char * const tt_msgs[] = { "INSN", "DATA", "GEN", "RESV" }; |
43 | EXPORT_SYMBOL_GPL(tt_msgs); | 43 | EXPORT_SYMBOL_GPL(tt_msgs); |
44 | 44 | ||
45 | /* cache level */ | 45 | /* cache level */ |
46 | const char *ll_msgs[] = { "RESV", "L1", "L2", "L3/GEN" }; | 46 | const char * const ll_msgs[] = { "RESV", "L1", "L2", "L3/GEN" }; |
47 | EXPORT_SYMBOL_GPL(ll_msgs); | 47 | EXPORT_SYMBOL_GPL(ll_msgs); |
48 | 48 | ||
49 | /* memory transaction type */ | 49 | /* memory transaction type */ |
50 | const char *rrrr_msgs[] = { | 50 | const char * const rrrr_msgs[] = { |
51 | "GEN", "RD", "WR", "DRD", "DWR", "IRD", "PRF", "EV", "SNP" | 51 | "GEN", "RD", "WR", "DRD", "DWR", "IRD", "PRF", "EV", "SNP" |
52 | }; | 52 | }; |
53 | EXPORT_SYMBOL_GPL(rrrr_msgs); | 53 | EXPORT_SYMBOL_GPL(rrrr_msgs); |
54 | 54 | ||
55 | /* participating processor */ | 55 | /* participating processor */ |
56 | const char *pp_msgs[] = { "SRC", "RES", "OBS", "GEN" }; | 56 | const char * const pp_msgs[] = { "SRC", "RES", "OBS", "GEN" }; |
57 | EXPORT_SYMBOL_GPL(pp_msgs); | 57 | EXPORT_SYMBOL_GPL(pp_msgs); |
58 | 58 | ||
59 | /* request timeout */ | 59 | /* request timeout */ |
60 | const char *to_msgs[] = { "no timeout", "timed out" }; | 60 | const char * const to_msgs[] = { "no timeout", "timed out" }; |
61 | EXPORT_SYMBOL_GPL(to_msgs); | 61 | EXPORT_SYMBOL_GPL(to_msgs); |
62 | 62 | ||
63 | /* memory or i/o */ | 63 | /* memory or i/o */ |
64 | const char *ii_msgs[] = { "MEM", "RESV", "IO", "GEN" }; | 64 | const char * const ii_msgs[] = { "MEM", "RESV", "IO", "GEN" }; |
65 | EXPORT_SYMBOL_GPL(ii_msgs); | 65 | EXPORT_SYMBOL_GPL(ii_msgs); |
66 | 66 | ||
67 | static const char * const f15h_ic_mce_desc[] = { | 67 | static const char * const f15h_ic_mce_desc[] = { |
@@ -101,7 +101,7 @@ static const char * const f15h_cu_mce_desc[] = { | |||
101 | "PRB address parity error" | 101 | "PRB address parity error" |
102 | }; | 102 | }; |
103 | 103 | ||
104 | static const char *nb_mce_desc[] = { | 104 | static const char * const nb_mce_desc[] = { |
105 | "DRAM ECC error detected on the NB", | 105 | "DRAM ECC error detected on the NB", |
106 | "CRC error detected on HT link", | 106 | "CRC error detected on HT link", |
107 | "Link-defined sync error packets detected on HT link", | 107 | "Link-defined sync error packets detected on HT link", |
diff --git a/drivers/edac/mce_amd.h b/drivers/edac/mce_amd.h index 6fcf599e691f..c6074c5cd1ef 100644 --- a/drivers/edac/mce_amd.h +++ b/drivers/edac/mce_amd.h | |||
@@ -69,12 +69,12 @@ enum rrrr_ids { | |||
69 | R4_SNOOP, | 69 | R4_SNOOP, |
70 | }; | 70 | }; |
71 | 71 | ||
72 | extern const char *tt_msgs[]; | 72 | extern const char * const tt_msgs[]; |
73 | extern const char *ll_msgs[]; | 73 | extern const char * const ll_msgs[]; |
74 | extern const char *rrrr_msgs[]; | 74 | extern const char * const rrrr_msgs[]; |
75 | extern const char *pp_msgs[]; | 75 | extern const char * const pp_msgs[]; |
76 | extern const char *to_msgs[]; | 76 | extern const char * const to_msgs[]; |
77 | extern const char *ii_msgs[]; | 77 | extern const char * const ii_msgs[]; |
78 | 78 | ||
79 | /* | 79 | /* |
80 | * per-family decoder ops | 80 | * per-family decoder ops |