]> www.infradead.org Git - users/dwmw2/linux.git/commit
mm/gup_test: fix ioctl fail for compat task
authorHaibo Li <haibo.li@mediatek.com>
Fri, 26 May 2023 02:21:25 +0000 (10:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 14:02:10 +0000 (16:02 +0200)
commitbf8d33f446dc62e9ec0ddd700dd4df691f07a37c
tree7a28e20e066319284d2f57bbe80eaa4345c372e7
parent6cc39618903e523eaff9739f90a3c4247336134f
mm/gup_test: fix ioctl fail for compat task

commit 4f572f0074b8be8a70bd150d96a749aa94c8d85f upstream.

When tools/testing/selftests/mm/gup_test.c is compiled as 32bit, then run
on arm64 kernel, it reports "ioctl: Inappropriate ioctl for device".

Fix it by filling compat_ioctl in gup_test_fops

Link: https://lkml.kernel.org/r/20230526022125.175728-1-haibo.li@mediatek.com
Signed-off-by: Haibo Li <haibo.li@mediatek.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/gup_test.c