tools/nolibc: tests: constify test_names
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 25 Mar 2023 15:45:11 +0000 (16:45 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Mar 2023 23:26:10 +0000 (16:26 -0700)
Nothing ever modifies this structure.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/nolibc/nolibc-test.c

index 6a7c13f0cd618417ea95bb20f054f0d1cc31f9fb..fb2d4872fac9e198b4d6f720fe27228094627310 100644 (file)
@@ -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   },