Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

unicore32: just use mmap_pgoff()...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 6dd9148b 91c2e0bc

+1 -9
+1 -9
arch/unicore32/kernel/sys.c
··· 28 28 #include <asm/syscalls.h> 29 29 #include <asm/cacheflush.h> 30 30 31 - /* Note: used by the compat code even in 64-bit Linux. */ 32 - SYSCALL_DEFINE6(mmap2, unsigned long, addr, unsigned long, len, 33 - unsigned long, prot, unsigned long, flags, 34 - unsigned long, fd, unsigned long, off_4k) 35 - { 36 - return sys_mmap_pgoff(addr, len, prot, flags, fd, 37 - off_4k); 38 - } 39 - 40 31 /* Provide the actual syscall number to call mapping. */ 41 32 #undef __SYSCALL 42 33 #define __SYSCALL(nr, call) [nr] = (call), 43 34 35 + #define sys_mmap2 sys_mmap_pgoff 44 36 /* Note that we don't include <linux/unistd.h> but <asm/unistd.h> */ 45 37 void *sys_call_table[__NR_syscalls] = { 46 38 [0 ... __NR_syscalls-1] = sys_ni_syscall,