Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alison Schofield and committed by
Shuah Khan
91cd63d3 b686057e

+1
+1
tools/testing/selftests/vm/gup_benchmark.c
··· 25 25 __u64 size; 26 26 __u32 nr_pages_per_call; 27 27 __u32 flags; 28 + __u64 expansion[10]; /* For future use */ 28 29 }; 29 30 30 31 int main(int argc, char **argv)