summaryrefslogtreecommitdiffstats
path: root/arch/x86/lib/misc.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva2019-01-25 21:55:20 +0100
committerBorislav Petkov2019-01-26 10:46:42 +0100
commit89da3446294a8b811b28a4807e74e7ee7044d49f (patch)
tree849e48f678758ee25d2958b384e6c03fe6444b22 /arch/x86/lib/misc.c
parentx86/platform/UV: Replace kmalloc() and memset() with k[cz]alloc() calls (diff)
downloadkernel-qcow2-linux-89da3446294a8b811b28a4807e74e7ee7044d49f.tar.gz
kernel-qcow2-linux-89da3446294a8b811b28a4807e74e7ee7044d49f.tar.xz
kernel-qcow2-linux-89da3446294a8b811b28a4807e74e7ee7044d49f.zip
x86/insn-eval: Mark expected switch-case fall-through
In preparation to enable -Wimplicit-fallthrough by default, mark switch-case statements where fall-through is intentional, explicitly. Thus fix the following warning: arch/x86/lib/insn-eval.c: In function ‘resolve_default_seg’: arch/x86/lib/insn-eval.c:179:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (insn->addr_bytes == 2) ^ arch/x86/lib/insn-eval.c:182:2: note: here case -EDOM: ^~~~ Warning level 3 was used: -Wimplicit-fallthrough=3 This is part of the ongoing efforts to enable -Wimplicit-fallthrough by default. [ bp: Massage commit message. ] Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Kees Cook <keescook@chromium.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: x86-ml <x86@kernel.org> Link: https://lkml.kernel.org/r/20190125205520.GA9602@embeddedor
Diffstat (limited to 'arch/x86/lib/misc.c')
0 files changed, 0 insertions, 0 deletions