Re: [PATCH 04/10] seccomp: Migrate to use SYSCALL_WORK flag

2020-11-15 Thread Thomas Gleixner
On Fri, Nov 13 2020 at 22:29, Gabriel Krisman Bertazi wrote: > > +enum syscall_work_bit { > + SYSCALL_WORK_SECCOMP= 0, enums start at 0, so why do you need an explicit assignment? > +}; > + > +#define _SYSCALL_WORK_SECCOMP BIT(SYSCALL_WORK_SECCOMP) Do we really have to repeat t

[PATCH 04/10] seccomp: Migrate to use SYSCALL_WORK flag

2020-11-13 Thread Gabriel Krisman Bertazi
When one the generic syscall entry code, use the syscall_work field in struct thread_info and specific SYSCALL_WORK flags to setup this syscall work. This flag has the advantage of being architecture independent. Users of the flag outside of the generic entry code should rely on the accessor macr