mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 23:50:25 +00:00
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>
This commit is contained in:
parent
8bb9660418
commit
8b7719e08a
@ -87,7 +87,7 @@ static struct device *mci_pdev;
|
||||
/*
|
||||
* various constants for Memory Controllers
|
||||
*/
|
||||
static const char *mem_types[] = {
|
||||
static const char * const mem_types[] = {
|
||||
[MEM_EMPTY] = "Empty",
|
||||
[MEM_RESERVED] = "Reserved",
|
||||
[MEM_UNKNOWN] = "Unknown",
|
||||
@ -107,7 +107,7 @@ static const char *mem_types[] = {
|
||||
[MEM_RDDR3] = "Registered-DDR3"
|
||||
};
|
||||
|
||||
static const char *dev_types[] = {
|
||||
static const char * const dev_types[] = {
|
||||
[DEV_UNKNOWN] = "Unknown",
|
||||
[DEV_X1] = "x1",
|
||||
[DEV_X2] = "x2",
|
||||
@ -118,7 +118,7 @@ static const char *dev_types[] = {
|
||||
[DEV_X64] = "x64"
|
||||
};
|
||||
|
||||
static const char *edac_caps[] = {
|
||||
static const char * const edac_caps[] = {
|
||||
[EDAC_UNKNOWN] = "Unknown",
|
||||
[EDAC_NONE] = "None",
|
||||
[EDAC_RESERVED] = "Reserved",
|
||||
|
Loading…
x
Reference in New Issue
Block a user