From: Boris Ranto Date: Wed, 8 Feb 2017 22:47:57 +0000 (+0100) Subject: librbd: Include WorkQueue.h since we use it X-Git-Tag: v11.2.1~189^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6269f152238b77b0d02e4ad865164a531541d6db;p=ceph.git 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 (cherry picked from commit 480f82847ad1fc7959f1fe5a90761a5a24550993) --- diff --git a/src/librbd/Journal.h b/src/librbd/Journal.h index 4b70b99eb8ab5..345310ebaa1ca 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;