Commit a5ee2be9 authored by Firoz Khan's avatar Firoz Khan Committed by Paul Burton

mips: remove unused macros

Remove __NR_Linux_syscalls from uapi/asm/unistd.h as
there is no users to use NR_syscalls macro in mips
kernel.

MAX_SYSCALL_NO can also remove as there is commit
2957c9e6 ("[MIPS] IRIX: Goodbye and thanks for
all the fish"), eight years ago.
Signed-off-by: default avatarFiroz Khan <firoz.khan@linaro.org>
[paul.burton@mips.com:
 - Drop the removal of NR_syscalls which is used by
   kernel/trace/trace.h.]
Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@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
parent ef2512c8
...@@ -395,11 +395,6 @@ ...@@ -395,11 +395,6 @@
#define __NR_syscalls 368 #define __NR_syscalls 368
#endif #endif
/*
* Offset of the last Linux o32 flavoured syscall
*/
#define __NR_Linux_syscalls __NR_syscalls
#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
#define __NR_O32_Linux 4000 #define __NR_O32_Linux 4000
...@@ -745,11 +740,6 @@ ...@@ -745,11 +740,6 @@
#define __NR_syscalls 328 #define __NR_syscalls 328
#endif #endif
/*
* Offset of the last Linux 64-bit flavoured syscall
*/
#define __NR_Linux_syscalls __NR_syscalls
#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
#define __NR_64_Linux 5000 #define __NR_64_Linux 5000
...@@ -1099,11 +1089,6 @@ ...@@ -1099,11 +1089,6 @@
#define __NR_syscalls 332 #define __NR_syscalls 332
#endif #endif
/*
* Offset of the last N32 flavoured syscall
*/
#define __NR_Linux_syscalls __NR_syscalls
#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
#define __NR_N32_Linux 6000 #define __NR_N32_Linux 6000
......
...@@ -22,9 +22,6 @@ ...@@ -22,9 +22,6 @@
#include <asm/war.h> #include <asm/war.h>
#include <asm/asm-offsets.h> #include <asm/asm-offsets.h>
/* Highest syscall used of any syscall flavour */
#define MAX_SYSCALL_NO __NR_O32_Linux + __NR_O32_Linux_syscalls
.align 5 .align 5
NESTED(handle_sys, PT_SIZE, sp) NESTED(handle_sys, PT_SIZE, sp)
.set noat .set noat
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment