From: Gustavo A. R. Silva Date: Fri, 5 Mar 2021 09:59:23 +0000 (-0600) Subject: ceph: fix fall-through warnings for Clang X-Git-Tag: v5.15~1172^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcaddb1d851bf69c94b3046227341d9684e276b1;p=platform%2Fkernel%2Flinux-starfive.git ceph: fix fall-through warnings for Clang In preparation to enable -Wimplicit-fallthrough for Clang, fix a couple of warnings by explicitly adding a break and a goto statements instead of just letting the code fall through to the next case. URL: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva Reviewed-by: Ilya Dryomov Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 83d9358..3e57565 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -631,10 +631,12 @@ static loff_t ceph_dir_llseek(struct file *file, loff_t offset, int whence) switch (whence) { case SEEK_CUR: offset += file->f_pos; + break; case SEEK_SET: break; case SEEK_END: retval = -EOPNOTSUPP; + goto out; default: goto out; }