diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-10-14 15:19:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-10-14 15:19:11 -0400 |
commit | 7b764cedcb1a04e795795dd0fa38570467583be3 (patch) | |
tree | e50d5e6d1dd212e852f148e8f058d157e9c52dd7 | |
parent | 26c923ab196601011b6dd51088f47ed840e7b666 (diff) | |
parent | 262e681183ddcdb24d64a2f993e41a226adcec29 (diff) |
Merge branch 'ras-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull RAS fixes from Ingo Molnar:
"A boot parameter fix, plus a header export fix"
* 'ras-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/mce: Hide mca_cfg
RAS/CEC: Use the right length for "cec_disable"
-rw-r--r-- | arch/x86/include/asm/mce.h | 1 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce-internal.h | 7 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce_amd.c | 2 | ||||
-rw-r--r-- | drivers/ras/cec.c | 2 |
4 files changed, 10 insertions, 2 deletions
diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h index 181264989db5..8edac1de2e35 100644 --- a/arch/x86/include/asm/mce.h +++ b/arch/x86/include/asm/mce.h | |||
@@ -187,7 +187,6 @@ struct mca_msr_regs { | |||
187 | 187 | ||
188 | extern struct mce_vendor_flags mce_flags; | 188 | extern struct mce_vendor_flags mce_flags; |
189 | 189 | ||
190 | extern struct mca_config mca_cfg; | ||
191 | extern struct mca_msr_regs msr_ops; | 190 | extern struct mca_msr_regs msr_ops; |
192 | 191 | ||
193 | enum mce_notifier_prios { | 192 | enum mce_notifier_prios { |
diff --git a/arch/x86/kernel/cpu/mcheck/mce-internal.h b/arch/x86/kernel/cpu/mcheck/mce-internal.h index 098530a93bb7..debb974fd17d 100644 --- a/arch/x86/kernel/cpu/mcheck/mce-internal.h +++ b/arch/x86/kernel/cpu/mcheck/mce-internal.h | |||
@@ -1,3 +1,6 @@ | |||
1 | #ifndef __X86_MCE_INTERNAL_H__ | ||
2 | #define __X86_MCE_INTERNAL_H__ | ||
3 | |||
1 | #include <linux/device.h> | 4 | #include <linux/device.h> |
2 | #include <asm/mce.h> | 5 | #include <asm/mce.h> |
3 | 6 | ||
@@ -108,3 +111,7 @@ static inline void mce_work_trigger(void) { } | |||
108 | static inline void mce_register_injector_chain(struct notifier_block *nb) { } | 111 | static inline void mce_register_injector_chain(struct notifier_block *nb) { } |
109 | static inline void mce_unregister_injector_chain(struct notifier_block *nb) { } | 112 | static inline void mce_unregister_injector_chain(struct notifier_block *nb) { } |
110 | #endif | 113 | #endif |
114 | |||
115 | extern struct mca_config mca_cfg; | ||
116 | |||
117 | #endif /* __X86_MCE_INTERNAL_H__ */ | ||
diff --git a/arch/x86/kernel/cpu/mcheck/mce_amd.c b/arch/x86/kernel/cpu/mcheck/mce_amd.c index 40e28ed77fbf..486f640b02ef 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_amd.c +++ b/arch/x86/kernel/cpu/mcheck/mce_amd.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <asm/msr.h> | 28 | #include <asm/msr.h> |
29 | #include <asm/trace/irq_vectors.h> | 29 | #include <asm/trace/irq_vectors.h> |
30 | 30 | ||
31 | #include "mce-internal.h" | ||
32 | |||
31 | #define NR_BLOCKS 5 | 33 | #define NR_BLOCKS 5 |
32 | #define THRESHOLD_MAX 0xFFF | 34 | #define THRESHOLD_MAX 0xFFF |
33 | #define INT_TYPE_APIC 0x00020000 | 35 | #define INT_TYPE_APIC 0x00020000 |
diff --git a/drivers/ras/cec.c b/drivers/ras/cec.c index d0e5d6ee882c..e2c1988cd7c0 100644 --- a/drivers/ras/cec.c +++ b/drivers/ras/cec.c | |||
@@ -523,7 +523,7 @@ int __init parse_cec_param(char *str) | |||
523 | if (*str == '=') | 523 | if (*str == '=') |
524 | str++; | 524 | str++; |
525 | 525 | ||
526 | if (!strncmp(str, "cec_disable", 7)) | 526 | if (!strcmp(str, "cec_disable")) |
527 | ce_arr.disabled = 1; | 527 | ce_arr.disabled = 1; |
528 | else | 528 | else |
529 | return 0; | 529 | return 0; |