Re: [RFC PATCH -tip 1/5] kprobes: Use ENOTSUPP instead of ENOSYS

2017-10-20 Thread Masami Hiramatsu
On Fri, 20 Oct 2017 10:57:22 +0200 Ingo Molnar wrote: > > * Masami Hiramatsu wrote: > > > Use ENOTSUPP instead of ENOSYS because ENOSYS is reserved > > only for invalid syscall number. > > Is this actually true? We use -ENOSYS in a ton of code in kernel/ already, > not > just for non-existi

Re: [RFC PATCH -tip 1/5] kprobes: Use ENOTSUPP instead of ENOSYS

2017-10-20 Thread Ingo Molnar
* Masami Hiramatsu wrote: > Use ENOTSUPP instead of ENOSYS because ENOSYS is reserved > only for invalid syscall number. Is this actually true? We use -ENOSYS in a ton of code in kernel/ already, not just for non-existing syscall number. Ingo

[RFC PATCH -tip 1/5] kprobes: Use ENOTSUPP instead of ENOSYS

2017-10-05 Thread Masami Hiramatsu
Use ENOTSUPP instead of ENOSYS because ENOSYS is reserved only for invalid syscall number. Signed-off-by: Masami Hiramatsu --- include/linux/kprobes.h | 16 kernel/kprobes.c|4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/linux/kpro