aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fcntl.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-07-12 11:09:13 -0500
committerGustavo A. R. Silva <gustavoars@kernel.org>2021-07-12 11:09:13 -0500
commite8865537a68bb3032f449f5eb108fa8cd76ebb6d (patch)
treeb8df4793caad43c8faa6badb5d0d0083118fd763 /fs/fcntl.c
parentkernel: debug: Fix unreachable code in gdb_serial_stub() (diff)
downloadlinux-dev-e8865537a68bb3032f449f5eb108fa8cd76ebb6d.tar.xz
linux-dev-e8865537a68bb3032f449f5eb108fa8cd76ebb6d.zip
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>
Diffstat (limited to 'fs/fcntl.c')
-rw-r--r--fs/fcntl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fcntl.c b/fs/fcntl.c
index dfc72f15be7f..f946bec8f1f1 100644
--- a/fs/fcntl.c
+++ b/fs/fcntl.c
@@ -369,8 +369,8 @@ static long do_fcntl(int fd, unsigned int cmd, unsigned long arg,
/* 32-bit arches must use fcntl64() */
case F_OFD_SETLK:
case F_OFD_SETLKW:
-#endif
fallthrough;
+#endif
case F_SETLK:
case F_SETLKW:
if (copy_from_user(&flock, argp, sizeof(flock)))