Commit 8b7719e08a42079d333f902fdbf5823ea9636d65
1 parent
8bb9660418
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
EDAC, mc_sysfs.c: Fix string array pointer types
Those should be const ptr to a const string, fix them. Signed-off-by: Borislav Petkov <bp@suse.de>
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
drivers/edac/edac_mc_sysfs.c
... | ... | @@ -87,7 +87,7 @@ |
87 | 87 | /* |
88 | 88 | * various constants for Memory Controllers |
89 | 89 | */ |
90 | -static const char *mem_types[] = { | |
90 | +static const char * const mem_types[] = { | |
91 | 91 | [MEM_EMPTY] = "Empty", |
92 | 92 | [MEM_RESERVED] = "Reserved", |
93 | 93 | [MEM_UNKNOWN] = "Unknown", |
... | ... | @@ -107,7 +107,7 @@ |
107 | 107 | [MEM_RDDR3] = "Registered-DDR3" |
108 | 108 | }; |
109 | 109 | |
110 | -static const char *dev_types[] = { | |
110 | +static const char * const dev_types[] = { | |
111 | 111 | [DEV_UNKNOWN] = "Unknown", |
112 | 112 | [DEV_X1] = "x1", |
113 | 113 | [DEV_X2] = "x2", |
... | ... | @@ -118,7 +118,7 @@ |
118 | 118 | [DEV_X64] = "x64" |
119 | 119 | }; |
120 | 120 | |
121 | -static const char *edac_caps[] = { | |
121 | +static const char * const edac_caps[] = { | |
122 | 122 | [EDAC_UNKNOWN] = "Unknown", |
123 | 123 | [EDAC_NONE] = "None", |
124 | 124 | [EDAC_RESERVED] = "Reserved", |