aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/cpu/mcheck/mce-apei.c4
-rw-r--r--drivers/acpi/apei/ghes.c32
-rw-r--r--include/linux/cper.h8
3 files changed, 22 insertions, 22 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce-apei.c b/arch/x86/kernel/cpu/mcheck/mce-apei.c
index 745b54f9be89..8209472b27a5 100644
--- a/arch/x86/kernel/cpu/mcheck/mce-apei.c
+++ b/arch/x86/kernel/cpu/mcheck/mce-apei.c
@@ -80,7 +80,7 @@ int apei_write_mce(struct mce *m)
80 rcd.hdr.revision = CPER_RECORD_REV; 80 rcd.hdr.revision = CPER_RECORD_REV;
81 rcd.hdr.signature_end = CPER_SIG_END; 81 rcd.hdr.signature_end = CPER_SIG_END;
82 rcd.hdr.section_count = 1; 82 rcd.hdr.section_count = 1;
83 rcd.hdr.error_severity = CPER_SER_FATAL; 83 rcd.hdr.error_severity = CPER_SEV_FATAL;
84 /* timestamp, platform_id, partition_id are all invalid */ 84 /* timestamp, platform_id, partition_id are all invalid */
85 rcd.hdr.validation_bits = 0; 85 rcd.hdr.validation_bits = 0;
86 rcd.hdr.record_length = sizeof(rcd); 86 rcd.hdr.record_length = sizeof(rcd);
@@ -96,7 +96,7 @@ int apei_write_mce(struct mce *m)
96 rcd.sec_hdr.validation_bits = 0; 96 rcd.sec_hdr.validation_bits = 0;
97 rcd.sec_hdr.flags = CPER_SEC_PRIMARY; 97 rcd.sec_hdr.flags = CPER_SEC_PRIMARY;
98 rcd.sec_hdr.section_type = CPER_SECTION_TYPE_MCE; 98 rcd.sec_hdr.section_type = CPER_SECTION_TYPE_MCE;
99 rcd.sec_hdr.section_severity = CPER_SER_FATAL; 99 rcd.sec_hdr.section_severity = CPER_SEV_FATAL;
100 100
101 memcpy(&rcd.mce, m, sizeof(*m)); 101 memcpy(&rcd.mce, m, sizeof(*m));
102 102
diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index fd0cc016a099..c76aff6c861d 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -132,26 +132,26 @@ static void ghes_fini(struct ghes *ghes)
132} 132}
133 133
134enum { 134enum {
135 GHES_SER_NO = 0x0, 135 GHES_SEV_NO = 0x0,
136 GHES_SER_CORRECTED = 0x1, 136 GHES_SEV_CORRECTED = 0x1,
137 GHES_SER_RECOVERABLE = 0x2, 137 GHES_SEV_RECOVERABLE = 0x2,
138 GHES_SER_PANIC = 0x3, 138 GHES_SEV_PANIC = 0x3,
139}; 139};
140 140
141static inline int ghes_severity(int severity) 141static inline int ghes_severity(int severity)
142{ 142{
143 switch (severity) { 143 switch (severity) {
144 case CPER_SER_INFORMATIONAL: 144 case CPER_SEV_INFORMATIONAL:
145 return GHES_SER_NO; 145 return GHES_SEV_NO;
146 case CPER_SER_CORRECTED: 146 case CPER_SEV_CORRECTED:
147 return GHES_SER_CORRECTED; 147 return GHES_SEV_CORRECTED;
148 case CPER_SER_RECOVERABLE: 148 case CPER_SEV_RECOVERABLE:
149 return GHES_SER_RECOVERABLE; 149 return GHES_SEV_RECOVERABLE;
150 case CPER_SER_FATAL: 150 case CPER_SEV_FATAL:
151 return GHES_SER_PANIC; 151 return GHES_SEV_PANIC;
152 default: 152 default:
153 /* Unkown, go panic */ 153 /* Unkown, go panic */
154 return GHES_SER_PANIC; 154 return GHES_SEV_PANIC;
155 } 155 }
156} 156}
157 157
@@ -237,16 +237,16 @@ static void ghes_clear_estatus(struct ghes *ghes)
237 237
238static void ghes_do_proc(struct ghes *ghes) 238static void ghes_do_proc(struct ghes *ghes)
239{ 239{
240 int ser, processed = 0; 240 int sev, processed = 0;
241 struct acpi_hest_generic_data *gdata; 241 struct acpi_hest_generic_data *gdata;
242 242
243 ser = ghes_severity(ghes->estatus->error_severity); 243 sev = ghes_severity(ghes->estatus->error_severity);
244 apei_estatus_for_each_section(ghes->estatus, gdata) { 244 apei_estatus_for_each_section(ghes->estatus, gdata) {
245#ifdef CONFIG_X86_MCE 245#ifdef CONFIG_X86_MCE
246 if (!uuid_le_cmp(*(uuid_le *)gdata->section_type, 246 if (!uuid_le_cmp(*(uuid_le *)gdata->section_type,
247 CPER_SEC_PLATFORM_MEM)) { 247 CPER_SEC_PLATFORM_MEM)) {
248 apei_mce_report_mem_error( 248 apei_mce_report_mem_error(
249 ser == GHES_SER_CORRECTED, 249 sev == GHES_SEV_CORRECTED,
250 (struct cper_sec_mem_err *)(gdata+1)); 250 (struct cper_sec_mem_err *)(gdata+1));
251 processed = 1; 251 processed = 1;
252 } 252 }
diff --git a/include/linux/cper.h b/include/linux/cper.h
index 4b38f905b705..bf972f81e2a7 100644
--- a/include/linux/cper.h
+++ b/include/linux/cper.h
@@ -39,10 +39,10 @@
39 * Severity difinition for error_severity in struct cper_record_header 39 * Severity difinition for error_severity in struct cper_record_header
40 * and section_severity in struct cper_section_descriptor 40 * and section_severity in struct cper_section_descriptor
41 */ 41 */
42#define CPER_SER_RECOVERABLE 0x0 42#define CPER_SEV_RECOVERABLE 0x0
43#define CPER_SER_FATAL 0x1 43#define CPER_SEV_FATAL 0x1
44#define CPER_SER_CORRECTED 0x2 44#define CPER_SEV_CORRECTED 0x2
45#define CPER_SER_INFORMATIONAL 0x3 45#define CPER_SEV_INFORMATIONAL 0x3
46 46
47/* 47/*
48 * Validation bits difinition for validation_bits in struct 48 * Validation bits difinition for validation_bits in struct