From: Petar Jovanovic Date: Tue, 9 May 2017 15:57:59 +0000 (+0000) Subject: mips: reduce compiler warnings X-Git-Tag: svn/VALGRIND_3_13_0~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f3cd8ff8f0214db7dd3b2508ac6146ca8b39dfb;p=thirdparty%2Fvalgrind.git mips: reduce compiler warnings 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 --- 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) {