[LTP] [PATCH] [COMMITTED] syscalls/acct02: Decleare kconfigs inline

Cyril Hrubis chrubis@suse.cz
Fri Nov 20 14:08:10 CET 2020


So that it's picked up correctly by the docparser.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 testcases/kernel/syscalls/acct/acct02.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/testcases/kernel/syscalls/acct/acct02.c b/testcases/kernel/syscalls/acct/acct02.c
index fbcde0bcb..aee96e365 100644
--- a/testcases/kernel/syscalls/acct/acct02.c
+++ b/testcases/kernel/syscalls/acct/acct02.c
@@ -254,14 +254,12 @@ static void cleanup(void)
 	acct(NULL);
 }
 
-static const char *kconfigs[] = {
-	"CONFIG_BSD_PROCESS_ACCT",
-	NULL
-};
-
 static struct tst_test test = {
 	.test_all = run,
-	.needs_kconfigs = kconfigs,
+	.needs_kconfigs = (const char *[]) {
+		"CONFIG_BSD_PROCESS_ACCT",
+		NULL
+	},
 	.setup = setup,
 	.cleanup = cleanup,
 	.needs_tmpdir = 1,
-- 
2.26.2



More information about the ltp mailing list