Commit 39e83beb authored by Mathieu Malaterre's avatar Mathieu Malaterre Committed by James Morris

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: default avatarMathieu Malaterre <malat@debian.org>
Signed-off-by: default avatarJames Morris <james.morris@microsoft.com>
parent 6c2976b0
...@@ -93,9 +93,7 @@ static int cap_validate_magic(cap_user_header_t header, unsigned *tocopy) ...@@ -93,9 +93,7 @@ static int cap_validate_magic(cap_user_header_t header, unsigned *tocopy)
break; break;
case _LINUX_CAPABILITY_VERSION_2: case _LINUX_CAPABILITY_VERSION_2:
warn_deprecated_v2(); warn_deprecated_v2();
/* /* fall through - v3 is otherwise equivalent to v2. */
* fall through - v3 is otherwise equivalent to v2.
*/
case _LINUX_CAPABILITY_VERSION_3: case _LINUX_CAPABILITY_VERSION_3:
*tocopy = _LINUX_CAPABILITY_U32S_3; *tocopy = _LINUX_CAPABILITY_U32S_3;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment