提交 b2d99bcb 编写于 作者: G Gustavo A. R. Silva 提交者: Paul Moore

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/115Signed-off-by: NGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: NPaul Moore <paul@paul-moore.com>
上级 b159e86b
...@@ -4036,6 +4036,7 @@ static int selinux_kernel_load_data(enum kernel_load_data_id id, bool contents) ...@@ -4036,6 +4036,7 @@ static int selinux_kernel_load_data(enum kernel_load_data_id id, bool contents)
switch (id) { switch (id) {
case LOADING_MODULE: case LOADING_MODULE:
rc = selinux_kernel_module_from_file(NULL); rc = selinux_kernel_module_from_file(NULL);
break;
default: default:
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册