summaryrefslogtreecommitdiff
path: root/kernel/capability.c
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2019-01-14 23:28:35 +0300
committerJames Morris <james.morris@microsoft.com>2019-01-23 06:42:27 +0300
commit39e83beb9109c662c0e1f79c674f96f94b452786 (patch)
treed3b4abf41a922269fc1187e0681b6efecfdb578b /kernel/capability.c
parent6c2976b06f6813768d3e61aeeb2b3fb04597a25f (diff)
downloadlinux-39e83beb9109c662c0e1f79c674f96f94b452786.tar.xz
capabilities:: annotate implicit fall through
There is a plan to build the kernel with -Wimplicit-fallthrough and this place in the code produced a warning (W=1). In this particular case change put the fall through comment on a single line so as to match the regular expression expected by GCC. This commit remove the following warning: kernel/capability.c:95:3: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre <malat@debian.org> Signed-off-by: James Morris <james.morris@microsoft.com>
Diffstat (limited to 'kernel/capability.c')
-rw-r--r--kernel/capability.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/capability.c b/kernel/capability.c
index 7718d7dcadc7..cfbbcb68e11e 100644
--- a/kernel/capability.c
+++ b/kernel/capability.c
@@ -93,9 +93,7 @@ static int cap_validate_magic(cap_user_header_t header, unsigned *tocopy)
break;
case _LINUX_CAPABILITY_VERSION_2:
warn_deprecated_v2();
- /*
- * fall through - v3 is otherwise equivalent to v2.
- */
+ /* fall through - v3 is otherwise equivalent to v2. */
case _LINUX_CAPABILITY_VERSION_3:
*tocopy = _LINUX_CAPABILITY_U32S_3;
break;