Skip to content

Commit b1fed3e

Browse files
GustavoARSilvacschaufler
authored andcommitted
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>
1 parent dcb569c commit b1fed3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/smack/smack_lsm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3474,7 +3474,7 @@ static void smack_d_instantiate(struct dentry *opt_dentry, struct inode *inode)
34743474
*/
34753475
final = &smack_known_star;
34763476
/*
3477-
* No break.
3477+
* Fall through.
34783478
*
34793479
* If a smack value has been set we want to use it,
34803480
* but since tmpfs isn't giving us the opportunity

0 commit comments

Comments
 (0)