diff options
author | Keith Busch <[email protected]> | 2018-10-26 15:09:59 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-10-26 16:38:15 -0700 |
commit | 319e0bec1aecb36c5ac6d23812af487ff2c8f47f (patch) | |
tree | a44d1c34fb15be7991e5e50124246e70255a5ee6 | |
parent | 714a3a1ebafe6e23af55a5c694c308f4044a7e00 (diff) |
tools/testing/selftests/vm/gup_benchmark.c: fix 'write' flag usage
If the '-w' parameter was provided, the benchmark would exit due to a
mssing 'break'.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Keith Busch <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Dan Williams <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | tools/testing/selftests/vm/gup_benchmark.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/vm/gup_benchmark.c b/tools/testing/selftests/vm/gup_benchmark.c index c2f785ded9b9..b2082df8beb4 100644 --- a/tools/testing/selftests/vm/gup_benchmark.c +++ b/tools/testing/selftests/vm/gup_benchmark.c @@ -60,6 +60,7 @@ int main(int argc, char **argv) break; case 'w': write = 1; + break; default: return -1; } |