diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-09-21 00:32:48 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-12-21 23:30:44 +0300 |
commit | 577ade59b99e3473b2f1342b1eb9e496eed39b68 (patch) | |
tree | c7caad9da863acb63602f38ab0c218f7c299c590 /arch/um/kernel/syscall.c | |
parent | 8f5c84f3678e72bbba96b0755135adae66d35c0e (diff) | |
download | linux-577ade59b99e3473b2f1342b1eb9e496eed39b68.tar.xz |
um: move amd64 variant of mmap(2) to arch/x86/um/syscalls_64.c
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/kernel/syscall.c')
-rw-r--r-- | arch/um/kernel/syscall.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/um/kernel/syscall.c b/arch/um/kernel/syscall.c deleted file mode 100644 index eed54c53fbbb..000000000000 --- a/arch/um/kernel/syscall.c +++ /dev/null @@ -1,28 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* - * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) - */ - -#include <linux/file.h> -#include <linux/fs.h> -#include <linux/mm.h> -#include <linux/sched.h> -#include <linux/utsname.h> -#include <linux/syscalls.h> -#include <asm/current.h> -#include <asm/mman.h> -#include <linux/uaccess.h> -#include <asm/unistd.h> - -long old_mmap(unsigned long addr, unsigned long len, - unsigned long prot, unsigned long flags, - unsigned long fd, unsigned long offset) -{ - long err = -EINVAL; - if (offset & ~PAGE_MASK) - goto out; - - err = ksys_mmap_pgoff(addr, len, prot, flags, fd, offset >> PAGE_SHIFT); - out: - return err; -} |