]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuDomainGetUnplugTimeout: Add G_GNUC_NO_INLINE
authorPeter Krempa <pkrempa@redhat.com>
Thu, 23 Apr 2020 08:30:13 +0000 (10:30 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 23 Apr 2020 13:57:36 +0000 (15:57 +0200)
The function is mocked in qemuhotplugmock.so. Recent clang versions
decided to inline it so the mock stopped working resulting in
qemuhotplugtest wasting 15 seconds waiting for timeouts.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_hotplug.c

index 14654a17d719d105da34e99d504f38ebcb3c8d39..60d0729f1e225ddff259913acf84ddaa8a08e492 100644 (file)
@@ -5122,7 +5122,7 @@ qemuDomainResetDeviceRemoval(virDomainObjPtr vm)
 }
 
 
-unsigned long long
+unsigned long long G_GNUC_NO_INLINE
 qemuDomainGetUnplugTimeout(virDomainObjPtr vm)
 {
     if (qemuDomainIsPSeries(vm->def))