Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83737691 authored by Borislav Petkov's avatar Borislav Petkov
Browse files

x86, mce: Fix sparse errors



Make stuff used in mce.c only, static.

Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
parent 6c80f87e
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -115,7 +115,7 @@ static void (*quirk_no_way_out)(int bank, struct mce *m, struct pt_regs *regs);
 * CPU/chipset specific EDAC code can register a notifier call here to print
 * CPU/chipset specific EDAC code can register a notifier call here to print
 * MCE errors in a human-readable form.
 * MCE errors in a human-readable form.
 */
 */
ATOMIC_NOTIFIER_HEAD(x86_mce_decoder_chain);
static ATOMIC_NOTIFIER_HEAD(x86_mce_decoder_chain);


/* Do initial initialization of a struct mce */
/* Do initial initialization of a struct mce */
void mce_setup(struct mce *m)
void mce_setup(struct mce *m)
@@ -529,7 +529,7 @@ static void mce_schedule_work(void)
		schedule_work(this_cpu_ptr(&mce_work));
		schedule_work(this_cpu_ptr(&mce_work));
}
}


DEFINE_PER_CPU(struct irq_work, mce_irq_work);
static DEFINE_PER_CPU(struct irq_work, mce_irq_work);


static void mce_irq_work_cb(struct irq_work *entry)
static void mce_irq_work_cb(struct irq_work *entry)
{
{
@@ -1012,7 +1012,7 @@ static void mce_clear_state(unsigned long *toclear)
 */
 */
#define	MCE_INFO_MAX	16
#define	MCE_INFO_MAX	16


struct mce_info {
static struct mce_info {
	atomic_t		inuse;
	atomic_t		inuse;
	struct task_struct	*t;
	struct task_struct	*t;
	__u64			paddr;
	__u64			paddr;