X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=diskutil.c;h=dd8fc6a20b3aec09875823f416369743a897af3e;hp=1f2471be50470377c0acca7bdec3e441e5c1b8fa;hb=4f37732a580d7983467ea1ba11f963da4e8cf06e;hpb=17031c6df30913608de1f66ca952ed75dd1324be diff --git a/diskutil.c b/diskutil.c index 1f2471be..dd8fc6a2 100644 --- a/diskutil.c +++ b/diskutil.c @@ -8,6 +8,11 @@ #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 +302,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);