diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-09 13:11:08 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-09 13:11:08 -0400 |
| commit | 7462543abb87f55b530dfbb8d857645f1cebd756 (patch) | |
| tree | e8ab60ee5a12ae9ab18a02852e7facc0394279b3 | |
| parent | bde9d73ddc85725ccdc9863b37acc0f03806b281 (diff) | |
| parent | c8c64d165ccfd2274058ac84e0c680f9b48c4ec1 (diff) | |
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
| -rw-r--r-- | drivers/edac/edac_mc_sysfs.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c index 5899a76eec3b..67610a6ebf87 100644 --- a/drivers/edac/edac_mc_sysfs.c +++ b/drivers/edac/edac_mc_sysfs.c | |||
| @@ -87,7 +87,7 @@ static struct device *mci_pdev; | |||
| 87 | /* | 87 | /* |
| 88 | * various constants for Memory Controllers | 88 | * various constants for Memory Controllers |
| 89 | */ | 89 | */ |
| 90 | static const char *mem_types[] = { | 90 | static const char * const mem_types[] = { |
| 91 | [MEM_EMPTY] = "Empty", | 91 | [MEM_EMPTY] = "Empty", |
| 92 | [MEM_RESERVED] = "Reserved", | 92 | [MEM_RESERVED] = "Reserved", |
| 93 | [MEM_UNKNOWN] = "Unknown", | 93 | [MEM_UNKNOWN] = "Unknown", |
| @@ -107,7 +107,7 @@ static const char *mem_types[] = { | |||
| 107 | [MEM_RDDR3] = "Registered-DDR3" | 107 | [MEM_RDDR3] = "Registered-DDR3" |
| 108 | }; | 108 | }; |
| 109 | 109 | ||
| 110 | static const char *dev_types[] = { | 110 | static const char * const dev_types[] = { |
| 111 | [DEV_UNKNOWN] = "Unknown", | 111 | [DEV_UNKNOWN] = "Unknown", |
| 112 | [DEV_X1] = "x1", | 112 | [DEV_X1] = "x1", |
| 113 | [DEV_X2] = "x2", | 113 | [DEV_X2] = "x2", |
| @@ -118,7 +118,7 @@ static const char *dev_types[] = { | |||
| 118 | [DEV_X64] = "x64" | 118 | [DEV_X64] = "x64" |
| 119 | }; | 119 | }; |
| 120 | 120 | ||
| 121 | static const char *edac_caps[] = { | 121 | static const char * const edac_caps[] = { |
| 122 | [EDAC_UNKNOWN] = "Unknown", | 122 | [EDAC_UNKNOWN] = "Unknown", |
| 123 | [EDAC_NONE] = "None", | 123 | [EDAC_NONE] = "None", |
| 124 | [EDAC_RESERVED] = "Reserved", | 124 | [EDAC_RESERVED] = "Reserved", |
| @@ -327,17 +327,17 @@ static struct device_attribute *dynamic_csrow_dimm_attr[] = { | |||
| 327 | }; | 327 | }; |
| 328 | 328 | ||
| 329 | /* possible dynamic channel ce_count attribute files */ | 329 | /* 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, |
| 331 | channel_ce_count_show, NULL, 0); | 331 | channel_ce_count_show, NULL, 0); |
| 332 | DEVICE_CHANNEL(ch1_ce_count, S_IRUGO | S_IWUSR, | 332 | DEVICE_CHANNEL(ch1_ce_count, S_IRUGO, |
| 333 | channel_ce_count_show, NULL, 1); | 333 | channel_ce_count_show, NULL, 1); |
| 334 | DEVICE_CHANNEL(ch2_ce_count, S_IRUGO | S_IWUSR, | 334 | DEVICE_CHANNEL(ch2_ce_count, S_IRUGO, |
| 335 | channel_ce_count_show, NULL, 2); | 335 | channel_ce_count_show, NULL, 2); |
| 336 | DEVICE_CHANNEL(ch3_ce_count, S_IRUGO | S_IWUSR, | 336 | DEVICE_CHANNEL(ch3_ce_count, S_IRUGO, |
| 337 | channel_ce_count_show, NULL, 3); | 337 | channel_ce_count_show, NULL, 3); |
| 338 | DEVICE_CHANNEL(ch4_ce_count, S_IRUGO | S_IWUSR, | 338 | DEVICE_CHANNEL(ch4_ce_count, S_IRUGO, |
| 339 | channel_ce_count_show, NULL, 4); | 339 | channel_ce_count_show, NULL, 4); |
| 340 | DEVICE_CHANNEL(ch5_ce_count, S_IRUGO | S_IWUSR, | 340 | DEVICE_CHANNEL(ch5_ce_count, S_IRUGO, |
| 341 | channel_ce_count_show, NULL, 5); | 341 | channel_ce_count_show, NULL, 5); |
| 342 | 342 | ||
| 343 | /* Total possible dynamic ce_count attribute file table */ | 343 | /* Total possible dynamic ce_count attribute file table */ |
