diff options
author | Mathieu Malaterre <malat@debian.org> | 2019-01-24 19:05:04 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-01-28 15:50:45 +0100 |
commit | f068ebd13bf3682875814f15a654e023af7a9c3b (patch) | |
tree | 2aed8d1491bb6bf665087df557c621d87102062a /fs/ext2 | |
parent | 032cdc39793fc814d78d7302c3e81048a76f3da5 (diff) | |
download | blackbird-op-linux-f068ebd13bf3682875814f15a654e023af7a9c3b.tar.gz blackbird-op-linux-f068ebd13bf3682875814f15a654e023af7a9c3b.zip |
ext2: Annotate implicit fall through in __ext2_truncate_blocks
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>
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index e4bb9386c045..e64029b1bd50 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -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) { |