]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/arm/kernel/entry-common.S
Merge remote-tracking branch 'signal/for-next'
[karo-tx-linux.git] / arch / arm / kernel / entry-common.S
index ed7941277ca2b467ee1771a3e45dfe0a5d793715..e340fa1db203ea0dd5d78ca9a2e19e7cacf2395e 100644 (file)
@@ -118,6 +118,15 @@ ENDPROC(ret_from_kernel_execve)
        .equ NR_syscalls,0
 #define CALL(x) .equ NR_syscalls,NR_syscalls+1
 #include "calls.S"
+
+/*
+ * Ensure that the system call table is equal to __NR_syscalls,
+ * which is the value the rest of the system sees
+ */
+.ifne NR_syscalls - __NR_syscalls
+.error "__NR_syscalls is not equal to the size of the syscall table"
+.endif
+
 #undef CALL
 #define CALL(x) .long x