add patch fix-bigalloc-cluster-free-when-hole-punching-under-load
[ext4-patch-queue.git] / annotate-implicit-fall-throughs
blob4df57b03aa10905178f1e58bfaf63cff262446e6
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>
16 ---
17  fs/ext4/hash.c | 2 ++
18  1 file changed, 2 insertions(+)
20 diff --git a/fs/ext4/hash.c b/fs/ext4/hash.c
21 index e22dcfab308b..46b24da33a28 100644
22 --- a/fs/ext4/hash.c
23 +++ b/fs/ext4/hash.c
24 @@ -231,6 +231,7 @@ int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo)
25                 break;
26         case DX_HASH_HALF_MD4_UNSIGNED:
27                 str2hashbuf = str2hashbuf_unsigned;
28 +               /* fall through */
29         case DX_HASH_HALF_MD4:
30                 p = name;
31                 while (len > 0) {
32 @@ -244,6 +245,7 @@ int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo)
33                 break;
34         case DX_HASH_TEA_UNSIGNED:
35                 str2hashbuf = str2hashbuf_unsigned;
36 +               /* fall through */
37         case DX_HASH_TEA:
38                 p = name;
39                 while (len > 0) {
40 -- 
41 2.19.2