diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-08-05 15:17:12 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-08-07 15:12:01 +0200 |
commit | 7468a4eae541ce5aff65595aa502aa0a4def6615 (patch) | |
tree | 1da170e790f0da98cd7e2bf72b210d7cc1edb843 /arch/x86/kernel/cpu/mtrr | |
parent | 4ab9ab656a6cea5257bfa31f00c922d68f7a5c2f (diff) | |
download | linux-7468a4eae541ce5aff65595aa502aa0a4def6615.tar.bz2 |
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 <gustavo@embeddedor.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/20190805201712.GA19927@embeddedor
Diffstat (limited to 'arch/x86/kernel/cpu/mtrr')
-rw-r--r-- | arch/x86/kernel/cpu/mtrr/cyrix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/mtrr/cyrix.c b/arch/x86/kernel/cpu/mtrr/cyrix.c index 4296c702a3f7..72182809b333 100644 --- a/arch/x86/kernel/cpu/mtrr/cyrix.c +++ b/arch/x86/kernel/cpu/mtrr/cyrix.c @@ -98,6 +98,7 @@ cyrix_get_free_region(unsigned long base, unsigned long size, int replace_reg) case 7: if (size < 0x40) break; + /* Else, fall through */ case 6: case 5: case 4: |