From 4f3cd8ff8f0214db7dd3b2508ac6146ca8b39dfb Mon Sep 17 00:00:00 2001 From: Petar Jovanovic Date: Tue, 9 May 2017 15:57:59 +0000 Subject: [PATCH] mips: reduce compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Compiler complained about warning: implicit declaration of function ‘vgPlain_prctl’ in coregrind/m_machine.c. Also, it complained about warning: no previous prototype for ‘vgSysWrap_mips_linux_sys_ptrace_before’ [-Wmissing-prototypes] warning: no previous prototype for ‘vgSysWrap_mips_linux_sys_ptrace_after’ [-Wmissing-prototypes] in coregrind/m_syswrap/syswrap-mips32-linux.c This change fixes those issues. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16345 --- coregrind/m_machine.c | 3 ++- coregrind/m_syswrap/syswrap-mips32-linux.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/coregrind/m_machine.c b/coregrind/m_machine.c index 97e70bb1a2..93bdd722f0 100644 --- a/coregrind/m_machine.c +++ b/coregrind/m_machine.c @@ -34,6 +34,7 @@ #include "pub_core_libcbase.h" #include "pub_core_libcfile.h" #include "pub_core_libcprint.h" +#include "pub_core_libcproc.h" #include "pub_core_mallocfree.h" #include "pub_core_machine.h" #include "pub_core_cpuid.h" @@ -1675,7 +1676,7 @@ Bool VG_(machine_get_hwcaps)( void ) } # if defined(VGP_mips32_linux) - Int fpmode = VG_(prctl)(VKI_PR_GET_FP_MODE); + Int fpmode = VG_(prctl)(VKI_PR_GET_FP_MODE, 0, 0, 0, 0); # else Int fpmode = -1; # endif diff --git a/coregrind/m_syswrap/syswrap-mips32-linux.c b/coregrind/m_syswrap/syswrap-mips32-linux.c index 708b979db6..3dd43ddbdd 100644 --- a/coregrind/m_syswrap/syswrap-mips32-linux.c +++ b/coregrind/m_syswrap/syswrap-mips32-linux.c @@ -411,6 +411,7 @@ DECL_TEMPLATE (mips_linux, sys_cacheflush); DECL_TEMPLATE (mips_linux, sys_set_thread_area); DECL_TEMPLATE (mips_linux, sys_pipe); DECL_TEMPLATE (mips_linux, sys_prctl); +DECL_TEMPLATE (mips_linux, sys_ptrace); PRE(sys_mmap2) { -- 2.47.2