Skip to content

Commit 7462543

Browse files
committed
Merge tag 'edac_fixes_for_3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp
Pull two small EDAC fixes from Borislav Petkov. * tag 'edac_fixes_for_3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp: EDAC: Don't give write permission to read-only files EDAC, mc_sysfs.c: Fix string array pointer types
2 parents bde9d73 + c8c64d1 commit 7462543

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎drivers/edac/edac_mc_sysfs.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static struct device *mci_pdev;
8787
/*
8888
* various constants for Memory Controllers
8989
*/
90-
static const char *mem_types[] = {
90+
static const char * const mem_types[] = {
9191
[MEM_EMPTY] = "Empty",
9292
[MEM_RESERVED] = "Reserved",
9393
[MEM_UNKNOWN] = "Unknown",
@@ -107,7 +107,7 @@ static const char *mem_types[] = {
107107
[MEM_RDDR3] = "Registered-DDR3"
108108
};
109109

110-
static const char *dev_types[] = {
110+
static const char * const dev_types[] = {
111111
[DEV_UNKNOWN] = "Unknown",
112112
[DEV_X1] = "x1",
113113
[DEV_X2] = "x2",
@@ -118,7 +118,7 @@ static const char *dev_types[] = {
118118
[DEV_X64] = "x64"
119119
};
120120

121-
static const char *edac_caps[] = {
121+
static const char * const edac_caps[] = {
122122
[EDAC_UNKNOWN] = "Unknown",
123123
[EDAC_NONE] = "None",
124124
[EDAC_RESERVED] = "Reserved",
@@ -327,17 +327,17 @@ static struct device_attribute *dynamic_csrow_dimm_attr[] = {
327327
};
328328

329329
/* possible dynamic channel ce_count attribute files */
330-
DEVICE_CHANNEL(ch0_ce_count, S_IRUGO | S_IWUSR,
330+
DEVICE_CHANNEL(ch0_ce_count, S_IRUGO,
331331
channel_ce_count_show, NULL, 0);
332-
DEVICE_CHANNEL(ch1_ce_count, S_IRUGO | S_IWUSR,
332+
DEVICE_CHANNEL(ch1_ce_count, S_IRUGO,
333333
channel_ce_count_show, NULL, 1);
334-
DEVICE_CHANNEL(ch2_ce_count, S_IRUGO | S_IWUSR,
334+
DEVICE_CHANNEL(ch2_ce_count, S_IRUGO,
335335
channel_ce_count_show, NULL, 2);
336-
DEVICE_CHANNEL(ch3_ce_count, S_IRUGO | S_IWUSR,
336+
DEVICE_CHANNEL(ch3_ce_count, S_IRUGO,
337337
channel_ce_count_show, NULL, 3);
338-
DEVICE_CHANNEL(ch4_ce_count, S_IRUGO | S_IWUSR,
338+
DEVICE_CHANNEL(ch4_ce_count, S_IRUGO,
339339
channel_ce_count_show, NULL, 4);
340-
DEVICE_CHANNEL(ch5_ce_count, S_IRUGO | S_IWUSR,
340+
DEVICE_CHANNEL(ch5_ce_count, S_IRUGO,
341341
channel_ce_count_show, NULL, 5);
342342

343343
/* Total possible dynamic ce_count attribute file table */

0 commit comments

Comments
 (0)