mm/process_vm_access.c: mark function as static
authorRashika Kheria <[email protected]>
Thu, 3 Apr 2014 21:48:04 +0000 (14:48 -0700)
committerLinus Torvalds <[email protected]>
Thu, 3 Apr 2014 23:21:02 +0000 (16:21 -0700)
Mark function as static in process_vm_access.c because it is not used
outside this file.

This eliminates the following warning in mm/process_vm_access.c:

  mm/process_vm_access.c:416:1: warning: no previous prototype for `compat_process_vm_rw' [-Wmissing-prototypes]

[[email protected]: remove unneeded asmlinkage - compat_process_vm_rw isn't referenced from asm]
Signed-off-by: Rashika Kheria <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/process_vm_access.c

index 3c5cf68566ec1375ff4d4deedc09db4c540e4b37..cb79065c19e55f054888430555b44199425dd72b 100644 (file)
@@ -412,7 +412,7 @@ SYSCALL_DEFINE6(process_vm_writev, pid_t, pid,
 
 #ifdef CONFIG_COMPAT
 
-asmlinkage ssize_t
+static ssize_t
 compat_process_vm_rw(compat_pid_t pid,
                     const struct compat_iovec __user *lvec,
                     unsigned long liovcnt,