Skip to content

Commit

Permalink
mm/process_vm_access: Add missing #include <linux/compat.h>
Browse files Browse the repository at this point in the history
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: [email protected]
Reported-by: damian <[email protected]>
Reported-by: Naresh Kamboju <[email protected]>
Fixes: 38dc507 ("Fix compat regression in process_vm_rw()")
Signed-off-by: Geert Uytterhoeven <[email protected]>
Acked-by: Jens Axboe <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
geertu authored and torvalds committed Oct 27, 2020
1 parent 4d09c1d commit f78f63d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/process_vm_access.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Copyright (C) 2010-2011 Christopher Yeoh <[email protected]>, IBM Corp.
*/

#include <linux/compat.h>
#include <linux/mm.h>
#include <linux/uio.h>
#include <linux/sched.h>
Expand Down

0 comments on commit f78f63d

Please sign in to comment.