diff options
author | Petr Vorel <pvorel@suse.cz> | 2020-12-16 21:54:58 +0100 |
---|---|---|
committer | Petr Vorel <pvorel@suse.cz> | 2020-12-16 22:08:42 +0100 |
commit | 21f1ff2b39a5f9d2f756235618109baffbdc6053 (patch) | |
tree | 1f5c962f955d2499a20cfd07f88751e5cb2c68aa | |
parent | 62dc6f097b64bb6a6f1ceabf0b21d876d2a54c5a (diff) | |
download | ltp-21f1ff2b39a5f9d2f756235618109baffbdc6053.tar.gz |
mem/overcommit_memory: Use anonymous .options
to fix docparse output.
Suggested-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
-rw-r--r-- | testcases/kernel/mem/tunable/overcommit_memory.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/testcases/kernel/mem/tunable/overcommit_memory.c b/testcases/kernel/mem/tunable/overcommit_memory.c index 705cadb3b..ac875ab18 100644 --- a/testcases/kernel/mem/tunable/overcommit_memory.c +++ b/testcases/kernel/mem/tunable/overcommit_memory.c @@ -70,11 +70,6 @@ #define EXPECT_FAIL 1 static char *R_opt; -static struct tst_option options[] = { - {"R:", &R_opt, " -R n Percentage of overcommitting memory"}, - {NULL, NULL, NULL} -}; - static long old_overcommit_memory = -1; static long old_overcommit_ratio = -1; static long overcommit_ratio; @@ -269,7 +264,10 @@ static void calculate_total_batch_size(void) static struct tst_test test = { .needs_root = 1, - .options = options, + .options = (struct tst_option[]) { + {"R:", &R_opt, " -R n Percentage of overcommitting memory"}, + {} + }, .setup = setup, .cleanup = cleanup, .test_all = overcommit_memory_test, |