Skip to content

Commit ce37212

Browse files
masahir0yMichal Simek
authored andcommitted
microblaze: syscalls: switch to generic syscalltbl.sh
Many architectures duplicate similar shell scripts. This commit converts microblaze to use scripts/syscalltbl.sh. Signed-off-by: Masahiro Yamada <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>
1 parent fe07bfd commit ce37212

File tree

3 files changed

+3
-39
lines changed

3 files changed

+3
-39
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
22

3-
#define __SYSCALL(nr, entry, nargs) .long entry
3+
#define __SYSCALL(nr, entry) .long entry
44
ENTRY(sys_call_table)
55
#include <asm/syscall_table.h>
6-
#undef __SYSCALL

arch/microblaze/kernel/syscalls/Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ _dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \
77

88
syscall := $(src)/syscall.tbl
99
syshdr := $(srctree)/$(src)/syscallhdr.sh
10-
systbl := $(srctree)/$(src)/syscalltbl.sh
10+
systbl := $(srctree)/scripts/syscalltbl.sh
1111

1212
quiet_cmd_syshdr = SYSHDR $@
1313
cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \
@@ -16,10 +16,7 @@ quiet_cmd_syshdr = SYSHDR $@
1616
'$(syshdr_offset_$(basetarget))'
1717

1818
quiet_cmd_systbl = SYSTBL $@
19-
cmd_systbl = $(CONFIG_SHELL) '$(systbl)' '$<' '$@' \
20-
'$(systbl_abis_$(basetarget))' \
21-
'$(systbl_abi_$(basetarget))' \
22-
'$(systbl_offset_$(basetarget))'
19+
cmd_systbl = $(CONFIG_SHELL) $(systbl) $< $@
2320

2421
$(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
2522
$(call if_changed,syshdr)

arch/microblaze/kernel/syscalls/syscalltbl.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)