diff options
author | Borislav Petkov <bp@suse.de> | 2014-12-22 15:04:31 -0500 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2014-12-22 15:04:31 -0500 |
commit | 83737691e586cd2767fa4fc87cd41251d1a49e9e (patch) | |
tree | 4a625d200b24186a7d5aac8dc83512b0f6ab8f08 /arch/x86/kernel/cpu/mcheck/mce.c | |
parent | 6c80f87ed4483bff0ecbf4455a1b09e7f950e9ab (diff) |
x86, mce: Fix sparse errors
Make stuff used in mce.c only, static.
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'arch/x86/kernel/cpu/mcheck/mce.c')
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 323e02c658af..4c5cd7575d31 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c | |||
@@ -115,7 +115,7 @@ static void (*quirk_no_way_out)(int bank, struct mce *m, struct pt_regs *regs); | |||
115 | * CPU/chipset specific EDAC code can register a notifier call here to print | 115 | * CPU/chipset specific EDAC code can register a notifier call here to print |
116 | * MCE errors in a human-readable form. | 116 | * MCE errors in a human-readable form. |
117 | */ | 117 | */ |
118 | ATOMIC_NOTIFIER_HEAD(x86_mce_decoder_chain); | 118 | static ATOMIC_NOTIFIER_HEAD(x86_mce_decoder_chain); |
119 | 119 | ||
120 | /* Do initial initialization of a struct mce */ | 120 | /* Do initial initialization of a struct mce */ |
121 | void mce_setup(struct mce *m) | 121 | void mce_setup(struct mce *m) |
@@ -529,7 +529,7 @@ static void mce_schedule_work(void) | |||
529 | schedule_work(this_cpu_ptr(&mce_work)); | 529 | schedule_work(this_cpu_ptr(&mce_work)); |
530 | } | 530 | } |
531 | 531 | ||
532 | DEFINE_PER_CPU(struct irq_work, mce_irq_work); | 532 | static DEFINE_PER_CPU(struct irq_work, mce_irq_work); |
533 | 533 | ||
534 | static void mce_irq_work_cb(struct irq_work *entry) | 534 | static void mce_irq_work_cb(struct irq_work *entry) |
535 | { | 535 | { |
@@ -1012,7 +1012,7 @@ static void mce_clear_state(unsigned long *toclear) | |||
1012 | */ | 1012 | */ |
1013 | #define MCE_INFO_MAX 16 | 1013 | #define MCE_INFO_MAX 16 |
1014 | 1014 | ||
1015 | struct mce_info { | 1015 | static struct mce_info { |
1016 | atomic_t inuse; | 1016 | atomic_t inuse; |
1017 | struct task_struct *t; | 1017 | struct task_struct *t; |
1018 | __u64 paddr; | 1018 | __u64 paddr; |