Skip to content

Commit 5e321de

Browse files
committed
Merge tag 'for-5.13/parisc' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc architecture updates from Helge Deller: - switch to generic syscall header scripts - minor typo fix in setup.c * tag 'for-5.13/parisc' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Fix typo in setup.c parisc: syscalls: switch to generic syscallhdr.sh parisc: syscalls: switch to generic syscalltbl.sh
2 parents cda689f + 127f1c0 commit 5e321de

File tree

6 files changed

+17
-104
lines changed

6 files changed

+17
-104
lines changed

arch/parisc/include/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22
generated-y += syscall_table_32.h
33
generated-y += syscall_table_64.h
4-
generated-y += syscall_table_c32.h
54
generic-y += kvm_para.h
65
generic-y += mcs_spinlock.h
76
generic-y += user.h

arch/parisc/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ static int __init parisc_init_resources(void)
268268
result = request_resource(&iomem_resource, &local_broadcast);
269269
if (result < 0) {
270270
printk(KERN_ERR
271-
"%s: failed to claim %saddress space!\n",
271+
"%s: failed to claim %s address space!\n",
272272
__FILE__, local_broadcast.name);
273273
return result;
274274
}

arch/parisc/kernel/syscall.S

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -919,24 +919,24 @@ ENTRY(lws_table)
919919
END(lws_table)
920920
/* End of lws table */
921921

922+
#ifdef CONFIG_64BIT
923+
#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat)
924+
#else
925+
#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
926+
#endif
922927
#define __SYSCALL(nr, entry) ASM_ULONG_INSN entry
923928
.align 8
924929
ENTRY(sys_call_table)
925930
.export sys_call_table,data
926-
#ifdef CONFIG_64BIT
927-
#include <asm/syscall_table_c32.h> /* Compat syscalls */
928-
#else
929-
#include <asm/syscall_table_32.h> /* 32-bit native syscalls */
930-
#endif
931+
#include <asm/syscall_table_32.h> /* 32-bit syscalls */
931932
END(sys_call_table)
932933

933934
#ifdef CONFIG_64BIT
934935
.align 8
935936
ENTRY(sys_call_table64)
936-
#include <asm/syscall_table_64.h> /* 64-bit native syscalls */
937+
#include <asm/syscall_table_64.h> /* 64-bit syscalls */
937938
END(sys_call_table64)
938939
#endif
939-
#undef __SYSCALL
940940

941941
/*
942942
All light-weight-syscall atomic operations
@@ -961,5 +961,3 @@ END(lws_lock_start)
961961
.previous
962962

963963
.end
964-
965-

arch/parisc/kernel/syscalls/Makefile

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,34 @@ _dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \
66
$(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)')
77

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

1212
quiet_cmd_syshdr = SYSHDR $@
13-
cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \
14-
'$(syshdr_abis_$(basetarget))' \
15-
'$(syshdr_pfx_$(basetarget))' \
16-
'$(syshdr_offset_$(basetarget))'
13+
cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr --abis $(abis) $< $@
1714

1815
quiet_cmd_systbl = SYSTBL $@
19-
cmd_systbl = $(CONFIG_SHELL) '$(systbl)' '$<' '$@' \
20-
'$(systbl_abis_$(basetarget))' \
21-
'$(systbl_abi_$(basetarget))' \
22-
'$(systbl_offset_$(basetarget))'
16+
cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis $(abis) $< $@
2317

24-
syshdr_abis_unistd_32 := common,32
18+
$(uapi)/unistd_32.h: abis := common,32
2519
$(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
2620
$(call if_changed,syshdr)
2721

28-
syshdr_abis_unistd_64 := common,64
22+
$(uapi)/unistd_64.h: abis := common,64
2923
$(uapi)/unistd_64.h: $(syscall) $(syshdr) FORCE
3024
$(call if_changed,syshdr)
3125

32-
systbl_abis_syscall_table_32 := common,32
26+
$(kapi)/syscall_table_32.h: abis := common,32
3327
$(kapi)/syscall_table_32.h: $(syscall) $(systbl) FORCE
3428
$(call if_changed,systbl)
3529

36-
systbl_abis_syscall_table_64 := common,64
30+
$(kapi)/syscall_table_64.h: abis := common,64
3731
$(kapi)/syscall_table_64.h: $(syscall) $(systbl) FORCE
3832
$(call if_changed,systbl)
3933

40-
systbl_abis_syscall_table_c32 := common,32
41-
systbl_abi_syscall_table_c32 := c32
42-
$(kapi)/syscall_table_c32.h: $(syscall) $(systbl) FORCE
43-
$(call if_changed,systbl)
44-
4534
uapisyshdr-y += unistd_32.h unistd_64.h
4635
kapisyshdr-y += syscall_table_32.h \
47-
syscall_table_64.h \
48-
syscall_table_c32.h
36+
syscall_table_64.h
4937

5038
uapisyshdr-y := $(addprefix $(uapi)/, $(uapisyshdr-y))
5139
kapisyshdr-y := $(addprefix $(kapi)/, $(kapisyshdr-y))

arch/parisc/kernel/syscalls/syscallhdr.sh

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

arch/parisc/kernel/syscalls/syscalltbl.sh

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

0 commit comments

Comments
 (0)