diff options
author | Helge Deller <deller@gmx.de> | 2015-03-15 21:32:12 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2015-03-23 10:57:25 +0100 |
commit | 47514da3ac20150cdf764466fbc2010c0fca0163 (patch) | |
tree | 9590a74342fbe9cb77acb44d15ae934764eb54bd /arch/parisc/kernel/syscall_table.S | |
parent | Linux 4.0-rc5 (diff) | |
download | linux-47514da3ac20150cdf764466fbc2010c0fca0163.tar.xz linux-47514da3ac20150cdf764466fbc2010c0fca0163.zip |
parisc: Add compile-time check when adding new syscalls
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/kernel/syscall_table.S')
-rw-r--r-- | arch/parisc/kernel/syscall_table.S | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/parisc/kernel/syscall_table.S b/arch/parisc/kernel/syscall_table.S index 5a8997d63899..8eefb12d1d33 100644 --- 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 |