diff options
author | Mathieu Malaterre <malat@debian.org> | 2019-02-21 10:49:53 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-02-21 10:49:53 -0500 |
commit | 034f891a844bba3665c2313bcbf61f335dd422e8 (patch) | |
tree | 696abce3dfae0aadcbbde7e3be42e8be0c8c936c | |
parent | c9e716eb9b3455a83ed7c5f5a81256a3da779a95 (diff) |
ext4: annotate implicit fall throughs
There is a plan to build the kernel with -Wimplicit-fallthrough and
these places in the code produced warnings (W=1). Fix them up.
This commit remove the following warnings:
fs/ext4/hash.c:233:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
fs/ext4/hash.c:246:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
-rw-r--r-- | fs/ext4/hash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/hash.c b/fs/ext4/hash.c index e22dcfab308b..46b24da33a28 100644 --- a/fs/ext4/hash.c +++ b/fs/ext4/hash.c | |||
@@ -231,6 +231,7 @@ int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) | |||
231 | break; | 231 | break; |
232 | case DX_HASH_HALF_MD4_UNSIGNED: | 232 | case DX_HASH_HALF_MD4_UNSIGNED: |
233 | str2hashbuf = str2hashbuf_unsigned; | 233 | str2hashbuf = str2hashbuf_unsigned; |
234 | /* fall through */ | ||
234 | case DX_HASH_HALF_MD4: | 235 | case DX_HASH_HALF_MD4: |
235 | p = name; | 236 | p = name; |
236 | while (len > 0) { | 237 | while (len > 0) { |
@@ -244,6 +245,7 @@ int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) | |||
244 | break; | 245 | break; |
245 | case DX_HASH_TEA_UNSIGNED: | 246 | case DX_HASH_TEA_UNSIGNED: |
246 | str2hashbuf = str2hashbuf_unsigned; | 247 | str2hashbuf = str2hashbuf_unsigned; |
248 | /* fall through */ | ||
247 | case DX_HASH_TEA: | 249 | case DX_HASH_TEA: |
248 | p = name; | 250 | p = name; |
249 | while (len > 0) { | 251 | while (len > 0) { |