Commit 1adee589 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva

kernel: debug: Fix unreachable code in gdb_serial_stub()

Fix the following warning:

kernel/debug/gdbstub.c:1049:4: warning: fallthrough annotation in unreachable code [-Wimplicit-fallthrough]
                           fallthrough;
                           ^
   include/linux/compiler_attributes.h:210:41: note: expanded from macro 'fallthrough'
   # define fallthrough                    __attribute__((__fallthrough__)

by placing the fallthrough; statement inside ifdeffery.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
parent 81eb1d17
...@@ -1045,8 +1045,8 @@ int gdb_serial_stub(struct kgdb_state *ks) ...@@ -1045,8 +1045,8 @@ int gdb_serial_stub(struct kgdb_state *ks)
gdb_cmd_detachkill(ks); gdb_cmd_detachkill(ks);
return DBG_PASS_EVENT; return DBG_PASS_EVENT;
} }
#endif
fallthrough; fallthrough;
#endif
case 'C': /* Exception passing */ case 'C': /* Exception passing */
tmp = gdb_cmd_exception_pass(ks); tmp = gdb_cmd_exception_pass(ks);
if (tmp > 0) if (tmp > 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment