EDAC: Fix mem_types strings type
authorBorislav Petkov <bp@suse.de>
Wed, 13 Aug 2014 21:27:55 +0000 (23:27 +0200)
committerBorislav Petkov <bp@suse.de>
Tue, 2 Sep 2014 07:11:16 +0000 (09:11 +0200)
This one got forgotten during an earlier cleanup.

Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/edac_core.h
drivers/edac/edac_mc.c

index 3c2625e7980daf3479ff5261d7790ef9bdc6c84c..6c9f381e8fe6731d0c9c02bce1c793b0f0c302b7 100644 (file)
@@ -66,7 +66,7 @@
 #define EDAC_PCI "PCI"
 #define EDAC_DEBUG "DEBUG"
 
-extern const char *edac_mem_types[];
+extern const char * const edac_mem_types[];
 
 #ifdef CONFIG_EDAC_DEBUG
 extern int edac_debug_level;
index 9f134823fa75848d69e1f7c1f4edd07ae141e08d..c3893b0ddb18425c733cb9446818d9feddcc2ace 100644 (file)
@@ -128,7 +128,7 @@ static void edac_mc_dump_mci(struct mem_ctl_info *mci)
 /*
  * keep those in sync with the enum mem_type
  */
-const char *edac_mem_types[] = {
+const char * const edac_mem_types[] = {
        "Empty csrow",
        "Reserved csrow type",
        "Unknown csrow type",