Re: [PATCH] x86/ptrace: Mark expected switch fall-through

2019-08-05 Thread Kees Cook
On Mon, Aug 05, 2019 at 02:56:54PM -0500, Gustavo A. R. Silva wrote: > Mark switch cases where we are expecting to fall through. > > Fix the following warning (Building: allnoconfig i386): > > arch/x86/kernel/ptrace.c:202:6: warning: this statement may fall through > [-Wimplicit-fallthrough=] >

[PATCH] x86/ptrace: Mark expected switch fall-through

2019-08-05 Thread Gustavo A. R. Silva
Mark switch cases where we are expecting to fall through. Fix the following warning (Building: allnoconfig i386): arch/x86/kernel/ptrace.c:202:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (unlikely(value == 0)) ^ arch/x86/kernel/ptrace.c:206:2: note: here d