]> Git Repo - linux.git/commitdiff
mm/gup_benchmark: add a missing "w" to getopt string
authorJohn Hubbard <[email protected]>
Sat, 19 Oct 2019 03:19:50 +0000 (20:19 -0700)
committerLinus Torvalds <[email protected]>
Sat, 19 Oct 2019 10:32:32 +0000 (06:32 -0400)
Even though gup_benchmark.c has code to handle the -w command-line option,
the "w" is not part of the getopt string.  It looks as if it has been
missing the whole time.

On my machine, this leads naturally to the following predictable result:

  $ sudo ./gup_benchmark -w
  ./gup_benchmark: invalid option -- 'w'

...which is fixed with this commit.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: John Hubbard <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Cc: Keith Busch <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: "Aneesh Kumar K . V" <[email protected]>
Cc: Ira Weiny <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: kbuild test robot <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
tools/testing/selftests/vm/gup_benchmark.c

index c0534e298b5128d9bc2800abb5b59d7d5379f75e..cb3fc09645c482a526e2817250469611a5697010 100644 (file)
@@ -37,7 +37,7 @@ int main(int argc, char **argv)
        char *file = "/dev/zero";
        char *p;
 
-       while ((opt = getopt(argc, argv, "m:r:n:f:tTLUSH")) != -1) {
+       while ((opt = getopt(argc, argv, "m:r:n:f:tTLUwSH")) != -1) {
                switch (opt) {
                case 'm':
                        size = atoi(optarg) * MB;
This page took 0.058747 seconds and 4 git commands to generate.