engines/sg: Make I/O error messages more informative
[fio.git] / engines / falloc.c
index 17a901ad93f54e08802d88260d0c48a6bde9070f..bb3ac85045b2f16fd650abe2c2081371acd6f2c1 100644 (file)
@@ -9,11 +9,7 @@
  *
  */
 #include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/uio.h>
 #include <errno.h>
-#include <assert.h>
 #include <fcntl.h>
 
 #include "../fio.h"
@@ -23,7 +19,7 @@
  * generic_open_file is not appropriate because does not allow to perform
  * TRIM in to file
  */
-int open_file(struct thread_data *td, struct fio_file *f)
+static int open_file(struct thread_data *td, struct fio_file *f)
 {
        int from_hash = 0;