Skip to content

Commit

Permalink
alpha: syscalls: switch to generic syscalltbl.sh
Browse files Browse the repository at this point in the history
Many architectures duplicate similar shell scripts.

This commit converts alpha to use scripts/syscalltbl.sh.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
  • Loading branch information
Masahiro Yamada committed Apr 24, 2021
1 parent d8fc9b6 commit b186f2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 39 deletions.
7 changes: 2 additions & 5 deletions arch/alpha/kernel/syscalls/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ _dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \

syscall := $(src)/syscall.tbl
syshdr := $(srctree)/$(src)/syscallhdr.sh
systbl := $(srctree)/$(src)/syscalltbl.sh
systbl := $(srctree)/scripts/syscalltbl.sh

quiet_cmd_syshdr = SYSHDR $@
cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \
Expand All @@ -16,10 +16,7 @@ quiet_cmd_syshdr = SYSHDR $@
'$(syshdr_offset_$(basetarget))'

quiet_cmd_systbl = SYSTBL $@
cmd_systbl = $(CONFIG_SHELL) '$(systbl)' '$<' '$@' \
'$(systbl_abis_$(basetarget))' \
'$(systbl_abi_$(basetarget))' \
'$(systbl_offset_$(basetarget))'
cmd_systbl = $(CONFIG_SHELL) $(systbl) $< $@

$(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
$(call if_changed,syshdr)
Expand Down
32 changes: 0 additions & 32 deletions arch/alpha/kernel/syscalls/syscalltbl.sh

This file was deleted.

3 changes: 1 addition & 2 deletions arch/alpha/kernel/systbls.S
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@

#include <asm/unistd.h>

#define __SYSCALL(nr, entry, nargs) .quad entry
#define __SYSCALL(nr, entry) .quad entry
.data
.align 3
.globl sys_call_table
sys_call_table:
#include <asm/syscall_table.h>
#undef __SYSCALL

0 comments on commit b186f2c

Please sign in to comment.