Commit 034f891a authored by Mathieu Malaterre's avatar Mathieu Malaterre Committed by Theodore Ts'o

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: default avatarMathieu Malaterre <malat@debian.org>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Reviewed-by: default avatarAndreas Dilger <adilger@dilger.ca>
parent c9e716eb
...@@ -231,6 +231,7 @@ int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) ...@@ -231,6 +231,7 @@ int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo)
break; break;
case DX_HASH_HALF_MD4_UNSIGNED: case DX_HASH_HALF_MD4_UNSIGNED:
str2hashbuf = str2hashbuf_unsigned; str2hashbuf = str2hashbuf_unsigned;
/* fall through */
case DX_HASH_HALF_MD4: case DX_HASH_HALF_MD4:
p = name; p = name;
while (len > 0) { while (len > 0) {
...@@ -244,6 +245,7 @@ int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) ...@@ -244,6 +245,7 @@ int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo)
break; break;
case DX_HASH_TEA_UNSIGNED: case DX_HASH_TEA_UNSIGNED:
str2hashbuf = str2hashbuf_unsigned; str2hashbuf = str2hashbuf_unsigned;
/* fall through */
case DX_HASH_TEA: case DX_HASH_TEA:
p = name; p = name;
while (len > 0) { while (len > 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment