aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compat.h
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2014-02-26 04:56:20 -0500
committerHeiko Carstens <heiko.carstens@de.ibm.com>2014-03-04 03:05:33 -0500
commit217f4433fc2fe768a7f13f7e5586333bb8280e9e (patch)
tree032148f250c5786e39bd43ded22a16d07e4bdfe8 /include/linux/compat.h
parent0473c9b5f05948df780bbc7b996dd7aefc4ec41d (diff)
compat: add COMPAT_SYSCALL_DEFINE0 macro
For consistency reason add a COMPAT_SYSCALL_DEFINE0 macro. This macro should be used for compat system calls with zero parameters. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'include/linux/compat.h')
-rw-r--r--include/linux/compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h
index beded18f992d..4c42df3fce37 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -27,6 +27,9 @@
27#define __SC_DELOUSE(t,v) ((t)(unsigned long)(v)) 27#define __SC_DELOUSE(t,v) ((t)(unsigned long)(v))
28#endif 28#endif
29 29
30#define COMPAT_SYSCALL_DEFINE0(name) \
31 asmlinkage long compat_sys_##name(void)
32
30#define COMPAT_SYSCALL_DEFINE1(name, ...) \ 33#define COMPAT_SYSCALL_DEFINE1(name, ...) \
31 COMPAT_SYSCALL_DEFINEx(1, _##name, __VA_ARGS__) 34 COMPAT_SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
32#define COMPAT_SYSCALL_DEFINE2(name, ...) \ 35#define COMPAT_SYSCALL_DEFINE2(name, ...) \