Skip to content

Commit

Permalink
parisc: Add compile-time check when adding new syscalls
Browse files Browse the repository at this point in the history
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
hdeller committed Mar 23, 2015
1 parent bc465aa commit 47514da
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions arch/parisc/kernel/syscall_table.S
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 47514da

Please sign in to comment.