summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/nolibc
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2023-03-25 18:45:11 +0300
committerPaul E. McKenney <paulmck@kernel.org>2023-03-28 02:26:10 +0300
commitc4560bd8066311c7cee5d7396e7fbd7cb3b7eabc (patch)
treed99c09a1fdeaedb37a302a73db5275412199e612 /tools/testing/selftests/nolibc
parent8c934d4822c77818d53f5f4c948c3ace6fda1505 (diff)
downloadlinux-c4560bd8066311c7cee5d7396e7fbd7cb3b7eabc.tar.xz
tools/nolibc: tests: constify test_names
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>
Diffstat (limited to 'tools/testing/selftests/nolibc')
-rw-r--r--tools/testing/selftests/nolibc/nolibc-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c
index 6a7c13f0cd61..fb2d4872fac9 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 },