1 ext4: annotate implicit fall throughs
3 From: Mathieu Malaterre <malat@debian.org>
5 There is a plan to build the kernel with -Wimplicit-fallthrough and
6 these places in the code produced warnings (W=1). Fix them up.
8 This commit remove the following warnings:
10 fs/ext4/hash.c:233:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
11 fs/ext4/hash.c:246:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
13 Signed-off-by: Mathieu Malaterre <malat@debian.org>
14 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 Reviewed-by: Andreas Dilger <adilger@dilger.ca>
18 1 file changed, 2 insertions(+)
20 diff --git a/fs/ext4/hash.c b/fs/ext4/hash.c
21 index e22dcfab308b..46b24da33a28 100644
24 @@ -231,6 +231,7 @@ int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo)
26 case DX_HASH_HALF_MD4_UNSIGNED:
27 str2hashbuf = str2hashbuf_unsigned;
29 case DX_HASH_HALF_MD4:
32 @@ -244,6 +245,7 @@ int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo)
34 case DX_HASH_TEA_UNSIGNED:
35 str2hashbuf = str2hashbuf_unsigned;