projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aea894
)
riscv: define NR_syscalls in unistd.h
author
David Abdurachmanov
<david.abdurachmanov@gmail.com>
Mon, 10 Dec 2018 20:43:54 +0000
(21:43 +0100)
committer
Palmer Dabbelt
<palmer@sifive.com>
Mon, 7 Jan 2019 16:22:41 +0000
(08:22 -0800)
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>
arch/riscv/include/asm/unistd.h
patch
|
blob
|
history
diff --git
a/arch/riscv/include/asm/unistd.h
b/arch/riscv/include/asm/unistd.h
index fef96f117b4def3fe9a99ec9ca8b26d2278e087c..073ee80fdf746fe68c8a748c2dd27fd0e9cf5a17 100644
(file)
--- 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)