Skip to content

Commit 106c909

Browse files
Firoz Khanhdeller
authored andcommitted
parisc: remove nargs from __SYSCALL
The __SYSCALL macro's arguments are system call number, system call entry name and number of arguments for the system call. Argument- nargs in __SYSCALL(nr, entry, nargs) is neither calculated nor used anywhere. So it would be better to keep the implementaion as __SYSCALL(nr, entry). This will unifies the implementation with some other architetures too. Signed-off-by: Firoz Khan <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 2a3778e commit 106c909

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/parisc/kernel/syscall.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ ENTRY(lws_table)
935935
END(lws_table)
936936
/* End of lws table */
937937

938-
#define __SYSCALL(nr, entry, nargs) ASM_ULONG_INSN entry
938+
#define __SYSCALL(nr, entry) ASM_ULONG_INSN entry
939939
.align 8
940940
ENTRY(sys_call_table)
941941
.export sys_call_table,data

arch/parisc/kernel/syscalls/syscalltbl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ emit() {
1313
t_entry="$3"
1414

1515
while [ $t_nxt -lt $t_nr ]; do
16-
printf "__SYSCALL(%s, sys_ni_syscall, )\n" "${t_nxt}"
16+
printf "__SYSCALL(%s,sys_ni_syscall)\n" "${t_nxt}"
1717
t_nxt=$((t_nxt+1))
1818
done
19-
printf "__SYSCALL(%s, %s, )\n" "${t_nxt}" "${t_entry}"
19+
printf "__SYSCALL(%s,%s)\n" "${t_nxt}" "${t_entry}"
2020
}
2121

2222
grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (

0 commit comments

Comments
 (0)