lkml.org 
[lkml]   [2010]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 27/40] trace syscalls: Add COMPAT_SYSCALL_DEFINE0 macro
Date
From: Ian Munsie <imunsie@au1.ibm.com>

This patchs adds the COMPAT_SYSCALL_DEFINE0 macros for compat syscalls
that do not take any arguments.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
---
include/linux/syscalls.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index a608565..1076ae8 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -220,6 +220,10 @@ extern struct trace_event_functions exit_syscall_print_funcs;
SYSCALL_METADATAx(syscall, compat_sys_##sname, x, compat_syscall, __VA_ARGS__);\
asmlinkage long syscall(__SC_DECL##x(__VA_ARGS__))

+#define COMPAT_SYSCALL_DEFINE0(name) \
+ SYSCALL_METADATA0(compat_sys_##name, name, compat_syscall) \
+ asmlinkage long compat_sys_##name()
+
#endif /* CONFIG_COMPAT */


--
1.7.1


\
 
 \ /
  Last update: 2010-06-23 12:09    [W:0.244 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site