Skip to contentSkip to conversation

+ hwpoison-remove-unused-global-variable-in-do_machine_check.patch added to -mm tree

PATCH [email protected] 1 participant 1 message May 20, 2014 x86

lore
Share & tools
lore
#0 lore raw

Subject: + hwpoison-remove-unused-global-variable-in-do_machine_check.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 20 May 2014 15:13:14 -0700

The patch titled
Subject: hwpoison: remove unused global variable in do_machine_check()
has been added to the -mm tree. Its filename is
hwpoison-remove-unused-global-variable-in-do_machine_check.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/hwpoison-remove-unused-global-variable-in-do_machine_check.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/hwpoison-remove-unused-global-variable-in-do_machine_check.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Chen Yucong <[email protected]>
Subject: hwpoison: remove unused global variable in do_machine_check()

Remove an unused global variable mce_entry and relative operations in do_machine_check().

Cc Naoya Horiguchi <[email protected]>
Cc Wu Fengguang <[email protected]>
Cc Andi Kleen <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc "H. Peter Anvin" <[email protected]>

---

 arch/x86/include/asm/mce.h       |    2 --
 arch/x86/kernel/cpu/mcheck/mce.c |    5 -----
 2 files changed, 7 deletions(-)
arch/x86/include/asm/mce.h renamed from arch/x86/include/asm/mce.h~hwpoison-remove-unused-global-variable-in-do_machine_check +0 -2
diff -puN arch/x86/include/asm/mce.h~hwpoison-remove-unused-global-variable-in-do_machine_check arch/x86/include/asm/mce.h
@@ -176,8 +176,6 @@ int mce_available(struct cpuinfo_x86 *c)
 DECLARE_PER_CPU(unsigned, mce_exception_count);
 DECLARE_PER_CPU(unsigned, mce_poll_count);
 
-extern atomic_t mce_entry;
-
 typedef DECLARE_BITMAP(mce_banks_t, MAX_NR_BANKS);
 DECLARE_PER_CPU(mce_banks_t, mce_poll_banks);
 
arch/x86/kernel/cpu/mcheck/mce.c renamed from arch/x86/kernel/cpu/mcheck/mce.c~hwpoison-remove-unused-global-variable-in-do_machine_check +0 -3
diff -puN arch/x86/kernel/cpu/mcheck/mce.c~hwpoison-remove-unused-global-variable-in-do_machine_check arch/x86/kernel/cpu/mcheck/mce.c
@@ -60,8 +60,6 @@ static DEFINE_MUTEX(mce_chrdev_read_mute
 
 #define SPINUNIT 100	/* 100ns */
 
-atomic_t mce_entry;
-
 DEFINE_PER_CPU(unsigned, mce_exception_count);
 
 struct mce_bank *mce_banks __read_mostly;
@@ -1041,8 +1039,6 @@ void do_machine_check(struct pt_regs *re
 	DECLARE_BITMAP(valid_banks, MAX_NR_BANKS);
 	char *msg = "Unknown";
 
-	atomic_inc(&mce_entry);