summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlison Schofield <alison.schofield@intel.com>2018-12-07 18:06:45 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-05 17:58:48 +0100
commitfc8176da28b51794f44cf95c2e5a7604ad4d9b8e (patch)
treefd1bfb78ab035ea2121d071eb62f0a2811e6f6c3 /tools
parent7bba7aff51ea3709d0a548d9e9eb69953d787400 (diff)
selftests/vm/gup_benchmark.c: match gup struct to kernel
[ Upstream commit 91cd63d320f84dcbf21d4327f31f7e1f85adebd0 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/vm/gup_benchmark.c1
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 36df55132036..9601bc24454d 100644
--- a/tools/testing/selftests/vm/gup_benchmark.c
+++ b/tools/testing/selftests/vm/gup_benchmark.c
@@ -22,6 +22,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)