Re: [PATCH v2 5/9] ARM: oabi-compat: rework epoll_wait/epoll_pwait emulation

2020-09-26 Thread Arnd Bergmann
On Sat, Sep 19, 2020 at 7:32 AM Christoph Hellwig wrote: > > > index 855aa7cc9b8e..156880943c16 100644 > > --- a/arch/arm/include/asm/syscall.h > > +++ b/arch/arm/include/asm/syscall.h > > @@ -28,6 +28,17 @@ static inline int syscall_get_nr(struct task_struct > > *task, > > return task_thre

Re: [PATCH v2 5/9] ARM: oabi-compat: rework epoll_wait/epoll_pwait emulation

2020-09-18 Thread Christoph Hellwig
> index 855aa7cc9b8e..156880943c16 100644 > --- a/arch/arm/include/asm/syscall.h > +++ b/arch/arm/include/asm/syscall.h > @@ -28,6 +28,17 @@ static inline int syscall_get_nr(struct task_struct *task, > return task_thread_info(task)->syscall & ~__NR_OABI_SYSCALL_BASE; > } > > +static inline

[PATCH v2 5/9] ARM: oabi-compat: rework epoll_wait/epoll_pwait emulation

2020-09-18 Thread Arnd Bergmann
The epoll_wait() system call wrapper is one of the remaining users of the set_fs() infrasturcture for Arm. Changing it to not require set_fs() is rather complex unfortunately. The approach I'm taking here is to allow architectures to override the code that copies the output to user space, and let