Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gustavo A. R. Silva and committed by
Paul Moore
b2d99bcb b159e86b

+1
+1
security/selinux/hooks.c
··· 4036 4036 switch (id) { 4037 4037 case LOADING_MODULE: 4038 4038 rc = selinux_kernel_module_from_file(NULL); 4039 + break; 4039 4040 default: 4040 4041 break; 4041 4042 }