diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-07-05 08:06:54 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-07-08 21:00:39 +0200 |
commit | c6a3a81d19b834e3aed819027f022c5938fca2ec (patch) | |
tree | f44a9b2ced0e0d8d9ca894cad174dbb807ee3ec2 /scripts/syscallhdr.sh | |
parent | sparc: syscalls: use pattern rules to generate syscall headers (diff) | |
download | linux-c6a3a81d19b834e3aed819027f022c5938fca2ec.tar.xz linux-c6a3a81d19b834e3aed819027f022c5938fca2ec.zip |
scripts: check duplicated syscall number in syscall table
Currently, syscall{hdr,tbl}.sh sorts the entire syscall table, but you
can assume it is already sorted by the syscall number.
The generated syscall table does not work if the same syscall number
appears twice. Check it in the script.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/syscallhdr.sh')
-rwxr-xr-x | scripts/syscallhdr.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/syscallhdr.sh b/scripts/syscallhdr.sh index 848ac2735115..22e34cd46b9b 100755 --- a/scripts/syscallhdr.sh +++ b/scripts/syscallhdr.sh @@ -69,7 +69,7 @@ guard=_UAPI_ASM_$(basename "$outfile" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g') -grep -E "^[0-9A-Fa-fXx]+[[:space:]]+$abis" "$infile" | sort -n | { +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+$abis" "$infile" | { echo "#ifndef $guard" echo "#define $guard" echo |