diff mbox series

[1/2] riscv: define NR_syscalls in unistd.h

Message ID 20181210204355.3483-2-david.abdurachmanov@gmail.com (mailing list archive)
State New, archived
Headers show
Series Fix next-audit branch | expand

Commit Message

David Abdurachmanov Dec. 10, 2018, 8:43 p.m. UTC
This macro is used by kernel/trace/{trace.h,trace_syscalls.c} if we
have CONFIG_FTRACE_SYSCALLS enabled.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
Fixes: b78002b395b4 ("riscv: add HAVE_SYSCALL_TRACEPOINTS to Kconfig")
---
 arch/riscv/include/asm/unistd.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Olof Johansson Dec. 14, 2018, 1:57 a.m. UTC | #1
On Tue, Dec 11, 2018 at 4:44 AM David Abdurachmanov
<david.abdurachmanov@gmail.com> wrote:
>
> This macro is used by kernel/trace/{trace.h,trace_syscalls.c} if we
> have CONFIG_FTRACE_SYSCALLS enabled.
>
> Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
> Fixes: b78002b395b4 ("riscv: add HAVE_SYSCALL_TRACEPOINTS to Kconfig")

Reviewed-by: Olof Johansson <olof@lixom.net>


-Olof
diff mbox series

Patch

diff --git a/arch/riscv/include/asm/unistd.h b/arch/riscv/include/asm/unistd.h
index fef96f117b4d..073ee80fdf74 100644
--- a/arch/riscv/include/asm/unistd.h
+++ b/arch/riscv/include/asm/unistd.h
@@ -19,3 +19,5 @@ 
 #define __ARCH_WANT_SYS_CLONE
 
 #include <uapi/asm/unistd.h>
+
+#define NR_syscalls (__NR_syscalls)