aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2011-11-11 18:57:53 -0500
committerH. Peter Anvin <hpa@linux.intel.com>2011-11-17 16:35:37 -0500
commit29dc54c673ea2531d589400badb4ada5f5f60dae (patch)
tree01cb24705104677f451bca58ff9440c035ce4b16 /scripts
parentd181764ccf6207e02abb95fb3052639b947f4833 (diff)
checksyscalls: Use arch/x86/syscalls/syscall_32.tbl as source
Use the new arch/x86/syscalls/syscall_32.tbl file as source instead of arch/x86/include/asm/unistd_32.h. Cc: Michal Marek <mmarek@suse.cz> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checksyscalls.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh
index 3ab316e52313..d24810fc6af6 100755
--- a/scripts/checksyscalls.sh
+++ b/scripts/checksyscalls.sh
@@ -198,11 +198,16 @@ EOF
198} 198}
199 199
200syscall_list() { 200syscall_list() {
201sed -n -e '/^\#define/ s/[^_]*__NR_\([^[:space:]]*\).*/\ 201 grep '^[0-9]' "$1" | sort -n | (
202\#if !defined \(__NR_\1\) \&\& !defined \(__IGNORE_\1\)\ 202 while read nr abi name entry ; do
203\#warning syscall \1 not implemented\ 203 echo <<EOF
204\#endif/p' $1 204#if !defined(__NR_${name}) && !defined(__IGNORE_${name})
205#warning syscall ${name} not implemented
206#endif
207EOF
208 done
209 )
205} 210}
206 211
207(ignore_list && syscall_list $(dirname $0)/../arch/x86/include/asm/unistd_32.h) | \ 212(ignore_list && syscall_list $(dirname $0)/../arch/x86/syscalls/syscall_32.tbl) | \
208$* -E -x c - > /dev/null 213$* -E -x c - > /dev/null