Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
selftests/vm/gup_benchmark.c: match gup struct to kernel
Browse files Browse the repository at this point in the history
[ Upstream commit 91cd63d ]

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>
  • Loading branch information
AlisonSchofield authored and gregkh committed Mar 5, 2019
1 parent 7bba7af commit fc8176d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/testing/selftests/vm/gup_benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc8176d

Please sign in to comment.