]> git.baikalelectronics.ru Git - kernel.git/commit
mm/process_vm_access: Add missing #include <linux/compat.h>
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 27 Oct 2020 18:22:46 +0000 (19:22 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 27 Oct 2020 19:41:29 +0000 (12:41 -0700)
commit9740f7182b93df72af0cf9d065d832c3c0295471
tree9d245454048c05cfe7802efdccdaa97a803c45fb
parentdd01b53d29c2415a4cef04645b4283663569638a
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: ad0e2bb497634591 ("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>
mm/process_vm_access.c