From fcbee6410d5c4112593e7082fb8d96dfdc6c1c25 Mon Sep 17 00:00:00 2001 From: Atsushi Nemoto Date: Fri, 11 May 2007 01:02:34 +0900 Subject: [PATCH] [MIPS] Run checksyscalls for N32 and O32 ABI On 64-bit MIPS, only N64 ABI is checked by default. This patch adds some rules for other ABIs. This results in these warnings at the moment: CALL-N32 /home/git/linux-mips/scripts/checksyscalls.sh :148:2: warning: #warning syscall time not implemented :424:2: warning: #warning syscall select not implemented :440:2: warning: #warning syscall uselib not implemented :856:2: warning: #warning syscall vfork not implemented :868:2: warning: #warning syscall truncate64 not implemented :872:2: warning: #warning syscall ftruncate64 not implemented :876:2: warning: #warning syscall stat64 not implemented :880:2: warning: #warning syscall lstat64 not implemented :884:2: warning: #warning syscall fstat64 not implemented :980:2: warning: #warning syscall getdents64 not implemented :1176:2: warning: #warning syscall fadvise64_64 not implemented :1284:2: warning: #warning syscall fstatat64 not implemented :1364:2: warning: #warning syscall utimensat not implemented CALL-O32 /home/git/linux-mips/scripts/checksyscalls.sh :424:2: warning: #warning syscall select not implemented :856:2: warning: #warning syscall vfork not implemented :1176:2: warning: #warning syscall fadvise64_64 not implemented :1364:2: warning: #warning syscall utimensat not implemented CALL /home/git/linux-mips/scripts/checksyscalls.sh :148:2: warning: #warning syscall time not implemented :424:2: warning: #warning syscall select not implemented :440:2: warning: #warning syscall uselib not implemented :856:2: warning: #warning syscall vfork not implemented :980:2: warning: #warning syscall getdents64 not implemented :1364:2: warning: #warning syscall utimensat not implemented Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- arch/mips/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/mips/Makefile b/arch/mips/Makefile index a68d462a415f..f450066b6241 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -709,3 +709,25 @@ archclean: CLEAN_FILES += vmlinux.32 \ vmlinux.64 \ vmlinux.ecoff + +quiet_cmd_syscalls_n32 = CALL-N32 $< + cmd_syscalls_n32 = $(CONFIG_SHELL) $< $(CC) $(c_flags) -mabi=n32 + +quiet_cmd_syscalls_o32 = CALL-O32 $< + cmd_syscalls_o32 = $(CONFIG_SHELL) $< $(CC) $(c_flags) -mabi=32 + +PHONY += missing-syscalls-n32 missing-syscalls-o32 + +missing-syscalls-n32: scripts/checksyscalls.sh FORCE + $(call cmd,syscalls_n32) + +missing-syscalls-o32: scripts/checksyscalls.sh FORCE + $(call cmd,syscalls_o32) + +archprepare: +ifdef CONFIG_MIPS32_N32 + $(Q)$(MAKE) $(build)=arch/mips missing-syscalls-n32 +endif +ifdef CONFIG_MIPS32_O32 + $(Q)$(MAKE) $(build)=arch/mips missing-syscalls-o32 +endif -- 2.20.1