From: Thomas Weißschuh Date: Sat, 25 Mar 2023 15:45:11 +0000 (+0100) Subject: tools/nolibc: tests: constify test_names X-Git-Tag: v6.4-rc1~201^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4560bd8066311c7cee5d7396e7fbd7cb3b7eabc;p=thirdparty%2Fkernel%2Flinux.git tools/nolibc: tests: constify test_names Nothing ever modifies this structure. Signed-off-by: Thomas Weißschuh Signed-off-by: Willy Tarreau Signed-off-by: Paul E. McKenney --- diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c index 6a7c13f0cd618..fb2d4872fac9e 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -717,7 +717,7 @@ int prepare(void) } /* This is the definition of known test names, with their functions */ -static struct test test_names[] = { +static const struct test test_names[] = { /* add new tests here */ { .name = "syscall", .func = run_syscall }, { .name = "stdlib", .func = run_stdlib },