diff --git a/ATTRIBUTE_UNUSED-is-defined-by-libxml2-2.14-which-sh.patch b/ATTRIBUTE_UNUSED-is-defined-by-libxml2-2.14-which-sh.patch new file mode 100644 index 0000000000000000000000000000000000000000..ec942e52081e964e08560259b6e7b47149ba0bf6 --- /dev/null +++ b/ATTRIBUTE_UNUSED-is-defined-by-libxml2-2.14-which-sh.patch @@ -0,0 +1,54 @@ +From 2ffa75b197d497c9cb722ea075c27d381ca55330 Mon Sep 17 00:00:00 2001 +From: lizixin <2271170409@qq.com> +Date: Tue, 16 Dec 2025 09:38:37 +0800 +Subject: [PATCH] ATTRIBUTE_UNUSED is defined by libxml2 < 2.14, which should + not be used + +--- + src/qemu/qemu_process.c | 4 ++-- + src/qemu/qemu_process.h | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c +index 4141ea813b..5bf14ed192 100644 +--- a/src/qemu/qemu_process.c ++++ b/src/qemu/qemu_process.c +@@ -2868,7 +2868,7 @@ qemuProcessSetMigthreadAffinity(qemuDomainObjPrivate *priv, + + + void +-qemuProcessHandleMigrationPid(qemuMonitor *mon ATTRIBUTE_UNUSED, ++qemuProcessHandleMigrationPid(qemuMonitor *mon __attribute__((unused)), + virDomainObj *vm, + int mpid) + { +@@ -2920,7 +2920,7 @@ qemuProcessHandleMigrationPid(qemuMonitor *mon ATTRIBUTE_UNUSED, + + + void +-qemuProcessHandleMigrationMultiFdPids(qemuMonitor *mon ATTRIBUTE_UNUSED, ++qemuProcessHandleMigrationMultiFdPids(qemuMonitor *mon __attribute__((unused)), + virDomainObj *vm, + int mpid) + { +diff --git a/src/qemu/qemu_process.h b/src/qemu/qemu_process.h +index 69a240e1e8..73c4f9e6f3 100644 +--- a/src/qemu/qemu_process.h ++++ b/src/qemu/qemu_process.h +@@ -258,11 +258,11 @@ unsigned char * virParseCPUList(int *cpumaplen, + const char *cpulist, + int maxcpu); + +-void qemuProcessHandleMigrationPid(qemuMonitor *mon ATTRIBUTE_UNUSED, ++void qemuProcessHandleMigrationPid(qemuMonitor *mon __attribute__((unused)), + virDomainObj *vm, + int mpid); + +-void qemuProcessHandleMigrationMultiFdPids(qemuMonitor *mon ATTRIBUTE_UNUSED, ++void qemuProcessHandleMigrationMultiFdPids(qemuMonitor *mon __attribute__((unused)), + virDomainObj *vm, + int mpid); + +-- +2.52.0.windows.1 + diff --git a/libvirt.spec b/libvirt.spec index 3530596258df1490d437c4e967f3773dfa811fcb..02de1226890c1d40282540d3cf71968a3c9ad4da 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -262,7 +262,7 @@ Summary: Library providing a simple virtualization API Name: libvirt Version: 9.10.0 -Release: 24 +Release: 25 License: LGPLv2+ URL: https://libvirt.org/ @@ -389,6 +389,7 @@ Patch0115: ch-Check-ACLs-before-parsing-the-whole-domain-XML.patch Patch0116: qemu-Check-ACLs-before-parsing-the-whole-domain-XML.patch Patch0117: qemu-snapshot-Set-umask-for-qemu-img-when-creating-e.patch Patch0118: ham-migration-bugfix-qemu_ham.c-contains-config.patch +Patch0119: ATTRIBUTE_UNUSED-is-defined-by-libxml2-2.14-which-sh.patch Requires: libvirt-daemon = %{version}-%{release} Requires: libvirt-daemon-config-network = %{version}-%{release} @@ -2680,6 +2681,9 @@ exit 0 %endif %changelog +* Tue Dec 16 2025 PengruiZhang - 9.10.0-25 +- ATTRIBUTE_UNUSED is defined by libxml2 < 2.14, which should not be used + * Mon Dec 8 2025 fanmingzhan - 9.10.0-24 - Fix ham migrate bug : qemu_ham.c add head file config.h