projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0473c9b
)
compat: add COMPAT_SYSCALL_DEFINE0 macro
author
Heiko Carstens
<heiko.carstens@de.ibm.com>
Wed, 26 Feb 2014 09:56:20 +0000
(10:56 +0100)
committer
Heiko Carstens
<heiko.carstens@de.ibm.com>
Tue, 4 Mar 2014 08:05:33 +0000
(09:05 +0100)
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>
include/linux/compat.h
patch
|
blob
|
history
diff --git
a/include/linux/compat.h
b/include/linux/compat.h
index
beded18
..
4c42df3
100644
(file)
--- a/
include/linux/compat.h
+++ b/
include/linux/compat.h
@@
-27,6
+27,9
@@
#define __SC_DELOUSE(t,v) ((t)(unsigned long)(v))
#endif
+#define COMPAT_SYSCALL_DEFINE0(name) \
+ asmlinkage long compat_sys_##name(void)
+
#define COMPAT_SYSCALL_DEFINE1(name, ...) \
COMPAT_SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
#define COMPAT_SYSCALL_DEFINE2(name, ...) \