diff options
author | Mathieu Malaterre <malat@debian.org> | 2019-01-14 23:17:24 +0300 |
---|---|---|
committer | James Morris <james.morris@microsoft.com> | 2019-01-23 06:47:47 +0300 |
commit | 0f949bcc7b4ff2ae4fea461e49034f41cdf0c103 (patch) | |
tree | 3d3db39c0c0f66313552457f9792ba1e53a23430 | |
parent | 5b73262a5c5bd23b8250af1e1c7361b11b5c4b91 (diff) | |
download | linux-0f949bcc7b4ff2ae4fea461e49034f41cdf0c103.tar.xz |
security: keys: 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 warning:
security/keys/process_keys.c:380:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
security/keys/process_keys.c:404:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
security/keys/process_keys.c:424:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: James Morris <james.morris@microsoft.com>
-rw-r--r-- | security/keys/process_keys.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c index 02c77e928f68..3308d738734c 100644 --- a/security/keys/process_keys.c +++ b/security/keys/process_keys.c @@ -379,6 +379,7 @@ key_ref_t search_my_process_keyrings(struct keyring_search_context *ctx) case -EAGAIN: /* no key */ if (ret) break; + /* fall through */ case -ENOKEY: /* negative key */ ret = key_ref; break; @@ -403,6 +404,7 @@ key_ref_t search_my_process_keyrings(struct keyring_search_context *ctx) case -EAGAIN: /* no key */ if (ret) break; + /* fall through */ case -ENOKEY: /* negative key */ ret = key_ref; break; @@ -423,6 +425,7 @@ key_ref_t search_my_process_keyrings(struct keyring_search_context *ctx) case -EAGAIN: /* no key */ if (ret) break; + /* fall through */ case -ENOKEY: /* negative key */ ret = key_ref; break; |