smalloc: Remove Valgrind instrumentation
[fio.git] / eta.c
diff --git a/eta.c b/eta.c
index 0b795263325bbef5372cfb8a6760ed3b089da521..2d549ee9c8f4798154a1f3f9e515b6762cab0ebf 100644 (file)
--- a/eta.c
+++ b/eta.c
@@ -2,8 +2,12 @@
  * Status and ETA code
  */
 #include <unistd.h>
-#include <fcntl.h>
 #include <string.h>
+#ifdef CONFIG_VALGRIND_DEV
+#include <valgrind/drd.h>
+#else
+#define DRD_IGNORE_VAR(x) do { } while (0)
+#endif
 
 #include "fio.h"
 #include "lib/pow2.h"
@@ -668,6 +672,7 @@ void print_thread_status(void)
 
 void print_status_init(int thr_number)
 {
+       DRD_IGNORE_VAR(__run_str);
        __run_str[thr_number] = 'P';
        update_condensed_str(__run_str, run_str);
 }