From 480f82847ad1fc7959f1fe5a90761a5a24550993 Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Wed, 8 Feb 2017 23:47:57 +0100 Subject: [PATCH] librbd: Include WorkQueue.h since we use it We use m_work_queue of type ContextWQ in handle_update function but we do not include common/WorkQueue.h that defines ContextWQ. This results in dereference of an incomplete type and causes build error in latest Fedora rawhide (future 26). Fixes: http://tracker.ceph.com/issues/18862 Signed-off-by: Boris Ranto --- src/librbd/Journal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librbd/Journal.h b/src/librbd/Journal.h index 635b3147e7f37..a7fa1a5e5c4af 100644 --- a/src/librbd/Journal.h +++ b/src/librbd/Journal.h @@ -11,6 +11,7 @@ #include "common/Cond.h" #include "common/Mutex.h" #include "common/Cond.h" +#include "common/WorkQueue.h" #include "journal/Future.h" #include "journal/JournalMetadataListener.h" #include "journal/ReplayEntry.h" @@ -23,7 +24,6 @@ #include #include -class ContextWQ; class SafeTimer; namespace journal { class Journaler; -- 2.39.5