From bfcb9ad2f08c2d4acbb2c610a56feadbe360fb70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 29 Apr 2025 15:50:37 +0100 Subject: [PATCH] Fix tests with rebuild with GCC 15 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel P. Berrangé --- ...king-of-virQEMUCapsProbeHVF-function.patch | 31 +++++++++++++++++++ libvirt.spec | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 0001-Fix-mocking-of-virQEMUCapsProbeHVF-function.patch diff --git a/0001-Fix-mocking-of-virQEMUCapsProbeHVF-function.patch b/0001-Fix-mocking-of-virQEMUCapsProbeHVF-function.patch new file mode 100644 index 0000000..11cfdbb --- /dev/null +++ b/0001-Fix-mocking-of-virQEMUCapsProbeHVF-function.patch @@ -0,0 +1,31 @@ +From 5629ebcb4234fde10fd9468d5fc5dd4947ed8677 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= +Date: Tue, 29 Apr 2025 15:49:10 +0100 +Subject: [PATCH] Fix mocking of virQEMUCapsProbeHVF function +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +From: Daniel P. Berrangé + +Signed-off-by: Daniel P. Berrangé +--- + src/qemu/qemu_capabilities.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h +index ea7c14daa9..488a1a058e 100644 +--- a/src/qemu/qemu_capabilities.h ++++ b/src/qemu/qemu_capabilities.h +@@ -943,7 +943,7 @@ bool + virQEMUCapsGetKVMSupportsSecureGuest(virQEMUCaps *qemuCaps) G_NO_INLINE; + + bool +-virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps) G_NO_INLINE; ++virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps) G_NO_INLINE __attribute__((noipa)); + + virArch virQEMUCapsArchFromString(const char *arch); + const char *virQEMUCapsArchToString(virArch arch); +-- +2.49.0 + diff --git a/libvirt.spec b/libvirt.spec index 9a5221a..8fd5cb6 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -309,6 +309,7 @@ Patch: 0001-util-avoid-overflow-in-hextable-buffer.patch Patch: 0001-storage-stop-hardcoding-paths-for-mkfs-mount-umount.patch Patch: 0001-util-stop-hardcoding-numad-path.patch +Patch: 0001-Fix-mocking-of-virQEMUCapsProbeHVF-function.patch Requires: libvirt-daemon = %{version}-%{release} Requires: libvirt-daemon-config-network = %{version}-%{release} @@ -2698,6 +2699,7 @@ exit 0 * Tue Apr 29 2025 Daniel P. Berrangé - 11.0.0-2 - Fix location of mount, umount (rhbz #2359196) - Fix location of numad (rhbz #2359736) +- Fix tests on rebuild with latest GCC 15 * Fri Jan 17 2025 Cole Robinson - 11.0.0-1 - Update to version 11.0.0