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>
This commit is contained in:
H. Peter Anvin 2011-11-11 15:57:53 -08:00
parent d181764ccf
commit 29dc54c673

View file

@ -198,11 +198,16 @@ EOF
} }
syscall_list() { syscall_list() {
sed -n -e '/^\#define/ s/[^_]*__NR_\([^[:space:]]*\).*/\ grep '^[0-9]' "$1" | sort -n | (
\#if !defined \(__NR_\1\) \&\& !defined \(__IGNORE_\1\)\ while read nr abi name entry ; do
\#warning syscall \1 not implemented\ echo <<EOF
\#endif/p' $1 #if !defined(__NR_${name}) && !defined(__IGNORE_${name})
#warning syscall ${name} not implemented
#endif
EOF
done
)
} }
(ignore_list && syscall_list $(dirname $0)/../arch/x86/include/asm/unistd_32.h) | \ (ignore_list && syscall_list $(dirname $0)/../arch/x86/syscalls/syscall_32.tbl) | \
$* -E -x c - > /dev/null $* -E -x c - > /dev/null