summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2020-10-27 21:22:46 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-10-27 22:41:29 +0300
commitf78f63da916e04e0b12a96010e2dd551954b1db4 (patch)
tree9d245454048c05cfe7802efdccdaa97a803c45fb /mm
parent4d09c1d952679411da2772f199643e08c46c31cd (diff)
downloadlinux-f78f63da916e04e0b12a96010e2dd551954b1db4.tar.xz
mm/process_vm_access: Add missing #include <linux/compat.h>
With e.g. m68k/defconfig: mm/process_vm_access.c: In function ‘process_vm_rw’: mm/process_vm_access.c:277:5: error: implicit declaration of function ‘in_compat_syscall’ [-Werror=implicit-function-declaration] 277 | in_compat_syscall()); | ^~~~~~~~~~~~~~~~~ Fix this by adding #include <linux/compat.h>. Reported-by: noreply@ellerman.id.au Reported-by: damian <damian.tometzki@familie-tometzki.de> Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org> Fixes: 38dc5079da7081e8 ("Fix compat regression in process_vm_rw()") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/process_vm_access.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/process_vm_access.c b/mm/process_vm_access.c
index 05676722d9cd..702250f148e7 100644
--- a/mm/process_vm_access.c
+++ b/mm/process_vm_access.c
@@ -5,6 +5,7 @@
* Copyright (C) 2010-2011 Christopher Yeoh <cyeoh@au1.ibm.com>, IBM Corp.
*/
+#include <linux/compat.h>
#include <linux/mm.h>
#include <linux/uio.h>
#include <linux/sched.h>