]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/ptrace: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 5 Aug 2019 19:56:54 +0000 (14:56 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 7 Aug 2019 13:12:01 +0000 (15:12 +0200)
commit4ab9ab656a6cea5257bfa31f00c922d68f7a5c2f
tree1a56807b22f7b5c8773d41dd5dedfa6e00d84b85
parent33920f1ec5bf47c5c0a1d2113989bdd9dfb3fae9
x86/ptrace: Mark expected switch fall-through

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
  default:
  ^~~~~~~

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/20190805195654.GA17831@embeddedor
arch/x86/kernel/ptrace.c