]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: fix compile error with CephContext declaration 35209/head
authorWillem Jan Withagen <wjw@digiware.nl>
Sat, 23 May 2020 14:19:07 +0000 (14:19 +0000)
committerWillem Jan Withagen <wjw@digiware.nl>
Sun, 24 May 2020 11:16:40 +0000 (11:16 +0000)
Clang complains:
/home/jenkins/workspace/ceph-master/src/librbd/plugin/Types.h:9:1: error: declaration conflicts with target of using declaration already in scope
struct CephContext;
^
/home/jenkins/workspace/ceph-master/src/include/common_fwd.h:10:9: note: target of using declaration
class CephContext;
^
/home/jenkins/workspace/ceph-master/src/include/common_fwd.h:22:24: note: using declaration
using TOPNSPC::common::CephContext;
^

fixes: https://github.com/ceph/ceph/pull/35158
tracker: https://tracker.ceph.com/issues/45668
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/librbd/plugin/Types.h

index 73f45099ff9ecf24ab3448fd2f417a659d85881d..df06f3a974606e627f9a82c1eb1ea3ffa7d0d8b9 100644 (file)
@@ -4,6 +4,7 @@
 #ifndef CEPH_LIBRBD_PLUGIN_TYPES_H
 #define CEPH_LIBRBD_PLUGIN_TYPES_H
 
+#include "include/common_fwd.h"
 #include "common/PluginRegistry.h"
 
 struct CephContext;