summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2019-08-11 17:40:36 +0200
committerThomas Gleixner <tglx@linutronix.de>2019-08-12 20:35:04 +0200
commit5785675dfef4f9edcee66edef7b3af21618d2707 (patch)
tree012fee871f04356e5f3a9d07021aded1de277608 /arch
parente7409258845a0f64967f8377e99294d438137537 (diff)
downloadlinux-5785675dfef4f9edcee66edef7b3af21618d2707.tar.bz2
x86/apic/32: Fix yet another implicit fallthrough warning
Fix arch/x86/kernel/apic/probe_32.c: In function ‘default_setup_apic_routing’: arch/x86/kernel/apic/probe_32.c:146:7: warning: this statement may fall through [-Wimplicit-fallthrough=] if (!APIC_XAPIC(version)) { ^ arch/x86/kernel/apic/probe_32.c:151:3: note: here case X86_VENDOR_HYGON: ^~~~ for 32-bit builds. Signed-off-by: Borislav Petkov <bp@suse.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20190811154036.29805-1-bp@alien8.de
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/apic/probe_32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/probe_32.c b/arch/x86/kernel/apic/probe_32.c
index 1492799b8f43..ee2d91e382f1 100644
--- a/arch/x86/kernel/apic/probe_32.c
+++ b/arch/x86/kernel/apic/probe_32.c
@@ -184,7 +184,8 @@ void __init default_setup_apic_routing(void)
def_to_bigsmp = 0;
break;
}
- /* If P4 and above fall through */
+ /* P4 and above */
+ /* fall through */
case X86_VENDOR_HYGON:
case X86_VENDOR_AMD:
def_to_bigsmp = 1;