* [PATCH] selftests/vm/gup_benchmark.c: match gup struct to kernel
@ 2018-12-08 2:06 Alison Schofield
2018-12-10 13:30 ` Kirill A. Shutemov
0 siblings, 1 reply; 2+ messages in thread
From: Alison Schofield @ 2018-12-08 2:06 UTC (permalink / raw)
To: shuah, linux-kselftest
Cc: keith.busch, Kirill Shutemov, Dave Hansen, linux-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>
---
tools/testing/selftests/vm/gup_benchmark.c | 1 +
1 file changed, 1 insertion(+)
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)
--
2.14.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] selftests/vm/gup_benchmark.c: match gup struct to kernel
2018-12-08 2:06 [PATCH] selftests/vm/gup_benchmark.c: match gup struct to kernel Alison Schofield
@ 2018-12-10 13:30 ` Kirill A. Shutemov
0 siblings, 0 replies; 2+ messages in thread
From: Kirill A. Shutemov @ 2018-12-10 13:30 UTC (permalink / raw)
To: Alison Schofield
Cc: shuah, linux-kselftest, keith.busch, Kirill Shutemov,
Dave Hansen, linux-kernel
On Fri, Dec 07, 2018 at 06:06:45PM -0800, Alison Schofield wrote:
> 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>
--
Kirill A. Shutemov
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-10 13:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-08 2:06 [PATCH] selftests/vm/gup_benchmark.c: match gup struct to kernel Alison Schofield
2018-12-10 13:30 ` Kirill A. Shutemov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®