Staticize pmemblk ioengine_ops
[fio.git] / engines / pmemblk.c
index 6d19864ae0dbf8d3b884e1f4743ba92a0bf61854..5439da055f29aaecd7f706dbef85b24487468aa1 100644 (file)
@@ -475,14 +475,14 @@ static int fio_pmemblk_unlink_file(struct thread_data *td, struct fio_file *f)
 
        pmb_parse_path(f->file_name, &path, &bsize, &fsize);
        if (!path)
-               return 1;
+               return ENOENT;
 
        unlink(path);
        free(path);
        return 0;
 }
 
-struct ioengine_ops ioengine = {
+static struct ioengine_ops ioengine = {
        .name = "pmemblk",
        .version = FIO_IOOPS_VERSION,
        .queue = fio_pmemblk_queue,