Skip to content

Commit 5785675

Browse files
suryasaimadhuKAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent e740925 commit 5785675

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/kernel/apic/probe_32.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ void __init default_setup_apic_routing(void)
184184
def_to_bigsmp = 0;
185185
break;
186186
}
187-
/* If P4 and above fall through */
187+
/* P4 and above */
188+
/* fall through */
188189
case X86_VENDOR_HYGON:
189190
case X86_VENDOR_AMD:
190191
def_to_bigsmp = 1;

0 commit comments

Comments
 (0)