ext2: Annotate implicit fall through in __ext2_truncate_blocks
authorMathieu Malaterre <malat@debian.org>
Thu, 24 Jan 2019 18:05:04 +0000 (19:05 +0100)
committerJan Kara <jack@suse.cz>
Mon, 28 Jan 2019 14:50:45 +0000 (15:50 +0100)
There is a plan to build the kernel with -Wimplicit-fallthrough and
these places in the code produced warnings (W=1).

This commit removes the following warnings:

  fs/ext2/inode.c:1237:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
  fs/ext2/inode.c:1244:7: warning: this statement may fall through [-Wimplicit-fallthrough=]

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/inode.c

index e4bb9386c04551e1af155154213285c6da688531..e64029b1bd50838f27b795942145383a81a6ce70 100644 (file)
@@ -1239,6 +1239,7 @@ do_indirects:
                                mark_inode_dirty(inode);
                                ext2_free_branches(inode, &nr, &nr+1, 1);
                        }
+                       /* fall through */
                case EXT2_IND_BLOCK:
                        nr = i_data[EXT2_DIND_BLOCK];
                        if (nr) {
@@ -1246,6 +1247,7 @@ do_indirects:
                                mark_inode_dirty(inode);
                                ext2_free_branches(inode, &nr, &nr+1, 2);
                        }
+                       /* fall through */
                case EXT2_DIND_BLOCK:
                        nr = i_data[EXT2_TIND_BLOCK];
                        if (nr) {