From nobody Sat Feb 7 07:09:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1654692202941369.38569252925925; Wed, 8 Jun 2022 05:43:22 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-3-r09tA8c8Pt-CsKRalV5SVQ-1; Wed, 08 Jun 2022 08:43:19 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E675929DD9AD; Wed, 8 Jun 2022 12:43:16 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id CBC52492CA5; Wed, 8 Jun 2022 12:43:16 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 486B519378CD; Wed, 8 Jun 2022 12:43:16 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id B27D21947B92 for ; Wed, 8 Jun 2022 12:15:27 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 902A24328C9; Wed, 8 Jun 2022 12:15:27 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast07.extmail.prod.ext.rdu2.redhat.com [10.11.55.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8C2D1492C3B for ; Wed, 8 Jun 2022 12:15:27 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 712793C0CD41 for ; Wed, 8 Jun 2022 12:15:27 +0000 (UTC) Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-664-iCkEBGnuNiW0FIJZ--lG2A-1; Wed, 08 Jun 2022 08:15:22 -0400 Received: by mail-pg1-f176.google.com with SMTP id r71so18754280pgr.0 for ; Wed, 08 Jun 2022 05:15:22 -0700 (PDT) Received: from localhost (23.105.194.122.16clouds.com. [23.105.194.122]) by smtp.gmail.com with ESMTPSA id q12-20020a056a00150c00b0050dc762818dsm5081877pfu.103.2022.06.08.05.15.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 05:15:21 -0700 (PDT) X-MC-Unique: r09tA8c8Pt-CsKRalV5SVQ-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: iCkEBGnuNiW0FIJZ--lG2A-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ryfM04yOmoh1rhWGSj6bN+93QFgzrPEcb7gDd2nnYVc=; b=bq3pNTQN/i82RTCf1XgAvAbWav4VVMG8BK2+VIQGsCQc6EpZD603beErlLxT73XPcB JPI+iJlvZdw/CEM9X1/JvmEz06kTNp/oYUhazvzG/w8trtg8Ql3KBMF+MoFRrCznkiAG 4pDYr6uVd1eK8d1Oqn/gENu+hDJ8K139N1xsIbi+9bfmBntKUiJkdaXnxAuWvZpzxDFj F5B44nwb+l1nOihe/N06ibeOdjcSkLfwJt/5aGS81ASbY6lEzqYJo8EyWg3qKGNxEF4T aSvGX/uf5tJPEFye59ARDkw+4EOM9VVGQoCkl+qNoSNL8kFdzLZD6zLKYZYm2Wf3zjsZ jLFw== X-Gm-Message-State: AOAM532HBZYIHfxi68ZyD7zScL6zB318R4Spg07dNUCDgIhpprQBe/SW /Fm0fChRE6bxO1DtbXXgZ7ezhIainbgCog== X-Google-Smtp-Source: ABdhPJzVqG1a/9x+1C+vYcLAXIw+uhA4x8uTUtTIpmtzvLLNEgqF0tyki1JaxtPBFUKoKgSJMmyerA== X-Received: by 2002:a65:5385:0:b0:3fa:52e3:6468 with SMTP id x5-20020a655385000000b003fa52e36468mr30009151pgq.366.1654690521414; Wed, 08 Jun 2022 05:15:21 -0700 (PDT) From: Peng Liang To: libvir-list@redhat.com Subject: [PATCH v3 24/26] tools: Remove unused includes Date: Wed, 8 Jun 2022 20:13:12 +0800 Message-Id: <20220608121314.2993022-25-tcx4c70@gmail.com> In-Reply-To: <20220608121314.2993022-1-tcx4c70@gmail.com> References: <20220608121314.2993022-1-tcx4c70@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Liang Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1654692204981100002 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Peng Liang --- 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 - 27 files changed, 45 deletions(-) diff --git a/tools/virsh-checkpoint.c b/tools/virsh-checkpoint.c index 8ad37ece69..ee04418bc0 100644 --- a/tools/virsh-checkpoint.c +++ b/tools/virsh-checkpoint.c @@ -33,9 +33,7 @@ #include "viralloc.h" #include "virfile.h" #include "virsh-util.h" -#include "virstring.h" #include "virxml.h" -#include "conf/checkpoint_conf.h" #include "vsh-table.h" =20 /* Helper for checkpoint-create and checkpoint-create-as */ diff --git a/tools/virsh-completer-checkpoint.c b/tools/virsh-completer-che= ckpoint.c index b6d6c93e85..bdd3a4d850 100644 --- a/tools/virsh-completer-checkpoint.c +++ b/tools/virsh-completer-checkpoint.c @@ -21,10 +21,8 @@ #include =20 #include "virsh-completer-checkpoint.h" -#include "viralloc.h" #include "virsh-util.h" #include "virsh.h" -#include "virstring.h" =20 char ** virshCheckpointNameCompleter(vshControl *ctl, diff --git a/tools/virsh-completer-domain.c b/tools/virsh-completer-domain.c index d4c877cd04..b54baf3577 100644 --- a/tools/virsh-completer-domain.c +++ b/tools/virsh-completer-domain.c @@ -27,7 +27,6 @@ #include "virsh-domain-monitor.h" #include "virsh-util.h" #include "virsh.h" -#include "virstring.h" #include "virxml.h" #include "virperf.h" #include "virbitmap.h" diff --git a/tools/virsh-completer-host.c b/tools/virsh-completer-host.c index 68bc6cfe25..05a84a43bb 100644 --- a/tools/virsh-completer-host.c +++ b/tools/virsh-completer-host.c @@ -21,7 +21,6 @@ #include =20 #include "virsh-completer-host.h" -#include "viralloc.h" #include "virsh.h" #include "virstring.h" #include "virxml.h" diff --git a/tools/virsh-completer-interface.c b/tools/virsh-completer-inte= rface.c index 44ba35550a..72a32dcfe3 100644 --- a/tools/virsh-completer-interface.c +++ b/tools/virsh-completer-interface.c @@ -22,9 +22,7 @@ =20 #include "virsh-completer-interface.h" #include "virsh-util.h" -#include "viralloc.h" #include "virsh.h" -#include "virstring.h" =20 typedef const char * (*virInterfaceStringCallback)(virInterfacePtr iface); diff --git a/tools/virsh-completer-network.c b/tools/virsh-completer-networ= k.c index 839d71e961..f28d724ca8 100644 --- a/tools/virsh-completer-network.c +++ b/tools/virsh-completer-network.c @@ -25,7 +25,6 @@ #include "viralloc.h" #include "virsh-network.h" #include "virsh.h" -#include "virstring.h" =20 char ** virshNetworkNameCompleter(vshControl *ctl, diff --git a/tools/virsh-completer-nodedev.c b/tools/virsh-completer-nodede= v.c index 57544da15d..d743df460e 100644 --- a/tools/virsh-completer-nodedev.c +++ b/tools/virsh-completer-nodedev.c @@ -24,10 +24,8 @@ #include "virsh-util.h" #include "conf/node_device_conf.h" #include "conf/domain_conf.h" -#include "viralloc.h" #include "virsh-nodedev.h" #include "virsh.h" -#include "virstring.h" =20 char ** virshNodeDeviceNameCompleter(vshControl *ctl, diff --git a/tools/virsh-completer-nwfilter.c b/tools/virsh-completer-nwfil= ter.c index 9850dbba5d..3a0ddecead 100644 --- a/tools/virsh-completer-nwfilter.c +++ b/tools/virsh-completer-nwfilter.c @@ -22,9 +22,7 @@ =20 #include "virsh-completer-nwfilter.h" #include "virsh-util.h" -#include "viralloc.h" #include "virsh.h" -#include "virstring.h" =20 char ** virshNWFilterNameCompleter(vshControl *ctl, diff --git a/tools/virsh-completer-pool.c b/tools/virsh-completer-pool.c index 1a966d95b9..0600394411 100644 --- a/tools/virsh-completer-pool.c +++ b/tools/virsh-completer-pool.c @@ -23,10 +23,8 @@ #include "virsh-completer-pool.h" #include "virsh-util.h" #include "conf/storage_conf.h" -#include "viralloc.h" #include "virsh-pool.h" #include "virsh.h" -#include "virstring.h" =20 char ** virshStoragePoolNameCompleter(vshControl *ctl, diff --git a/tools/virsh-completer-secret.c b/tools/virsh-completer-secret.c index 396997244d..f31127d0ce 100644 --- a/tools/virsh-completer-secret.c +++ b/tools/virsh-completer-secret.c @@ -21,11 +21,9 @@ #include =20 #include "virsh-completer-secret.h" -#include "viralloc.h" #include "virsh-secret.h" #include "virsh-util.h" #include "virsh.h" -#include "virstring.h" =20 char ** virshSecretUUIDCompleter(vshControl *ctl, diff --git a/tools/virsh-completer-snapshot.c b/tools/virsh-completer-snaps= hot.c index 535841cf2e..c7974d715c 100644 --- a/tools/virsh-completer-snapshot.c +++ b/tools/virsh-completer-snapshot.c @@ -21,10 +21,8 @@ #include =20 #include "virsh-completer-snapshot.h" -#include "viralloc.h" #include "virsh-util.h" #include "virsh.h" -#include "virstring.h" =20 char ** virshSnapshotNameCompleter(vshControl *ctl, diff --git a/tools/virsh-completer-volume.c b/tools/virsh-completer-volume.c index a1ebadccac..9a80112e59 100644 --- a/tools/virsh-completer-volume.c +++ b/tools/virsh-completer-volume.c @@ -22,10 +22,8 @@ =20 #include "virsh-completer-volume.h" #include "virsh-util.h" -#include "viralloc.h" #include "virsh-pool.h" #include "virsh.h" -#include "virstring.h" #include "virsh-volume.h" =20 char ** diff --git a/tools/virsh-completer.c b/tools/virsh-completer.c index e5610d0fe8..d4defba86e 100644 --- a/tools/virsh-completer.c +++ b/tools/virsh-completer.c @@ -21,8 +21,6 @@ #include =20 #include "virsh-completer.h" -#include "viralloc.h" -#include "virstring.h" =20 /** * A completer callback is a function that accepts three arguments: diff --git a/tools/virsh-console.c b/tools/virsh-console.c index b8780c714d..13ee811a92 100644 --- a/tools/virsh-console.c +++ b/tools/virsh-console.c @@ -35,7 +35,6 @@ # include "virsh-console.h" # include "virsh-util.h" # include "virlog.h" -# include "virfile.h" # include "viralloc.h" # include "virthread.h" # include "virerror.h" diff --git a/tools/virsh-domain-event.c b/tools/virsh-domain-event.c index 2d6db5f881..9531a5435c 100644 --- a/tools/virsh-domain-event.c +++ b/tools/virsh-domain-event.c @@ -17,13 +17,11 @@ */ =20 #include -#include "virsh-domain-event.h" #include "virsh-util.h" =20 #include "internal.h" #include "viralloc.h" #include "virenum.h" -#include "virutil.h" #include "virtime.h" #include "virtypedparam.h" =20 diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 5c4a7d7b8d..31ed0d5b65 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -44,7 +44,6 @@ #include "virsh-console.h" #include "virsh-domain-monitor.h" #include "virsh-host.h" -#include "virerror.h" #include "virtime.h" #include "virtypedparam.h" #include "virxml.h" diff --git a/tools/virsh-nodedev.c b/tools/virsh-nodedev.c index 90066249af..1be912dd54 100644 --- a/tools/virsh-nodedev.c +++ b/tools/virsh-nodedev.c @@ -26,7 +26,6 @@ #include "internal.h" #include "viralloc.h" #include "virfile.h" -#include "virstring.h" #include "virtime.h" #include "conf/node_device_conf.h" #include "virenum.h" diff --git a/tools/virsh-pool.c b/tools/virsh-pool.c index 7e7a8d511f..5fdc78470b 100644 --- a/tools/virsh-pool.c +++ b/tools/virsh-pool.c @@ -27,7 +27,6 @@ #include "viralloc.h" #include "virfile.h" #include "conf/storage_conf.h" -#include "virstring.h" #include "virtime.h" #include "vsh-table.h" #include "virenum.h" diff --git a/tools/virsh-snapshot.c b/tools/virsh-snapshot.c index 7cd76f39e2..47a96e082b 100644 --- a/tools/virsh-snapshot.c +++ b/tools/virsh-snapshot.c @@ -31,7 +31,6 @@ #include "viralloc.h" #include "virfile.h" #include "virsh-util.h" -#include "virstring.h" #include "virxml.h" #include "conf/virdomainsnapshotobjlist.h" #include "vsh-table.h" diff --git a/tools/virsh-util.c b/tools/virsh-util.c index dc6ed7a86d..ef275a4369 100644 --- a/tools/virsh-util.c +++ b/tools/virsh-util.c @@ -22,7 +22,6 @@ =20 #include "virfile.h" #include "virstring.h" -#include "viralloc.h" #include "virxml.h" =20 static virDomainPtr diff --git a/tools/virsh.c b/tools/virsh.c index f7adb90be8..4a4ceef4ec 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -21,29 +21,22 @@ #include #include "virsh.h" =20 -#include #include #include #include #include -#include #include -#include =20 #include "internal.h" #include "virerror.h" -#include "virbuffer.h" #include "viralloc.h" #include "virfile.h" #include "virthread.h" -#include "vircommand.h" -#include "virtypedparam.h" #include "virstring.h" #include "virgettext.h" =20 #include "virsh-backup.h" #include "virsh-checkpoint.h" -#include "virsh-console.h" #include "virsh-domain.h" #include "virsh-domain-event.h" #include "virsh-domain-monitor.h" diff --git a/tools/virsh.h b/tools/virsh.h index d7a60b135d..f9841c8da2 100644 --- a/tools/virsh.h +++ b/tools/virsh.h @@ -23,8 +23,6 @@ #include =20 #include "internal.h" -#include "virerror.h" -#include "virthread.h" #include "virpolkit.h" #include "vsh.h" #include "virsh-completer.h" diff --git a/tools/virt-admin.c b/tools/virt-admin.c index e010763e21..952999ca3c 100644 --- a/tools/virt-admin.c +++ b/tools/virt-admin.c @@ -32,7 +32,6 @@ #include "virstring.h" #include "virthread.h" #include "virgettext.h" -#include "virtime.h" #include "virt-admin-completer.h" #include "vsh-table.h" #include "virenum.h" diff --git a/tools/virt-login-shell-helper.c b/tools/virt-login-shell-helpe= r.c index 0fb03da697..3f8757e496 100644 --- a/tools/virt-login-shell-helper.c +++ b/tools/virt-login-shell-helper.c @@ -21,7 +21,6 @@ =20 #include #include -#include #include =20 #include "internal.h" diff --git a/tools/vsh-table.c b/tools/vsh-table.c index aa2deb8c72..005cc564dd 100644 --- a/tools/vsh-table.c +++ b/tools/vsh-table.c @@ -22,7 +22,6 @@ #include "vsh-table.h" =20 #include -#include #include #include =20 diff --git a/tools/vsh.c b/tools/vsh.c index 499794c8fc..0066504ebe 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -26,7 +26,6 @@ #include #include #include -#include #include =20 #if WITH_READLINE diff --git a/tools/vsh.h b/tools/vsh.h index 663dc1ffce..a43660b63d 100644 --- a/tools/vsh.h +++ b/tools/vsh.h @@ -26,7 +26,6 @@ #endif =20 #include "internal.h" -#include "virerror.h" #include "virthread.h" =20 #define VIR_FROM_THIS VIR_FROM_NONE --=20 2.36.1