aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/apei
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/apei')
-rw-r--r--drivers/acpi/apei/hest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/apei/hest.c b/drivers/acpi/apei/hest.c
index 502024502b13..f5e37f32c71f 100644
--- a/drivers/acpi/apei/hest.c
+++ b/drivers/acpi/apei/hest.c
@@ -128,6 +128,7 @@ EXPORT_SYMBOL_GPL(apei_hest_parse);
128 */ 128 */
129static int __init hest_parse_cmc(struct acpi_hest_header *hest_hdr, void *data) 129static int __init hest_parse_cmc(struct acpi_hest_header *hest_hdr, void *data)
130{ 130{
131#ifdef CONFIG_X86_MCE
131 int i; 132 int i;
132 struct acpi_hest_ia_corrected *cmc; 133 struct acpi_hest_ia_corrected *cmc;
133 struct acpi_hest_ia_error_bank *mc_bank; 134 struct acpi_hest_ia_error_bank *mc_bank;
@@ -152,7 +153,7 @@ static int __init hest_parse_cmc(struct acpi_hest_header *hest_hdr, void *data)
152 mc_bank = (struct acpi_hest_ia_error_bank *)(cmc + 1); 153 mc_bank = (struct acpi_hest_ia_error_bank *)(cmc + 1);
153 for (i = 0; i < cmc->num_hardware_banks; i++, mc_bank++) 154 for (i = 0; i < cmc->num_hardware_banks; i++, mc_bank++)
154 mce_disable_bank(mc_bank->bank_number); 155 mce_disable_bank(mc_bank->bank_number);
155 156#endif
156 return 1; 157 return 1;
157} 158}
158 159