summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiroz Khan <firoz.khan@linaro.org>2019-01-02 09:56:17 -0500
committerPaul Burton <paul.burton@mips.com>2019-07-30 13:50:30 -0400
commitdc7077f89ad9e16533ec1e507fabd8f427982f3e (patch)
tree986e90232e810f54ff03d3545527e3eecae3e6c9
parent7f428252dbd0adc91317ae7ea27d7e27b70df1f6 (diff)
mips: 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: Paul Burton <paul.burton@mips.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: James Hogan <jhogan@kernel.org> Cc: linux-mips@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Philippe Ombredanne <pombredanne@nexb.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Kate Stewart <kstewart@linuxfoundation.org> Cc: y2038@lists.linaro.org Cc: linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org Cc: arnd@arndb.de Cc: deepa.kernel@gmail.com Cc: marcin.juszkiewicz@linaro.org
-rw-r--r--arch/mips/kernel/scall32-o32.S2
-rw-r--r--arch/mips/kernel/scall64-n32.S2
-rw-r--r--arch/mips/kernel/scall64-n64.S2
-rw-r--r--arch/mips/kernel/scall64-o32.S2
-rw-r--r--arch/mips/kernel/syscalls/syscalltbl.sh4
5 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S
index d9434cd0f568..b449b68662a9 100644
--- a/arch/mips/kernel/scall32-o32.S
+++ b/arch/mips/kernel/scall32-o32.S
@@ -217,7 +217,7 @@ einval: li v0, -ENOSYS
217#define sys_sched_getaffinity mipsmt_sys_sched_getaffinity 217#define sys_sched_getaffinity mipsmt_sys_sched_getaffinity
218#endif /* CONFIG_MIPS_MT_FPAFF */ 218#endif /* CONFIG_MIPS_MT_FPAFF */
219 219
220#define __SYSCALL(nr, entry, nargs) PTR entry 220#define __SYSCALL(nr, entry) PTR entry
221 .align 2 221 .align 2
222 .type sys_call_table, @object 222 .type sys_call_table, @object
223EXPORT(sys_call_table) 223EXPORT(sys_call_table)
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S
index c761ddfed9e6..35d8c86b160e 100644
--- a/arch/mips/kernel/scall64-n32.S
+++ b/arch/mips/kernel/scall64-n32.S
@@ -101,7 +101,7 @@ not_n32_scall:
101 101
102 END(handle_sysn32) 102 END(handle_sysn32)
103 103
104#define __SYSCALL(nr, entry, nargs) PTR entry 104#define __SYSCALL(nr, entry) PTR entry
105 .type sysn32_call_table, @object 105 .type sysn32_call_table, @object
106EXPORT(sysn32_call_table) 106EXPORT(sysn32_call_table)
107#include <asm/syscall_table_64_n32.h> 107#include <asm/syscall_table_64_n32.h>
diff --git a/arch/mips/kernel/scall64-n64.S b/arch/mips/kernel/scall64-n64.S
index 727fb8a1b0eb..23b2e2b1609c 100644
--- a/arch/mips/kernel/scall64-n64.S
+++ b/arch/mips/kernel/scall64-n64.S
@@ -109,7 +109,7 @@ illegal_syscall:
109 j n64_syscall_exit 109 j n64_syscall_exit
110 END(handle_sys64) 110 END(handle_sys64)
111 111
112#define __SYSCALL(nr, entry, nargs) PTR entry 112#define __SYSCALL(nr, entry) PTR entry
113 .align 3 113 .align 3
114 .type sys_call_table, @object 114 .type sys_call_table, @object
115EXPORT(sys_call_table) 115EXPORT(sys_call_table)
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S
index feb2653490df..41df8221bb8f 100644
--- a/arch/mips/kernel/scall64-o32.S
+++ b/arch/mips/kernel/scall64-o32.S
@@ -213,7 +213,7 @@ einval: li v0, -ENOSYS
213 jr ra 213 jr ra
214 END(sys32_syscall) 214 END(sys32_syscall)
215 215
216#define __SYSCALL(nr, entry, nargs) PTR entry 216#define __SYSCALL(nr, entry) PTR entry
217 .align 3 217 .align 3
218 .type sys32_call_table,@object 218 .type sys32_call_table,@object
219EXPORT(sys32_call_table) 219EXPORT(sys32_call_table)
diff --git a/arch/mips/kernel/syscalls/syscalltbl.sh b/arch/mips/kernel/syscalls/syscalltbl.sh
index acd338d33bbe..1e2570740c20 100644
--- a/arch/mips/kernel/syscalls/syscalltbl.sh
+++ b/arch/mips/kernel/syscalls/syscalltbl.sh
@@ -13,10 +13,10 @@ emit() {
13 t_entry="$3" 13 t_entry="$3"
14 14
15 while [ $t_nxt -lt $t_nr ]; do 15 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}"
17 t_nxt=$((t_nxt+1)) 17 t_nxt=$((t_nxt+1))
18 done 18 done
19 printf "__SYSCALL(%s, %s, )\n" "${t_nxt}" "${t_entry}" 19 printf "__SYSCALL(%s,%s)\n" "${t_nxt}" "${t_entry}"
20} 20}
21 21
22grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 22grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (