Commit 3691d614 authored by Al Viro's avatar Al Viro Committed by Michael Ellerman

powerpc/syscalls: Switch trivial cases to SYSCALL_DEFINE

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent df78d3f6
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <linux/of.h> #include <linux/of.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/export.h> #include <linux/export.h>
#include <linux/syscalls.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/io.h> #include <asm/io.h>
...@@ -283,7 +284,8 @@ pci_bus_to_hose(int bus) ...@@ -283,7 +284,8 @@ pci_bus_to_hose(int bus)
* Note that the returned IO or memory base is a physical address * Note that the returned IO or memory base is a physical address
*/ */
long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn) SYSCALL_DEFINE3(pciconfig_iobase, long, which,
unsigned long, bus, unsigned long, devfn)
{ {
struct pci_controller* hose; struct pci_controller* hose;
long result = -EOPNOTSUPP; long result = -EOPNOTSUPP;
...@@ -307,5 +309,3 @@ long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn) ...@@ -307,5 +309,3 @@ long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn)
return result; return result;
} }
...@@ -203,8 +203,8 @@ void pcibios_setup_phb_io_space(struct pci_controller *hose) ...@@ -203,8 +203,8 @@ void pcibios_setup_phb_io_space(struct pci_controller *hose)
#define IOBASE_ISA_IO 3 #define IOBASE_ISA_IO 3
#define IOBASE_ISA_MEM 4 #define IOBASE_ISA_MEM 4
long sys_pciconfig_iobase(long which, unsigned long in_bus, SYSCALL_DEFINE3(pciconfig_iobase, long, which, unsigned long, in_bus,
unsigned long in_devfn) unsigned long, in_devfn)
{ {
struct pci_controller* hose; struct pci_controller* hose;
struct pci_bus *tmp_bus, *bus = NULL; struct pci_bus *tmp_bus, *bus = NULL;
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/hugetlb.h> #include <linux/hugetlb.h>
#include <linux/syscalls.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
...@@ -185,7 +186,8 @@ static void subpage_mark_vma_nohuge(struct mm_struct *mm, unsigned long addr, ...@@ -185,7 +186,8 @@ static void subpage_mark_vma_nohuge(struct mm_struct *mm, unsigned long addr,
* in a 2-bit field won't allow writes to a page that is otherwise * in a 2-bit field won't allow writes to a page that is otherwise
* write-protected. * write-protected.
*/ */
long sys_subpage_prot(unsigned long addr, unsigned long len, u32 __user *map) SYSCALL_DEFINE3(subpage_prot, unsigned long, addr,
unsigned long, len, u32 __user *, map)
{ {
struct mm_struct *mm = current->mm; struct mm_struct *mm = current->mm;
struct subpage_prot_table *spt = &mm->context.spt; struct subpage_prot_table *spt = &mm->context.spt;
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <linux/syscalls.h> #include <linux/syscalls.h>
#include <linux/rcupdate.h> #include <linux/rcupdate.h>
#include <linux/binfmts.h> #include <linux/binfmts.h>
#include <linux/syscalls.h>
#include <asm/spu.h> #include <asm/spu.h>
...@@ -90,7 +91,7 @@ SYSCALL_DEFINE4(spu_create, const char __user *, name, unsigned int, flags, ...@@ -90,7 +91,7 @@ SYSCALL_DEFINE4(spu_create, const char __user *, name, unsigned int, flags,
return ret; return ret;
} }
asmlinkage long sys_spu_run(int fd, __u32 __user *unpc, __u32 __user *ustatus) SYSCALL_DEFINE3(spu_run,int, fd, __u32 __user *, unpc, __u32 __user *, ustatus)
{ {
long ret; long ret;
struct fd arg; struct fd arg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment