From patchwork Fri May 26 22:16:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Upton X-Patchwork-Id: 13257367 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93856C77B7C for ; Fri, 26 May 2023 22:17:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244340AbjEZWR1 (ORCPT ); Fri, 26 May 2023 18:17:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229933AbjEZWR0 (ORCPT ); Fri, 26 May 2023 18:17:26 -0400 Received: from out-32.mta0.migadu.com (out-32.mta0.migadu.com [IPv6:2001:41d0:1004:224b::20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 734B183 for ; Fri, 26 May 2023 15:17:25 -0700 (PDT) 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=1685139443; 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=OlbJvusYmkmO20ad97kpBo7krR3hJYWNzOkeakE8S4Y=; b=h2wuDuMa+d/+4dgqq0+7e0fbErG//k2FNZt+IcwoERsGZcGaoVcMQMzKGeg4T/mgCcsp7s 5O66foxLO7k3HN0Cgw7PMmEP+2YatMeVPe3rVuS3Uj4vI1KJlS4zJskw2ZIkdHFL3F0A2w vKM0vjSJSaRuIE0G4/9DcMGTz7JzDP4= 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 kvmtool 01/21] update_headers: Use a list for arch-generic headers Date: Fri, 26 May 2023 22:16:52 +0000 Message-ID: <20230526221712.317287-2-oliver.upton@linux.dev> In-Reply-To: <20230526221712.317287-1-oliver.upton@linux.dev> References: <20230526221712.317287-1-oliver.upton@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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 789e2a42b280..4c1be7e84a95 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