diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-02 01:38:54 +0300 |
---|---|---|
committer | Casey Schaufler <casey.schaufler@intel.com> | 2018-09-19 02:28:54 +0300 |
commit | b1fed3edc82ae0d763d5c24769e4a0193da150c9 (patch) | |
tree | 2bed92bf641083cbfcbd8eaa1be3ad840bc1ec3b /security/smack/smack_lsm.c | |
parent | dcb569cf6ac99ca899b8109c128b6ae52477a015 (diff) | |
download | linux-b1fed3edc82ae0d763d5c24769e4a0193da150c9.tar.xz |
Smack: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Notice that in this particular case, I replaced "No break" with a
proper "Fall through" annotation, which is what GCC is expecting
to find.
Warning level 2 was used: -Wimplicit-fallthrough=2
Addresses-Coverity-ID: 115051 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security/smack/smack_lsm.c')
-rw-r--r-- | security/smack/smack_lsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 70d3066e69fe..2f5485cbf5ca 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c @@ -3474,7 +3474,7 @@ static void smack_d_instantiate(struct dentry *opt_dentry, struct inode *inode) */ final = &smack_known_star; /* - * No break. + * Fall through. * * If a smack value has been set we want to use it, * but since tmpfs isn't giving us the opportunity |