diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c index 17993d82c..b4f1930b1 100644 --- a/lib/device/dev-io.c +++ b/lib/device/dev-io.c @@ -380,8 +380,10 @@ int dev_open_flags(struct device *dev, int flags, int direct, int quiet) return 0; } -#ifdef O_DIRECT_SUPPORT +#if defined(O_NOATIME) || defined(O_DIRECT_SUPPORT) opened: +#endif +#ifdef O_DIRECT_SUPPORT if (direct) dev->flags |= DEV_O_DIRECT_TESTED; #endif