]> Git Repo - linux.git/commitdiff
x86/mce: Add a default case to the switch in __mcheck_cpu_ancient_init()
authorBorislav Petkov <[email protected]>
Fri, 30 Oct 2015 12:11:38 +0000 (13:11 +0100)
committerIngo Molnar <[email protected]>
Sun, 1 Nov 2015 10:26:14 +0000 (11:26 +0100)
Caught by building with W= which enable -Wswitch-default also.

Signed-off-by: Borislav Petkov <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Tony Luck <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/cpu/mcheck/mce.c

index 3d631c4abf9123c5b74df410209efe077cb0f7ff..c5b0d562dbf55064685c78b5d0fa6280748086d1 100644 (file)
@@ -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;
This page took 0.061959 seconds and 4 git commands to generate.