Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3516c90 authored by Mark Rutland's avatar Mark Rutland Committed by Will Deacon
Browse files

arm64: use SYSCALL_DEFINE6() for mmap



We don't currently annotate our mmap implementation as a syscall, as we
need to do to use pt_regs syscall wrappers.

Let's mark it as a real syscall.

There should be no functional change as a result of this patch.

Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
Reviewed-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent bf4ce5cc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -29,9 +29,9 @@
#include <asm/cpufeature.h>
#include <asm/syscall.h>

asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
			 unsigned long prot, unsigned long flags,
			 unsigned long fd, off_t off)
SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,
		unsigned long, prot, unsigned long, flags,
		unsigned long, fd, off_t, off)
{
	if (offset_in_page(off) != 0)
		return -EINVAL;