]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
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)
commitcbbc8465e0ce850cfa37eadb4734d5a63ec3035d
treee2e826ed55c3d165a93c007f8c31570cc94a6842
parent1efa1a796bc2b75e6d1edd4c413eceb465951cda
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 <wjw@digiware.nl>
src/librbd/plugin/Types.h