librbd: Do not instantiate TrimRequest template class
authorBoris Ranto <branto@redhat.com>
Thu, 7 Dec 2017 23:21:38 +0000 (00:21 +0100)
committerBernd Zeimetz <bzed@debian.org>
Fri, 5 Apr 2019 13:12:52 +0000 (14:12 +0100)
commitb103b851f8e1f61490f351db94dabe49b257afef
treee6ad22e2aeb45f74be428786011e93c6be8f777d
parent555a7b67770513f6547928afaee14882b3b242a6
librbd: Do not instantiate TrimRequest template class

We include TrimRequest.cc in librbd tests at two places:
 - operation/test_mock_TrimRequest.cc
 - operation/test_mock_ResizeRequest.cc

That causes linking errors when doing the builds because some of the
instantiated classes are defined twice.

We can fix this by not instantiating the template class in the
TrimReqeust.cc file when including it in the tests.

Signed-off-by: Boris Ranto <branto@redhat.com>
Gbp-Pq: Name armhf-ftbfs.patch
src/test/librbd/operation/test_mock_ResizeRequest.cc