Commit 6f24c8d3 authored by John Hubbard's avatar John Hubbard Committed by Linus Torvalds
Browse files

mm/gup_benchmark: add a missing "w" to getopt string

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.


Signed-off-by: default avatarJohn Hubbard <>
Acked-by: default avatarKirill A. Shutemov <>
Cc: Keith Busch <>
Cc: Shuah Khan <>
Cc: Christoph Hellwig <>
Cc: "Aneesh Kumar K . V" <>
Cc: Ira Weiny <>
Cc: Christoph Hellwig <>
Cc: kbuild test robot <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent ce750f43
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment