Skip to content

Commit 29dc54c

Browse files
author
H. Peter Anvin
committed
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 <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Sam Ravnborg <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]>
1 parent d181764 commit 29dc54c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

scripts/checksyscalls.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,16 @@ EOF
198198
}
199199

200200
syscall_list() {
201-
sed -n -e '/^\#define/ s/[^_]*__NR_\([^[:space:]]*\).*/\
202-
\#if !defined \(__NR_\1\) \&\& !defined \(__IGNORE_\1\)\
203-
\#warning syscall \1 not implemented\
204-
\#endif/p' $1
201+
grep '^[0-9]' "$1" | sort -n | (
202+
while read nr abi name entry ; do
203+
echo <<EOF
204+
#if !defined(__NR_${name}) && !defined(__IGNORE_${name})
205+
#warning syscall ${name} not implemented
206+
#endif
207+
EOF
208+
done
209+
)
205210
}
206211

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) | \
208213
$* -E -x c - > /dev/null

0 commit comments

Comments
 (0)