[lkml]   [2019]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 3/4] x86: use the correct function type for sys_ni_syscall

> On Sep 13, 2019, at 4:26 PM, Sami Tolvanen <> wrote:
>> On Fri, Sep 13, 2019 at 3:45 PM Andy Lutomirski <> wrote:
>> Should this be SYSCALL_DEFINE0?
> It can be, and that would also fix the issue. However, it does result
> in unnecessary error injection to be hooked up here, which is why
> arm64 preferred to avoid the macro when I fixed it there. S390 uses
> SYSCALL_DEFINE0 for this though and since sys_ni_syscall always
> returns -ENOSYS, it shouldn't be a huge problem. Thoughts?

I don’t see why all syscalls except these few should have error injection hooked up. It’s also IMO nicer from a maintenance perspective to have all syscalls use the same macros.

Will, is there something I’m missing?
 \ /
  Last update: 2019-09-14 02:29    [W:0.060 / U:2.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site