Skip to content

Commit d3516c9

Browse files
mrutland-armwildea01
authored andcommitted
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: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent bf4ce5c commit d3516c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/arm64/kernel/sys.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
#include <asm/cpufeature.h>
3030
#include <asm/syscall.h>
3131

32-
asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
33-
unsigned long prot, unsigned long flags,
34-
unsigned long fd, off_t off)
32+
SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,
33+
unsigned long, prot, unsigned long, flags,
34+
unsigned long, fd, off_t, off)
3535
{
3636
if (offset_in_page(off) != 0)
3737
return -EINVAL;

0 commit comments

Comments
 (0)