summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include
diff options
context:
space:
mode:
authorDavid Abdurachmanov <david.abdurachmanov@gmail.com>2018-12-10 21:43:54 +0100
committerPalmer Dabbelt <palmer@sifive.com>2019-01-07 17:22:41 +0100
commit45ef1aa8a0e3b0da449c619035b0841f28abca63 (patch)
treea61fd2e3a76a29c53f85ebc51dc21337b59a9f4b /arch/riscv/include
parentriscv: audit: add audit hook in do_syscall_trace_enter/exit() (diff)
downloadlinux-45ef1aa8a0e3b0da449c619035b0841f28abca63.tar.xz
linux-45ef1aa8a0e3b0da449c619035b0841f28abca63.zip
riscv: define NR_syscalls in unistd.h
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") Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r--arch/riscv/include/asm/unistd.h2
1 files changed, 2 insertions, 0 deletions
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)