Skip to content

Commit 6b1200f

Browse files
Firoz Khanmpe
authored andcommitted
powerpc: 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 <firoz.khan@linaro.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 2de0471 commit 6b1200f

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎arch/powerpc/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 | (

‎arch/powerpc/kernel/systbl.S‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
.globl sys_call_table
2626
sys_call_table:
2727
#ifdef CONFIG_PPC64
28-
#define __SYSCALL(nr, entry, nargs) .8byte DOTSYM(entry)
28+
#define __SYSCALL(nr, entry) .8byte DOTSYM(entry)
2929
#include <asm/syscall_table_64.h>
3030
#undef __SYSCALL
3131
#else
32-
#define __SYSCALL(nr, entry, nargs) .long entry
32+
#define __SYSCALL(nr, entry) .long entry
3333
#include <asm/syscall_table_32.h>
3434
#undef __SYSCALL
3535
#endif
@@ -38,7 +38,7 @@ sys_call_table:
3838
.globl compat_sys_call_table
3939
compat_sys_call_table:
4040
#define compat_sys_sigsuspend sys_sigsuspend
41-
#define __SYSCALL(nr, entry, nargs) .8byte DOTSYM(entry)
41+
#define __SYSCALL(nr, entry) .8byte DOTSYM(entry)
4242
#include <asm/syscall_table_c32.h>
4343
#undef __SYSCALL
4444
#endif

‎arch/powerpc/platforms/cell/spu_callbacks.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*/
3535

3636
static void *spu_syscall_table[] = {
37-
#define __SYSCALL(nr, entry, nargs) entry,
37+
#define __SYSCALL(nr, entry) entry,
3838
#include <asm/syscall_table_spu.h>
3939
#undef __SYSCALL
4040
};

0 commit comments

Comments
 (0)