diff options
author | Alison Schofield <alison.schofield@intel.com> | 2018-12-07 18:06:45 -0800 |
---|---|---|
committer | Shuah Khan <shuah@kernel.org> | 2019-01-15 13:48:24 -0700 |
commit | 91cd63d320f84dcbf21d4327f31f7e1f85adebd0 (patch) | |
tree | fa8b31361d7722ea263a76958763cd0f7e80bb46 | |
parent | b686057e95075b51939ade6b8c9b478a1011342a (diff) | |
download | linux-91cd63d320f84dcbf21d4327f31f7e1f85adebd0.tar.gz linux-91cd63d320f84dcbf21d4327f31f7e1f85adebd0.tar.bz2 linux-91cd63d320f84dcbf21d4327f31f7e1f85adebd0.zip |
selftests/vm/gup_benchmark.c: match gup struct to kernel
An expansion field was added to the kernel copy of this structure for
future use. See mm/gup_benchmark.c.
Add the same expansion field here, so that the IOCTL command decodes
correctly. Otherwise, it fails with EINVAL.
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Shuah Khan <shuah@kernel.org>
-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 880b96fc80d4..c0534e298b51 100644 --- a/tools/testing/selftests/vm/gup_benchmark.c +++ b/tools/testing/selftests/vm/gup_benchmark.c @@ -25,6 +25,7 @@ struct gup_benchmark { __u64 size; __u32 nr_pages_per_call; __u32 flags; + __u64 expansion[10]; /* For future use */ }; int main(int argc, char **argv) |