From: Gustavo A. R. Silva Date: Fri, 20 Nov 2020 18:32:26 +0000 (-0600) Subject: selinux: Fix fall-through warnings for Clang X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b2d99bcb27225fe420a8923b21861aef2bb43d9b;p=linux.git 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 Signed-off-by: Paul Moore --- diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index ca5c5623b46d5..943c2693cec7d 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -4036,6 +4036,7 @@ static int selinux_kernel_load_data(enum kernel_load_data_id id, bool contents) switch (id) { case LOADING_MODULE: rc = selinux_kernel_module_from_file(NULL); + break; default: break; }