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>
This commit is contained in:
Heiko Carstens 2014-02-26 10:56:20 +01:00
Родитель 0473c9b5f0
Коммит 217f4433fc
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -27,6 +27,9 @@
#define __SC_DELOUSE(t,v) ((t)(unsigned long)(v)) #define __SC_DELOUSE(t,v) ((t)(unsigned long)(v))
#endif #endif
#define COMPAT_SYSCALL_DEFINE0(name) \
asmlinkage long compat_sys_##name(void)
#define COMPAT_SYSCALL_DEFINE1(name, ...) \ #define COMPAT_SYSCALL_DEFINE1(name, ...) \
COMPAT_SYSCALL_DEFINEx(1, _##name, __VA_ARGS__) COMPAT_SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
#define COMPAT_SYSCALL_DEFINE2(name, ...) \ #define COMPAT_SYSCALL_DEFINE2(name, ...) \