Re: [PATCH v3 2/8] x86, syscalls: Refactor SYSCALL_DEFINE0 macros

From: Andy Lutomirski
Date: Fri Feb 28 2020 - 13:35:43 EST


On Thu, Feb 27, 2020 at 5:28 AM Brian Gerst <brgerst@xxxxxxxxx> wrote:
>
> Pull the common code out from the SYSCALL_DEFINE0 macros into a new
> __SYS_STUB0 macro. Also conditionalize the X64 version in preparation for
> enabling syscall wrappers on 32-bit native kernels.

Reviewed-by: Andy Lutomirski <luto@xxxxxxxxxx>

It would be really nice if there was a clean way to get rid of the
0-arg special case, but I don't immediately see one.

--Andy