[PATCH v2 06/14] powerpc: Include all arch-specific syscall prototypes
Andrew Donnellan
ajd at linux.ibm.com
Wed Aug 10 15:57:09 AEST 2022
On Mon, 2022-08-08 at 15:24 +1000, Andrew Donnellan wrote:
> > diff --git a/arch/powerpc/include/asm/syscalls.h
> > b/arch/powerpc/include/asm/syscalls.h
> > index 025d4b877161..8b2757d7f423 100644
> > --- a/arch/powerpc/include/asm/syscalls.h
> > +++ b/arch/powerpc/include/asm/syscalls.h
> > @@ -8,49 +8,93 @@
> > #include <linux/types.h>
> > #include <linux/compat.h>
> >
> > +#ifdef CONFIG_PPC64
> > +#include <asm/ppc32.h>
> > +#endif
> > +#include <asm/unistd.h>
> > +#include <asm/ucontext.h>
> > +
> > struct rtas_args;
> >
> > -asmlinkage long sys_mmap(unsigned long addr, size_t len,
> > - unsigned long prot, unsigned long flags,
> > - unsigned long fd, off_t offset);
> > -asmlinkage long sys_mmap2(unsigned long addr, size_t len,
> > - unsigned long prot, unsigned long flags,
> > - unsigned long fd, unsigned long pgoff);
> > -asmlinkage long sys_ppc64_personality(unsigned long personality);
> > +#ifndef CONFIG_ARCH_HAS_SYSCALL_WRAPPER
Introduce this ifdef once it starts mattering at patch 10, I think.
--
Andrew Donnellan OzLabs, ADL Canberra
ajd at linux.ibm.com IBM Australia Limited
More information about the Linuxppc-dev
mailing list