* [RFC v4 01/25] arch: add __SYSCALL_DEFINE_ARCH
[not found] <cover.1585579244.git.thehajime@gmail.com>
@ 2020-03-30 14:45 ` Hajime Tazaki
0 siblings, 0 replies; only message in thread
From: Hajime Tazaki @ 2020-03-30 14:45 UTC (permalink / raw)
To: linux-um
Cc: Octavian Purdila, Akira Moroo, linux-kernel-library, linux-arch,
linux-api
From: Octavian Purdila <tavi.purdila@gmail.com>
This allows the architecture code to process the system call
definitions. It is used by LKL to create strong typed function
definitions for system calls.
Signed-off-by: Octavian Purdila <tavi.purdila@gmail.com>
Cc: linux-api@vger.kernel.org
---
include/linux/syscalls.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 1815065d52f3..e45815a3ee10 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -203,9 +203,14 @@ static inline int is_syscall_trace_event(struct trace_event_call *tp_event)
}
#endif
+#ifndef __SYSCALL_DEFINE_ARCH
+#define __SYSCALL_DEFINE_ARCH(x, sname, ...)
+#endif
+
#ifndef SYSCALL_DEFINE0
#define SYSCALL_DEFINE0(sname) \
SYSCALL_METADATA(_##sname, 0); \
+ __SYSCALL_DEFINE_ARCH(0, _##sname); \
asmlinkage long sys_##sname(void); \
ALLOW_ERROR_INJECTION(sys_##sname, ERRNO); \
asmlinkage long sys_##sname(void)
@@ -222,6 +227,7 @@ static inline int is_syscall_trace_event(struct trace_event_call *tp_event)
#define SYSCALL_DEFINEx(x, sname, ...) \
SYSCALL_METADATA(sname, x, __VA_ARGS__) \
+ __SYSCALL_DEFINE_ARCH(x, sname, __VA_ARGS__) \
__SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
#define __PROTECT(...) asmlinkage_protect(__VA_ARGS__)
--
2.21.0 (Apple Git-122.2)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-30 14:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <cover.1585579244.git.thehajime@gmail.com>
2020-03-30 14:45 ` [RFC v4 01/25] arch: add __SYSCALL_DEFINE_ARCH Hajime Tazaki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).