]> git.baikalelectronics.ru Git - kernel.git/commit
Smack: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 1 Aug 2018 22:38:54 +0000 (17:38 -0500)
committerCasey Schaufler <casey.schaufler@intel.com>
Tue, 18 Sep 2018 23:28:54 +0000 (16:28 -0700)
commite67d14cd56844086935f40d5b8e98f1c468589b1
tree2bed92bf641083cbfcbd8eaa1be3ad840bc1ec3b
parentaa11ddbc3c93709e17192013b9516f356707f676
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>
security/smack/smack_lsm.c