diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2021-01-13 00:49:33 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-01-13 03:12:54 +0100 |
commit | eb351d75ce1e75b4f793d609efac08426ca50acd (patch) | |
tree | 459ce9eb95eb3ecdbf5ad354b2e1bfbb6b039260 | |
parent | mm,hwpoison: fix printing of page flags (diff) | |
download | linux-eb351d75ce1e75b4f793d609efac08426ca50acd.tar.xz linux-eb351d75ce1e75b4f793d609efac08426ca50acd.zip |
mm/process_vm_access.c: include compat.h
Fix the build error:
mm/process_vm_access.c:277:5: error: implicit declaration of function 'in_compat_syscall'; did you mean 'in_ia32_syscall'? [-Werror=implicit-function-declaration]
Fixes: 38dc5079da7081e "Fix compat regression in process_vm_rw()"
Reported-by: syzbot+5b0d0de84d6c65b8dd2b@syzkaller.appspotmail.com
Cc: Kyle Huey <me@kylehuey.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/process_vm_access.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/process_vm_access.c b/mm/process_vm_access.c index 4bcc11958089..f5fee9cf90f8 100644 --- a/mm/process_vm_access.c +++ b/mm/process_vm_access.c @@ -9,6 +9,7 @@ #include <linux/mm.h> #include <linux/uio.h> #include <linux/sched.h> +#include <linux/compat.h> #include <linux/sched/mm.h> #include <linux/highmem.h> #include <linux/ptrace.h> |