From: Borislav Petkov Date: Fri, 30 Oct 2015 12:11:38 +0000 (+0100) Subject: x86/mce: Add a default case to the switch in __mcheck_cpu_ancient_init() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=dc34bdd2367fd31744ee3ba1de1b1cc0fa2ce193;p=openwrt%2Fstaging%2Fblogic.git 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 Cc: Borislav Petkov Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Tony Luck Link: http://lkml.kernel.org/r/1446207099-24948-3-git-send-email-bp@alien8.de Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 3d631c4abf91..c5b0d562dbf5 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;