Skip to content

Commit

Permalink
Merge branch 'ras-urgent-for-linus' of git://git.kernel.org/pub/scm/l…
Browse files Browse the repository at this point in the history
…inux/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"
  • Loading branch information
torvalds committed Oct 14, 2017
2 parents 26c923a + 262e681 commit 7b764ce
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 0 additions & 1 deletion arch/x86/include/asm/mce.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ struct mca_msr_regs {

extern struct mce_vendor_flags mce_flags;

extern struct mca_config mca_cfg;
extern struct mca_msr_regs msr_ops;

enum mce_notifier_prios {
Expand Down
7 changes: 7 additions & 0 deletions arch/x86/kernel/cpu/mcheck/mce-internal.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef __X86_MCE_INTERNAL_H__
#define __X86_MCE_INTERNAL_H__

#include <linux/device.h>
#include <asm/mce.h>

Expand Down Expand Up @@ -108,3 +111,7 @@ static inline void mce_work_trigger(void) { }
static inline void mce_register_injector_chain(struct notifier_block *nb) { }
static inline void mce_unregister_injector_chain(struct notifier_block *nb) { }
#endif

extern struct mca_config mca_cfg;

#endif /* __X86_MCE_INTERNAL_H__ */
2 changes: 2 additions & 0 deletions arch/x86/kernel/cpu/mcheck/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#include <asm/msr.h>
#include <asm/trace/irq_vectors.h>

#include "mce-internal.h"

#define NR_BLOCKS 5
#define THRESHOLD_MAX 0xFFF
#define INT_TYPE_APIC 0x00020000
Expand Down
2 changes: 1 addition & 1 deletion drivers/ras/cec.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ int __init parse_cec_param(char *str)
if (*str == '=')
str++;

if (!strncmp(str, "cec_disable", 7))
if (!strcmp(str, "cec_disable"))
ce_arr.disabled = 1;
else
return 0;
Expand Down

0 comments on commit 7b764ce

Please sign in to comment.