This series are the v3 of: https://listman.redhat.com/archives/libvir-list/2022-May/231132.html. And this version passes the pipeline in GitLab :) (https://gitlab.com/tcx4c70/libvirt/-/pipelines/558476177).
v2 -> v3: 1. Stop removing "internal.h"; [Ján Tomko] 2. Remove Patch 09, 15, 20, 21, and 23 of v2 since they have been merged; 3. Add Patch 26 (remove some unused includes in lxc); v1 -> v2: 1. Fix build failure on many plantforms; 2. Fix my name in 'From'; 3. Remove a few more unused includes; Peng Liang (26): access: Remove unused includes admin: Remove unused includes ch: Remove unused includes conf: Remove unused includes cpu: Remove unused includes esx: Remove unused includes hyperv: Remove unused includes hypvervisor: Remove unused includes libxl: Remove unused includes locking: Remove unused includes logging: Remove unused includes network: Remove unused includes node_device: Remove unused includes openvz: Remove unused includes qemu: Remove unused includes remote: Remove unused includes rpc: Remove unused includes storage: Remove unused includes util: Remove unused includes vbox: Remove unused includes vmware: Remove unused includes vmx: Remove unused includes test_driver: Remove unused includes tools: Remove unused includes tests: Remove unused includes lxc: Remove unused includes src/access/viraccessdriver.h | 1 - src/access/viraccessdriverpolkit.c | 4 ---- src/access/viraccessdriverstack.c | 1 - src/access/viraccessmanager.h | 1 - src/admin/admin_server.c | 4 ---- src/admin/admin_server.h | 1 - src/admin/admin_server_dispatch.c | 3 --- src/admin/libvirt-admin.c | 2 -- src/ch/ch_conf.c | 1 - src/ch/ch_domain.c | 1 - src/ch/ch_driver.c | 7 ------- src/ch/ch_monitor.c | 2 -- src/ch/ch_process.c | 2 -- src/conf/backup_conf.c | 3 --- src/conf/capabilities.c | 1 - src/conf/capabilities.h | 2 -- src/conf/checkpoint_conf.c | 4 ---- src/conf/cpu_conf.c | 2 -- src/conf/cpu_conf.h | 1 - src/conf/device_conf.c | 2 -- src/conf/device_conf.h | 1 - src/conf/domain_addr.c | 1 - src/conf/domain_audit.c | 1 - src/conf/domain_capabilities.c | 2 -- src/conf/domain_conf.c | 4 ---- src/conf/domain_conf.h | 1 - src/conf/domain_event.c | 2 -- src/conf/domain_nwfilter.c | 2 -- src/conf/domain_validate.c | 1 - src/conf/interface_conf.c | 4 ---- src/conf/interface_conf.h | 1 - src/conf/moment_conf.c | 2 -- src/conf/netdev_bandwidth_conf.c | 1 - src/conf/netdev_vport_profile_conf.c | 1 - src/conf/network_conf.c | 2 -- src/conf/network_conf.h | 2 -- src/conf/network_event.h | 1 - src/conf/networkcommon_conf.c | 3 --- src/conf/networkcommon_conf.h | 1 - src/conf/node_device_conf.c | 1 - src/conf/node_device_conf.h | 1 - src/conf/node_device_event.h | 1 - src/conf/node_device_util.c | 1 - src/conf/nwfilter_conf.c | 2 -- src/conf/nwfilter_conf.h | 1 - src/conf/nwfilter_ipaddrmap.c | 3 --- src/conf/nwfilter_params.c | 2 -- src/conf/nwfilter_params.h | 1 - src/conf/object_event.c | 4 ---- src/conf/object_event.h | 2 -- src/conf/secret_conf.c | 3 --- src/conf/secret_event.h | 1 - src/conf/snapshot_conf.c | 8 -------- src/conf/storage_adapter_conf.c | 1 - src/conf/storage_capabilities.c | 1 - src/conf/storage_conf.c | 4 ---- src/conf/storage_conf.h | 3 --- src/conf/storage_encryption_conf.c | 3 --- src/conf/storage_event.h | 1 - src/conf/virchrdev.c | 1 - src/conf/virdomaincheckpointobjlist.c | 1 - src/conf/virdomaincheckpointobjlist.h | 1 - src/conf/virdomainmomentobjlist.c | 5 ----- src/conf/virdomainobjlist.c | 2 -- src/conf/virdomainsnapshotobjlist.c | 2 -- src/conf/virdomainsnapshotobjlist.h | 1 - src/conf/virinterfaceobj.c | 1 - src/conf/virnetworkportdef.c | 2 -- src/conf/virnetworkportdef.h | 1 - src/conf/virnodedeviceobj.c | 1 - src/conf/virnwfilterbindingdef.c | 1 - src/conf/virnwfilterbindingobj.c | 4 ---- src/conf/virsecretobj.h | 1 - src/conf/virstorageobj.c | 1 - src/conf/virstorageobj.h | 2 -- src/cpu/cpu.c | 3 --- src/cpu/cpu.h | 1 - src/cpu/cpu_arm.c | 1 - src/cpu/cpu_map.c | 2 -- src/cpu/cpu_ppc64.c | 1 - src/cpu/cpu_s390.c | 2 -- src/cpu/cpu_x86.c | 1 - src/esx/esx_driver.c | 1 - src/esx/esx_interface_driver.c | 6 ------ src/esx/esx_network_driver.c | 2 -- src/esx/esx_private.h | 2 -- src/esx/esx_storage_backend_iscsi.c | 2 -- src/esx/esx_storage_backend_vmfs.c | 2 -- src/esx/esx_storage_driver.c | 2 -- src/esx/esx_stream.c | 1 - src/esx/esx_util.c | 3 --- src/esx/esx_vi.h | 1 - src/esx/esx_vi_methods.c | 2 -- src/esx/esx_vi_types.c | 1 - src/hyperv/hyperv_private.h | 2 -- src/hyperv/hyperv_util.c | 3 --- src/hypervisor/domain_driver.h | 1 - src/hypervisor/virhostdev.c | 2 -- src/libxl/libxl_capabilities.c | 1 - src/libxl/libxl_capabilities.h | 2 -- src/libxl/libxl_conf.c | 3 --- src/libxl/libxl_conf.h | 2 -- src/libxl/libxl_domain.c | 1 - src/libxl/libxl_domain.h | 2 -- src/libxl/libxl_driver.c | 3 --- src/libxl/libxl_logger.c | 2 -- src/libxl/libxl_migration.c | 3 --- src/libxl/xen_xl.c | 1 - src/libxl/xen_xl.h | 1 - src/libxl/xen_xm.c | 1 - src/locking/domain_lock.c | 3 --- src/locking/domain_lock.h | 1 - src/locking/lock_daemon.c | 2 -- src/locking/lock_daemon_config.c | 4 ---- src/locking/lock_daemon_dispatch.c | 1 - src/locking/lock_driver_lockd.c | 1 - src/locking/lock_driver_nop.c | 2 -- src/locking/lock_manager.c | 1 - src/locking/sanlock_helper.c | 2 -- src/logging/log_daemon.c | 5 ----- src/logging/log_daemon_config.c | 4 ---- src/logging/log_daemon_dispatch.c | 1 - src/logging/log_handler.c | 1 - src/logging/log_manager.c | 1 - src/lxc/lxc_cgroup.c | 3 --- src/lxc/lxc_cgroup.h | 1 - src/lxc/lxc_conf.c | 1 - src/lxc/lxc_conf.h | 4 ---- src/lxc/lxc_container.c | 2 -- src/lxc/lxc_container.h | 1 - src/lxc/lxc_controller.c | 4 ---- src/lxc/lxc_domain.c | 2 -- src/lxc/lxc_driver.c | 4 ---- src/lxc/lxc_fuse.c | 1 - src/lxc/lxc_monitor.c | 2 -- src/lxc/lxc_native.c | 1 - src/lxc/lxc_process.c | 4 ---- src/network/bridge_driver.c | 5 ----- src/network/bridge_driver.h | 2 -- src/network/bridge_driver_linux.c | 1 - src/network/leaseshelper.c | 3 --- src/node_device/node_device_driver.c | 3 --- src/node_device/node_device_udev.c | 3 --- src/openvz/openvz_conf.c | 1 - src/openvz/openvz_util.c | 1 - src/qemu/qemu_agent.c | 2 -- src/qemu/qemu_alias.c | 1 - src/qemu/qemu_alias.h | 2 -- src/qemu/qemu_backup.c | 5 ----- src/qemu/qemu_block.c | 1 - src/qemu/qemu_block.h | 1 - src/qemu/qemu_blockjob.c | 2 -- src/qemu/qemu_capabilities.c | 6 ------ src/qemu/qemu_capabilities.h | 2 -- src/qemu/qemu_cgroup.c | 7 ------- src/qemu/qemu_cgroup.h | 2 -- src/qemu/qemu_checkpoint.c | 3 --- src/qemu/qemu_checkpoint.h | 1 - src/qemu/qemu_command.c | 7 ------- src/qemu/qemu_command.h | 4 ---- src/qemu/qemu_conf.c | 5 ----- src/qemu/qemu_conf.h | 7 ------- src/qemu/qemu_dbus.c | 3 --- src/qemu/qemu_domain.c | 6 ------ src/qemu/qemu_domain.h | 3 --- src/qemu/qemu_domain_address.h | 2 -- src/qemu/qemu_driver.c | 10 ---------- src/qemu/qemu_extdevice.c | 5 ----- src/qemu/qemu_firmware.c | 1 - src/qemu/qemu_hostdev.c | 5 ----- src/qemu/qemu_hostdev.h | 1 - src/qemu/qemu_hotplug.c | 4 ---- src/qemu/qemu_hotplug.h | 1 - src/qemu/qemu_interface.c | 1 - src/qemu/qemu_interface.h | 1 - src/qemu/qemu_interop_config.c | 3 --- src/qemu/qemu_migration.c | 5 ----- src/qemu/qemu_migration_cookie.c | 1 - src/qemu/qemu_migration_cookie.h | 1 - src/qemu/qemu_migration_params.c | 2 -- src/qemu/qemu_migration_params.h | 2 -- src/qemu/qemu_monitor.c | 2 -- src/qemu/qemu_monitor.h | 2 -- src/qemu/qemu_monitor_json.c | 4 ---- src/qemu/qemu_monitor_json.h | 1 - src/qemu/qemu_monitor_text.c | 2 -- src/qemu/qemu_namespace.c | 1 - src/qemu/qemu_namespace.h | 1 - src/qemu/qemu_process.c | 2 -- src/qemu/qemu_process.h | 1 - src/qemu/qemu_qapi.c | 2 -- src/qemu/qemu_saveimage.c | 2 -- src/qemu/qemu_saveimage.h | 2 -- src/qemu/qemu_security.h | 2 -- src/qemu/qemu_shim.c | 1 - src/qemu/qemu_slirp.c | 3 --- src/qemu/qemu_snapshot.c | 4 ---- src/qemu/qemu_snapshot.h | 1 - src/qemu/qemu_tpm.c | 5 ----- src/qemu/qemu_validate.h | 1 - src/qemu/qemu_vhost_user.c | 1 - src/qemu/qemu_vhost_user.h | 2 -- src/qemu/qemu_vhost_user_gpu.c | 3 --- src/qemu/qemu_vhost_user_gpu.h | 1 - src/remote/remote_daemon.c | 3 --- src/remote/remote_daemon.h | 1 - src/remote/remote_daemon_config.c | 1 - src/remote/remote_daemon_dispatch.c | 5 ----- src/remote/remote_daemon_dispatch.h | 1 - src/remote/remote_daemon_stream.c | 1 - src/remote/remote_driver.c | 2 -- src/rpc/virkeepalive.c | 3 --- src/rpc/virnetclient.c | 1 - src/rpc/virnetclient.h | 1 - src/rpc/virnetclientprogram.h | 1 - src/rpc/virnetclientstream.c | 1 - src/rpc/virnetclientstream.h | 1 - src/rpc/virnetdaemon.c | 2 -- src/rpc/virnetdaemon.h | 3 --- src/rpc/virnetmessage.c | 1 - src/rpc/virnetsaslcontext.c | 3 --- src/rpc/virnetserver.c | 1 - src/rpc/virnetserver.h | 1 - src/rpc/virnetserverclient.c | 1 - src/rpc/virnetserverprogram.h | 1 - src/rpc/virnetserverservice.h | 1 - src/rpc/virnetsocket.c | 1 - src/rpc/virnetsshsession.c | 1 - src/storage/parthelper.c | 1 - src/storage/storage_backend.c | 3 --- src/storage/storage_backend_fs.c | 1 - src/storage/storage_backend_gluster.c | 1 - src/storage/storage_backend_iscsi.c | 4 ---- src/storage/storage_backend_iscsi_direct.c | 2 -- src/storage/storage_backend_mpath.c | 1 - src/storage/storage_backend_rbd.c | 1 - src/storage/storage_backend_scsi.c | 3 --- src/storage/storage_backend_vstorage.c | 2 -- src/storage/storage_driver.c | 2 -- src/storage/storage_util.c | 3 --- src/storage/storage_util.h | 1 - src/test/test_driver.c | 2 -- src/util/iohelper.c | 3 --- src/util/virarptable.c | 2 -- src/util/virauth.c | 1 - src/util/virauthconfig.c | 1 - src/util/virbpf.c | 1 - src/util/virbuffer.c | 2 -- src/util/vircgroup.c | 3 --- src/util/vircgroupv2devices.c | 1 - src/util/virconf.c | 1 - src/util/vircrypto.c | 2 -- src/util/virdnsmasq.c | 2 -- src/util/virebtables.c | 3 --- src/util/virenum.c | 1 - src/util/virerror.c | 1 - src/util/vireventglib.c | 1 - src/util/virfcp.c | 2 -- src/util/virfdstream.c | 1 - src/util/virfilecache.c | 2 -- src/util/virfirewall.c | 1 - src/util/virfirmware.c | 1 - src/util/virhook.c | 2 -- src/util/virhostcpu.c | 2 -- src/util/virhostmem.c | 2 -- src/util/virhostuptime.c | 1 - src/util/viridentity.c | 3 --- src/util/virinitctl.c | 3 --- src/util/viriptables.c | 6 ------ src/util/viriscsi.c | 2 -- src/util/virjson.c | 1 - src/util/virkmod.c | 1 - src/util/virlease.c | 2 -- src/util/virlockspace.c | 1 - src/util/virmacaddr.c | 1 - src/util/virmacmap.c | 2 -- src/util/virnetdevbandwidth.c | 1 - src/util/virnetdevbridge.c | 2 -- src/util/virnetdevmacvlan.c | 2 -- src/util/virnetdevmacvlan.h | 2 -- src/util/virnetdevmidonet.c | 1 - src/util/virnetdevtap.c | 1 - src/util/virnetdevveth.c | 2 -- src/util/virnetdevvlan.c | 1 - src/util/virnetlink.c | 1 - src/util/virnvme.c | 1 - src/util/virobject.c | 2 -- src/util/virpci.c | 1 - src/util/virpcivpd.c | 1 - src/util/virperf.c | 2 -- src/util/virpidfile.c | 1 - src/util/virpolkit.c | 2 -- src/util/virportallocator.c | 3 --- src/util/virqemu.c | 2 -- src/util/virrandom.c | 3 --- src/util/virresctrl.h | 1 - src/util/virrotatingfile.c | 1 - src/util/virscsivhost.c | 1 - src/util/virseclabel.c | 2 -- src/util/virsecret.c | 1 - src/util/virsocketaddr.c | 2 -- src/util/virstoragefile.c | 4 ---- src/util/virtpm.c | 1 - src/util/virutil.c | 2 -- src/util/viruuid.c | 3 --- src/vbox/vbox_XPCOMCGlue.c | 3 --- src/vbox/vbox_driver.c | 2 -- src/vbox/vbox_network.c | 2 -- src/vbox/vbox_storage.c | 3 --- src/vbox/vbox_tmpl.c | 1 - src/vmware/vmware_conf.c | 1 - src/vmware/vmware_driver.c | 1 - src/vmx/vmx.c | 1 - src/vmx/vmx.h | 1 - tests/commandtest.c | 2 -- tests/cputest.c | 2 -- tests/domainconftest.c | 2 -- tests/esxutilstest.c | 1 - tests/eventtest.c | 2 -- tests/fchosttest.c | 1 - tests/fdstreamtest.c | 3 --- tests/genericxml2xmltest.c | 1 - tests/interfacexml2xmltest.c | 2 -- tests/libxlmock.c | 2 -- tests/libxlxml2domconfigtest.c | 5 ----- tests/lxcxml2xmltest.c | 1 - tests/networkxml2conftest.c | 2 -- tests/networkxml2firewalltest.c | 2 -- tests/networkxml2xmltest.c | 2 -- tests/networkxml2xmlupdatetest.c | 2 -- tests/nodedevmdevctltest.c | 1 - tests/nodedevxml2xmltest.c | 2 -- tests/nssmock.c | 2 -- tests/nsstest.c | 1 - tests/nwfilterebiptablestest.c | 1 - tests/nwfilterxml2firewalltest.c | 1 - tests/nwfilterxml2xmltest.c | 5 ----- tests/objecteventtest.c | 3 --- tests/openvzutilstest.c | 2 -- tests/qemuagenttest.c | 2 -- tests/qemublocktest.c | 4 ---- tests/qemucapsprobemock.c | 1 - tests/qemucommandutiltest.c | 1 - tests/qemucpumock.c | 1 - tests/qemudomaincheckpointxml2xmltest.c | 2 -- tests/qemudomainsnapshotxml2xmltest.c | 2 -- tests/qemuhotplugmock.c | 1 - tests/qemuhotplugtest.c | 3 --- tests/qemumemlocktest.c | 2 -- tests/qemumigparamstest.c | 1 - tests/qemumonitorjsontest.c | 2 -- tests/qemumonitortestutils.c | 2 -- tests/qemumonitortestutils.h | 1 - tests/qemusecuritymock.c | 2 -- tests/qemuxml2argvmock.c | 6 ------ tests/qemuxml2argvtest.c | 8 -------- tests/qemuxml2xmltest.c | 3 --- tests/scsihosttest.c | 2 -- tests/seclabeltest.c | 1 - tests/securityselinuxhelper.c | 1 - tests/securityselinuxlabeltest.c | 2 -- tests/securityselinuxtest.c | 3 --- tests/sockettest.c | 1 - tests/storagebackendsheepdogtest.c | 1 - tests/storagepoolxml2argvtest.c | 3 --- tests/storagepoolxml2xmltest.c | 2 -- tests/storagevolxml2argvtest.c | 3 --- tests/storagevolxml2xmltest.c | 2 -- tests/sysinfotest.c | 1 - tests/testutils.c | 4 ---- tests/testutils.h | 1 - tests/testutilslxc.c | 1 - tests/testutilslxc.h | 2 -- tests/testutilsqemu.c | 1 - tests/utiltest.c | 1 - tests/virauthconfigtest.c | 2 -- tests/virbuftest.c | 2 -- tests/vircaps2xmltest.c | 1 - tests/vircgroupmock.c | 2 -- tests/vircgrouptest.c | 1 - tests/virconftest.c | 1 - tests/virdriverconnvalidatetest.c | 2 -- tests/virdrivermoduletest.c | 2 -- tests/virfilemock.c | 2 -- tests/virfiletest.c | 1 - tests/virfilewrapper.c | 2 -- tests/virfirewalltest.c | 1 - tests/virhostcputest.c | 1 - tests/viridentitytest.c | 4 ---- tests/virkeycodetest.c | 4 ---- tests/virkmodtest.c | 1 - tests/virlockspacetest.c | 2 -- tests/virmigtest.c | 1 - tests/virmockstathelpers.c | 1 - tests/virnetdevmock.c | 1 - tests/virnetdevtest.c | 2 -- tests/virnetmessagetest.c | 2 -- tests/virnetsockettest.c | 1 - tests/virnettlscontexttest.c | 5 ----- tests/virnettlssessiontest.c | 4 ---- tests/virnetworkportxml2xmltest.c | 1 - tests/virnumamock.c | 3 --- tests/virnwfilterbindingxml2xmltest.c | 3 --- tests/virpcimock.c | 1 - tests/virportallocatortest.c | 3 --- tests/virrandommock.c | 1 - tests/virschematest.c | 2 -- tests/virshtest.c | 2 -- tests/virstoragetest.c | 3 --- tests/virstorageutiltest.c | 3 --- tests/virstringtest.c | 3 --- tests/virtestmock.c | 2 -- tests/virtimetest.c | 2 -- tests/viruritest.c | 1 - tests/virusbmock.c | 3 --- tests/virusbtest.c | 2 -- tests/vmx2xmltest.c | 2 -- tests/vshtabletest.c | 1 - tests/xlconfigtest.c | 1 - tests/xmconfigtest.c | 2 -- tests/xml2vmxtest.c | 1 - tools/virsh-checkpoint.c | 2 -- tools/virsh-completer-checkpoint.c | 2 -- tools/virsh-completer-domain.c | 1 - tools/virsh-completer-host.c | 1 - tools/virsh-completer-interface.c | 2 -- tools/virsh-completer-network.c | 1 - tools/virsh-completer-nodedev.c | 2 -- tools/virsh-completer-nwfilter.c | 2 -- tools/virsh-completer-pool.c | 2 -- tools/virsh-completer-secret.c | 2 -- tools/virsh-completer-snapshot.c | 2 -- tools/virsh-completer-volume.c | 2 -- tools/virsh-completer.c | 2 -- tools/virsh-console.c | 1 - tools/virsh-domain-event.c | 2 -- tools/virsh-domain.c | 1 - tools/virsh-nodedev.c | 1 - tools/virsh-pool.c | 1 - tools/virsh-snapshot.c | 1 - tools/virsh-util.c | 1 - tools/virsh.c | 7 ------- tools/virsh.h | 2 -- tools/virt-admin.c | 1 - tools/virt-login-shell-helper.c | 1 - tools/vsh-table.c | 1 - tools/vsh.c | 1 - tools/vsh.h | 1 - 448 files changed, 905 deletions(-) -- 2.36.1