]> git.baikalelectronics.ru Git - kernel.git/commit
kernel: debug: Fix unreachable code in gdb_serial_stub()
authorGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 12 Jul 2021 16:03:35 +0000 (11:03 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 12 Jul 2021 16:03:35 +0000 (11:03 -0500)
commit747e7e12540c023b28b5619cd4f52e15e1ba5381
tree0620256561182c23b82f599431226e5ad33db5cd
parentdee5e85289abd05696a6d86d3a4f27a452582d4b
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: kernel test robot <lkp@intel.com>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
kernel/debug/gdbstub.c