提交 8b7719e0 编写于 作者: B Borislav Petkov

EDAC, mc_sysfs.c: Fix string array pointer types

Those should be const ptr to a const string, fix them.
Signed-off-by: NBorislav Petkov <bp@suse.de>
上级 8bb96604
...@@ -87,7 +87,7 @@ static struct device *mci_pdev; ...@@ -87,7 +87,7 @@ static struct device *mci_pdev;
/* /*
* various constants for Memory Controllers * various constants for Memory Controllers
*/ */
static const char *mem_types[] = { static const char * const mem_types[] = {
[MEM_EMPTY] = "Empty", [MEM_EMPTY] = "Empty",
[MEM_RESERVED] = "Reserved", [MEM_RESERVED] = "Reserved",
[MEM_UNKNOWN] = "Unknown", [MEM_UNKNOWN] = "Unknown",
...@@ -107,7 +107,7 @@ static const char *mem_types[] = { ...@@ -107,7 +107,7 @@ static const char *mem_types[] = {
[MEM_RDDR3] = "Registered-DDR3" [MEM_RDDR3] = "Registered-DDR3"
}; };
static const char *dev_types[] = { static const char * const dev_types[] = {
[DEV_UNKNOWN] = "Unknown", [DEV_UNKNOWN] = "Unknown",
[DEV_X1] = "x1", [DEV_X1] = "x1",
[DEV_X2] = "x2", [DEV_X2] = "x2",
...@@ -118,7 +118,7 @@ static const char *dev_types[] = { ...@@ -118,7 +118,7 @@ static const char *dev_types[] = {
[DEV_X64] = "x64" [DEV_X64] = "x64"
}; };
static const char *edac_caps[] = { static const char * const edac_caps[] = {
[EDAC_UNKNOWN] = "Unknown", [EDAC_UNKNOWN] = "Unknown",
[EDAC_NONE] = "None", [EDAC_NONE] = "None",
[EDAC_RESERVED] = "Reserved", [EDAC_RESERVED] = "Reserved",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册