From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-59.mta0.migadu.com (out-59.mta0.migadu.com [91.218.175.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 420742D65E for ; Tue, 20 Jun 2023 16:34:14 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1687278853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mvp/mFxFyvb35RdjE1h0fvpetbuou1NsaTCoVuUvxG8=; b=TdaNnNgwfsuCGKVZ62YRSHUk7cvlUwaCf5SaahkFa5BWeKEW5smsJzxp41ve7FOiqiBsCw TpmHh9EUQAty37LvsNmeigvXbPUpWKskS1fGAuJSxeaU+lFJbA9gzDDxCgKGJlR3lZFCZN 8CFLl009CYrchadYthK77dFjgdDAL5s= From: Oliver Upton To: kvmarm@lists.linux.dev Cc: kvm@vger.kernel.org, Marc Zyngier , James Morse , Suzuki K Poulose , Zenghui Yu , Will Deacon , Julien Thierry , Salil Mehta , Oliver Upton Subject: [PATCH v2 01/20] update_headers: Use a list for arch-generic headers Date: Tue, 20 Jun 2023 11:33:34 -0500 Message-ID: <20230620163353.2688567-2-oliver.upton@linux.dev> In-Reply-To: <20230620163353.2688567-1-oliver.upton@linux.dev> References: <20230620163353.2688567-1-oliver.upton@linux.dev> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Until now, all of the virtio header names are stuffed in a list and iteratively copied from the kernel directory. Repurpose this as a list of arch-generic headers, adding kvm.h to the bunch. While at it, spread out the definition to have a single element per line, making it easier to insert elements alphabetically in the future. Signed-off-by: Oliver Upton --- util/update_headers.sh | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/util/update_headers.sh b/util/update_headers.sh index 789e2a4..4c1be7e 100755 --- a/util/update_headers.sh +++ b/util/update_headers.sh @@ -9,10 +9,20 @@ set -ue -VIRTIO_LIST="virtio_9p.h virtio_balloon.h virtio_blk.h virtio_config.h \ - virtio_console.h virtio_ids.h virtio_mmio.h virtio_net.h \ - virtio_pci.h virtio_ring.h virtio_rng.h virtio_scsi.h \ - virtio_vsock.h" +GENERIC_LIST="kvm.h \ + virtio_9p.h \ + virtio_balloon.h \ + virtio_blk.h \ + virtio_config.h \ + virtio_console.h \ + virtio_ids.h \ + virtio_mmio.h \ + virtio_net.h \ + virtio_pci.h \ + virtio_ring.h \ + virtio_rng.h \ + virtio_scsi.h \ + virtio_vsock.h" if [ "$#" -ge 1 ] then @@ -28,9 +38,7 @@ then exit 1 fi -cp -- "$LINUX_ROOT/include/uapi/linux/kvm.h" include/linux - -for header in $VIRTIO_LIST +for header in $GENERIC_LIST do cp -- "$LINUX_ROOT/include/uapi/linux/$header" include/linux done -- 2.41.0.162.gfafddb0af9-goog