microblaze: Use predefined SYSCALL_DEFINE macro
authorMichal Simek <michal.simek@xilinx.com>
Mon, 16 Sep 2013 05:45:29 +0000 (07:45 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 8 Nov 2013 14:20:39 +0000 (15:20 +0100)
Use standard syscall definition.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/kernel/sys_microblaze.c

index f905b3ae68c79ec2bb3e7e52c282cedd38a21172..e80a6c02ac31d99ed6f8681cbcc98a449320587d 100644 (file)
@@ -33,9 +33,9 @@
 #include <linux/slab.h>
 #include <asm/syscalls.h>
 
-asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
-                       unsigned long prot, unsigned long flags,
-                       unsigned long fd, off_t pgoff)
+SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,
+               unsigned long, prot, unsigned long, flags, unsigned long, fd,
+               off_t, pgoff)
 {
        if (pgoff & ~PAGE_MASK)
                return -EINVAL;