switch sparc_remap_file_pages() to SYSCALL_DEFINE
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 20 Mar 2018 03:28:55 +0000 (23:28 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 20 Mar 2018 16:04:00 +0000 (12:04 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/sparc/kernel/sys_sparc_32.c
arch/sparc/kernel/systbls.h
arch/sparc/kernel/systbls_32.S

index e7d326af76d6c49c6212c2579a554f8a64a5eb71..a927be4a51e798c9661c4a8b423b41234cc4f879 100644 (file)
@@ -116,9 +116,9 @@ SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,
        return sys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT);
 }
 
-long sparc_remap_file_pages(unsigned long start, unsigned long size,
-                          unsigned long prot, unsigned long pgoff,
-                          unsigned long flags)
+SYSCALL_DEFINE5(sparc_remap_file_pages, unsigned long, start, unsigned long, size,
+                          unsigned long, prot, unsigned long, pgoff,
+                          unsigned long, flags)
 {
        /* This works on an existing mmap so we don't need to validate
         * the range as that was done at the original mmap call.
index 3352dbac9d55ba6d2a50f618cffb9ca3186a91b8..9965273b588b23177ec7fb2bcf4cac4e39ce3e78 100644 (file)
@@ -23,7 +23,7 @@ asmlinkage void sparc_breakpoint(struct pt_regs *regs);
 asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
                          unsigned long prot, unsigned long flags,
                          unsigned long fd, unsigned long pgoff);
-long sparc_remap_file_pages(unsigned long start, unsigned long size,
+long sys_sparc_remap_file_pages(unsigned long start, unsigned long size,
                            unsigned long prot, unsigned long pgoff,
                            unsigned long flags);
 
index 731b25d572a148e5fdd18b3a19ef5f3268141ca3..12bee14b552cd4f1bf2769ec79e558b5eda799c5 100644 (file)
@@ -55,7 +55,7 @@ sys_call_table:
 /*175*/        .long sys_setsid, sys_fchdir, sys_fgetxattr, sys_listxattr, sys_llistxattr
 /*180*/        .long sys_flistxattr, sys_removexattr, sys_lremovexattr, sys_sigpending, sys_ni_syscall
 /*185*/        .long sys_setpgid, sys_fremovexattr, sys_tkill, sys_exit_group, sys_newuname
-/*190*/        .long sys_init_module, sys_personality, sparc_remap_file_pages, sys_epoll_create, sys_epoll_ctl
+/*190*/        .long sys_init_module, sys_personality, sys_sparc_remap_file_pages, sys_epoll_create, sys_epoll_ctl
 /*195*/        .long sys_epoll_wait, sys_ioprio_set, sys_getppid, sys_sparc_sigaction, sys_sgetmask
 /*200*/        .long sys_ssetmask, sys_sigsuspend, sys_newlstat, sys_uselib, sys_old_readdir
 /*205*/        .long sys_readahead, sys_socketcall, sys_syslog, sys_lookup_dcookie, sys_fadvise64