Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

memblock tests: add command line help option

Add a help command line option to the help message. Add the help option
to the short and long options so it will be recognized as a valid
option.

Usage:
$ ./main -h

Or:
$ ./main --help

Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Rebecca Mckeever <remckee0@gmail.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/0f3b93a79de78c0da1ca90f74fe35e9a85c7cf93.1660451025.git.remckee0@gmail.com

authored by

Rebecca Mckeever and committed by
Mike Rapoport
c0f1bc4e b90cb105

+3 -1
+3 -1
tools/testing/memblock/tests/common.c
··· 14 14 static const char __maybe_unused *prefixes[PREFIXES_MAX]; 15 15 static int __maybe_unused nr_prefixes; 16 16 17 - static const char *short_opts = "mv"; 17 + static const char *short_opts = "hmv"; 18 18 static const struct option long_opts[] = { 19 + {"help", 0, NULL, 'h'}, 19 20 {"movable-node", 0, NULL, 'm'}, 20 21 {"verbose", 0, NULL, 'v'}, 21 22 {NULL, 0, NULL, 0} 22 23 }; 23 24 24 25 static const char * const help_opts[] = { 26 + "display this help message and exit", 25 27 "disallow allocations from regions marked as hotplugged\n\t\t\t" 26 28 "by simulating enabling the \"movable_node\" kernel\n\t\t\t" 27 29 "parameter",