mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
selftests: clone3: clone3: add case CLONE3_ARGS_NO_TEST
Building selftests/clone3 with clang warns about enumeration not handled
in switch case:
clone3.c:54:10: warning: enumeration value 'CLONE3_ARGS_NO_TEST' not handled in switch [-Wswitch]
switch (test_mode) {
^
Add the missing switch case with a comment.
Fixes: 17a810699c
("selftests: add tests for clone3()")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
7ace3e9ae0
commit
a531b0c23c
1 changed files with 6 additions and 0 deletions
|
@ -52,6 +52,12 @@ static int call_clone3(uint64_t flags, size_t size, enum test_mode test_mode)
|
|||
size = sizeof(struct __clone_args);
|
||||
|
||||
switch (test_mode) {
|
||||
case CLONE3_ARGS_NO_TEST:
|
||||
/*
|
||||
* Uses default 'flags' and 'SIGCHLD'
|
||||
* assignment.
|
||||
*/
|
||||
break;
|
||||
case CLONE3_ARGS_ALL_0:
|
||||
args.flags = 0;
|
||||
args.exit_signal = 0;
|
||||
|
|
Loading…
Reference in a new issue