]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
selftests: clone3: clone3: add case CLONE3_ARGS_NO_TEST
authorAnders Roxell <anders.roxell@linaro.org>
Wed, 3 Nov 2021 20:13:50 +0000 (21:13 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 09:59:30 +0000 (10:59 +0100)
commite57f77237aaced8281a3531ba7f6bd26d54d865e
treef76eb0d9f4e0fc1b7904a10225cdc3ac4b02b3cb
parent4681487c788f04cdf5c5fdca3174def24cb0ccbf
selftests: clone3: clone3: add case CLONE3_ARGS_NO_TEST

BugLink: https://bugs.launchpad.net/bugs/1959376
[ Upstream commit a531b0c23c0fc68ad758cc31a74cf612a4dafeb0 ]

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: 17a810699c18 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
tools/testing/selftests/clone3/clone3.c