]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:32:26 +0000 (12:32 -0600)
committerPaul Moore <paul@paul-moore.com>
Mon, 23 Nov 2020 23:21:13 +0000 (18:21 -0500)
commit4f041c0f4443b3bda7e379714ce96416529dcb65
tree3c41e38e4c86f0e043abf93ef1936c9eea75c3c8
parentbf59a647b27f5d599cbfd51101d01018f2d1de95
selinux: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of letting the code fall
through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c