]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips: reduce compiler warnings
authorPetar Jovanovic <mips32r2@gmail.com>
Tue, 9 May 2017 15:57:59 +0000 (15:57 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Tue, 9 May 2017 15:57:59 +0000 (15:57 +0000)
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
coregrind/m_syswrap/syswrap-mips32-linux.c

index 97e70bb1a2d7ed3bff075bc06cd9981b25eeef98..93bdd722f0f918836c095889e639435dba9e1145 100644 (file)
@@ -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
index 708b979db67544f5c38d2be6129e1dedd8b0f4a3..3dd43ddbdd0155cf2d11a3b6c8557eb6cefa39af 100644 (file)
@@ -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) 
 {