projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc465aa
)
parisc: Add compile-time check when adding new syscalls
author
Helge Deller
<
[email protected]
>
Sun, 15 Mar 2015 20:32:12 +0000
(21:32 +0100)
committer
Helge Deller
<
[email protected]
>
Mon, 23 Mar 2015 09:57:25 +0000
(10:57 +0100)
Signed-off-by: Helge Deller <
[email protected]
>
arch/parisc/kernel/syscall_table.S
patch
|
blob
|
history
diff --git
a/arch/parisc/kernel/syscall_table.S
b/arch/parisc/kernel/syscall_table.S
index 5a8997d63899346a82e759f30b601eaf907bac37..8eefb12d1d33f3fc87195a0cd9efe0d0fd0301b2 100644
(file)
--- a/
arch/parisc/kernel/syscall_table.S
+++ b/
arch/parisc/kernel/syscall_table.S
@@
-55,8
+55,8
@@
#define ENTRY_COMP(_name_) .word sys_##_name_
#endif
-
ENTRY_SAME(restart_syscall) /* 0 */
-
ENTRY_SAME(exit)
+
90:
ENTRY_SAME(restart_syscall) /* 0 */
+
91:
ENTRY_SAME(exit)
ENTRY_SAME(fork_wrapper)
ENTRY_SAME(read)
ENTRY_SAME(write)
@@
-439,7
+439,10
@@
ENTRY_SAME(bpf)
ENTRY_COMP(execveat)
- /* Nothing yet */
+
+.ifne (. - 90b) - (__NR_Linux_syscalls * (91b - 90b))
+.error "size of syscall table does not fit value of __NR_Linux_syscalls"
+.endif
#undef ENTRY_SAME
#undef ENTRY_DIFF