selftests/vm/gup_benchmark.c: match gup struct to kernel
authorAlison Schofield <alison.schofield@intel.com>
Sat, 8 Dec 2018 02:06:45 +0000 (18:06 -0800)
committerShuah Khan <shuah@kernel.org>
Tue, 15 Jan 2019 20:48:24 +0000 (13:48 -0700)
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>
tools/testing/selftests/vm/gup_benchmark.c

index 880b96f..c0534e2 100644 (file)
@@ -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)