X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=diskutil.c;h=b973120c1abc89b7bea66698a0b38e47315858f3;hp=1f2471be50470377c0acca7bdec3e441e5c1b8fa;hb=3d2d14bcb844e72809192311369a642c5d415472;hpb=971caeb177d3bc4f65fa31381bbfb83710bfc690 diff --git a/diskutil.c b/diskutil.c index 1f2471be..b973120c 100644 --- a/diskutil.c +++ b/diskutil.c @@ -1,13 +1,15 @@ #include #include -#include #include #include #include #include #include -#include -#include +#ifdef CONFIG_VALGRIND_DEV +#include +#else +#define DRD_IGNORE_VAR(x) do { } while (0) +#endif #include "fio.h" #include "smalloc.h" @@ -297,6 +299,7 @@ static struct disk_util *disk_util_add(struct thread_data *td, int majdev, if (!du) return NULL; + DRD_IGNORE_VAR(du->users); memset(du, 0, sizeof(*du)); INIT_FLIST_HEAD(&du->list); l = snprintf(du->path, sizeof(du->path), "%s/stat", path);