From cbbc8465e0ce850cfa37eadb4734d5a63ec3035d Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Sat, 23 May 2020 14:19:07 +0000 Subject: [PATCH] librbd: fix compile error with CephContext declaration 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 --- src/librbd/plugin/Types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librbd/plugin/Types.h b/src/librbd/plugin/Types.h index 73f45099ff9ec..df06f3a974606 100644 --- a/src/librbd/plugin/Types.h +++ b/src/librbd/plugin/Types.h @@ -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; -- 2.39.5