Skip to content

Commit 7468a4e

Browse files
GustavoARSilvaKAGA-KOKO
authored andcommitted
x86: mtrr: cyrix: Mark expected switch fall-through
Mark switch cases where we are expecting to fall through. Fix the following warning (Building: i386_defconfig i386): arch/x86/kernel/cpu/mtrr/cyrix.c:99:6: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Kees Cook <[email protected]> Link: https://lkml.kernel.org/r/20190805201712.GA19927@embeddedor
1 parent 4ab9ab6 commit 7468a4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kernel/cpu/mtrr/cyrix.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ cyrix_get_free_region(unsigned long base, unsigned long size, int replace_reg)
9898
case 7:
9999
if (size < 0x40)
100100
break;
101+
/* Else, fall through */
101102
case 6:
102103
case 5:
103104
case 4:

0 commit comments

Comments
 (0)