From df70dca995e5593e27e13cf00311d961b4def0e2 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 24 Sep 2021 17:46:09 +0200 Subject: [PATCH] make: opened can be needed for either defines case Reported-by: adamboardman of gemian --- lib/device/dev-io.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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