mips: remove unused macros
authorFiroz Khan <[email protected]>
Thu, 13 Dec 2018 09:07:34 +0000 (14:37 +0530)
committerPaul Burton <[email protected]>
Fri, 14 Dec 2018 19:13:40 +0000 (11:13 -0800)
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
2957c9e61ee9 ("[MIPS] IRIX: Goodbye and thanks for
all the fish"), eight years ago.

Signed-off-by: Firoz Khan <[email protected]>
[[email protected]:
 - Drop the removal of NR_syscalls which is used by
   kernel/trace/trace.h.]
Signed-off-by: Paul Burton <[email protected]>
Cc: [email protected]
Cc: Ralf Baechle <[email protected]>
Cc: James Hogan <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Philippe Ombredanne <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Kate Stewart <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
arch/mips/include/uapi/asm/unistd.h
arch/mips/kernel/scall32-o32.S

index 6914be51b122b3ee84f9c940f1b462118a9e0852..c8971956b7046424fdf82477a358e51889143515 100644 (file)
 #define __NR_syscalls                  368
 #endif
 
-/*
- * Offset of the last Linux o32 flavoured syscall
- */
-#define __NR_Linux_syscalls            __NR_syscalls
-
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
 
 #define __NR_O32_Linux                 4000
 #define __NR_syscalls                  328
 #endif
 
-/*
- * Offset of the last Linux 64-bit flavoured syscall
- */
-#define __NR_Linux_syscalls            __NR_syscalls
-
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
 
 #define __NR_64_Linux                  5000
 #define __NR_syscalls                  332
 #endif
 
-/*
- * Offset of the last N32 flavoured syscall
- */
-#define __NR_Linux_syscalls            __NR_syscalls
-
 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
 
 #define __NR_N32_Linux                 6000
index 91d3c8c46097cd960fd541cdf7c76d7e0d3636e3..fea6edbf7832c1b5ca61bf4c50685c7282d3b08a 100644 (file)
@@ -22,9 +22,6 @@
 #include <asm/war.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
 NESTED(handle_sys, PT_SIZE, sp)
        .set    noat