]> git.baikalelectronics.ru Git - kernel.git/commit
fcntl: Fix unreachable code in do_fcntl()
authorGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 12 Jul 2021 16:09:13 +0000 (11:09 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 12 Jul 2021 16:09:13 +0000 (11:09 -0500)
commit2e76a739f90b862be4dbb7f68cfce1e54fb50857
treeb8df4793caad43c8faa6badb5d0d0083118fd763
parent747e7e12540c023b28b5619cd4f52e15e1ba5381
fcntl: Fix unreachable code in do_fcntl()

Fix the following warning:

fs/fcntl.c:373:3: 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>
fs/fcntl.c