Skip to content

Commit b34b982

Browse files
masahir0yRussell King (Oracle)
authored andcommitted
ARM: 9085/1: remove unneeded abi parameter to syscallnr.sh
You do not need to pass the abi parameter to syscallnr.sh because it parses all the lines of syscall.tbl except comments anyway. Simplify the code. Also, remove unneeded single-quoting. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
1 parent 6073882 commit b34b982

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎arch/arm/tools/Makefile‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ quiet_cmd_systbl = SYSTBL $@
4646
cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis $(abis) $< $@
4747

4848
quiet_cmd_sysnr = SYSNR $@
49-
cmd_sysnr = $(CONFIG_SHELL) '$(sysnr)' '$<' '$@' \
50-
'$(syshdr_abi_$(basetarget))'
49+
cmd_sysnr = $(CONFIG_SHELL) $(sysnr) $< $@
5150

5251
$(uapi)/unistd-oabi.h: abis := common,oabi
5352
$(uapi)/unistd-oabi.h: $(syscall) $(syshdr) FORCE
@@ -57,7 +56,6 @@ $(uapi)/unistd-eabi.h: abis := common,eabi
5756
$(uapi)/unistd-eabi.h: $(syscall) $(syshdr) FORCE
5857
$(call if_changed,syshdr)
5958

60-
sysnr_abi_unistd-nr := common,oabi,eabi,compat
6159
$(kapi)/unistd-nr.h: $(syscall) $(sysnr) FORCE
6260
$(call if_changed,sysnr)
6361

‎arch/arm/tools/syscallnr.sh‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
# SPDX-License-Identifier: GPL-2.0
33
in="$1"
44
out="$2"
5-
my_abis=`echo "($3)" | tr ',' '|'`
65
align=1
76

87
fileguard=_ASM_ARM_`basename "$out" | sed \
98
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
109
-e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'`
1110

12-
grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | tail -n1 | (
11+
grep -E "^[0-9A-Fa-fXx]+[[:space:]]+" "$in" | sort -n | tail -n1 | (
1312
echo "#ifndef ${fileguard}
1413
#define ${fileguard} 1
1514

0 commit comments

Comments
 (0)