]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librbd/crypto: Fixup include order to prevent implicit definitions 38081/head
authorWillem Jan Withagen <wjw@digiware.nl>
Sat, 14 Nov 2020 17:11:05 +0000 (18:11 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Sat, 14 Nov 2020 17:11:05 +0000 (18:11 +0100)
commit8dc9344f9722b108e894225096073552b2b9bab1
treef7fe34f96581cd10b2115fde65a0dca553ad0a70
parent364e385a041aea68909d724410917c190a4dd3a5
test/librbd/crypto: Fixup include order to prevent implicit definitions

Clang complains a lot, part of it:
```
/home/jenkins/workspace/ceph-master-compile/src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc:35:8: error: explicit specialization of 'librbd::io::CopyupRequest<librbd::MockImageCtx>' after instantiation
struct CopyupRequest<librbd::MockImageCtx> {
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jenkins/workspace/ceph-master-compile/src/librbd/io/ObjectRequest.cc:560:10: note: implicit instantiation first required here
  if (it == image_ctx->copyup_list.end()) {
         ^
/home/jenkins/workspace/ceph-master-compile/src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc:54:32: error: template specialization requires 'template<>'
        librbd::MockImageCtx>::s_instance = nullptr;
```

fixes: https://github.com/ceph/ceph/pull/37916
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc