Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1260110
| From | tip-bot for Borislav Petkov <tipbot@zytor.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [tip:ras/core] x86/mce: Add a default case to the switch in __mcheck_cpu_ancient_init() |
| Date | 2015-11-01 11:30 +0100 |
| Message-ID | <qpY3E-6YY-25@gated-at.bofh.it> (permalink) |
| References | <qpgP1-5HM-39@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Commit-ID: dc34bdd2367fd31744ee3ba1de1b1cc0fa2ce193 Gitweb: http://git.kernel.org/tip/dc34bdd2367fd31744ee3ba1de1b1cc0fa2ce193 Author: Borislav Petkov <bp@suse.de> AuthorDate: Fri, 30 Oct 2015 13:11:38 +0100 Committer: Ingo Molnar <mingo@kernel.org> CommitDate: Sun, 1 Nov 2015 11:26:14 +0100 x86/mce: Add a default case to the switch in __mcheck_cpu_ancient_init() Caught by building with W= which enable -Wswitch-default also. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Borislav Petkov <bp@alien8.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tony Luck <tony.luck@intel.com> Link: http://lkml.kernel.org/r/1446207099-24948-3-git-send-email-bp@alien8.de Signed-off-by: Ingo Molnar <mingo@kernel.org> --- arch/x86/kernel/cpu/mcheck/mce.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 3d631c4..c5b0d56 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c @@ -1586,6 +1586,8 @@ static int __mcheck_cpu_ancient_init(struct cpuinfo_x86 *c) winchip_mcheck_init(c); return 1; break; + default: + return 0; } return 0; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 0/3] tip-queue 2015-10-30 Borislav Petkov <bp@alien8.de> - 2015-10-30 13:20 +0100
[PATCH 3/3] x86/cpu: Add CLZERO detection Borislav Petkov <bp@alien8.de> - 2015-10-30 13:20 +0100
[tip:x86/cpu] x86/cpu: Add CLZERO detection tip-bot for Wan Zongshun <tipbot@zytor.com> - 2015-11-01 11:40 +0100
[PATCH 2/3] x86/mce: Add a default case to the switch in __mcheck_cpu_ancient_init() Borislav Petkov <bp@alien8.de> - 2015-10-30 13:20 +0100
[tip:ras/core] x86/mce: Add a default case to the switch in __mcheck_cpu_ancient_init() tip-bot for Borislav Petkov <tipbot@zytor.com> - 2015-11-01 11:30 +0100
csiph-web