From patchwork Mon May 20 16:21:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 17071 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-fa0-f72.google.com (mail-fa0-f72.google.com [209.85.161.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ED2E020F30 for ; Mon, 20 May 2013 16:22:26 +0000 (UTC) Received: by mail-fa0-f72.google.com with SMTP id v1sf4266886fav.11 for ; Mon, 20 May 2013 09:21:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=Z3KFbhod/qhD/2RERgtOLiksbwOAQ1iPVNaC3xDPToA=; b=MdZr8MPMWL2t0jLSeiMZPXsR9LpMlp1X5XkGOtQoYr+pQGxa5GucDL/U8eKLLrdmVr tjDxpulK5ygWir7ImzYJeBjJ4ppfXsB7lpf1Rkf4NhXMhgRE5gNbnBM8OTsFIiBvr/NH wE51m2ZY2kV+7V8mGWjkkhbxMcBhIKtzu/rY6zHeMR8T1BWdaa4p/nZ1qmJPcGhWTgWA DtCt3cp8plEz94lHTBOsPYacRh+oTl0+s/zvo89KrI61FOn7kBjQzY06Bqif+X6UCnFk sTpr7mY4UQ04sYhhQw/WxaOwWne1NeCzmtJ3u/YSiKME20g/eAQLKgRemJsCl21nu6Q2 HC3w== X-Received: by 10.180.76.76 with SMTP id i12mr2085439wiw.6.1369066897092; Mon, 20 May 2013 09:21:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.20.239 with SMTP id q15ls822058wie.29.canary; Mon, 20 May 2013 09:21:37 -0700 (PDT) X-Received: by 10.180.109.48 with SMTP id hp16mr15182732wib.24.1369066893976; Mon, 20 May 2013 09:21:33 -0700 (PDT) Received: from mail-ve0-x22b.google.com (mail-ve0-x22b.google.com [2607:f8b0:400c:c01::22b]) by mx.google.com with ESMTPS id lp4si4411181wic.82.2013.05.20.09.21.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 09:21:33 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22b is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22b; Received: by mail-ve0-f171.google.com with SMTP id m1so5722103ves.16 for ; Mon, 20 May 2013 09:21:32 -0700 (PDT) X-Received: by 10.52.69.200 with SMTP id g8mr11671158vdu.4.1369066892829; Mon, 20 May 2013 09:21:32 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.126.138 with SMTP id c10csp90161vcs; Mon, 20 May 2013 09:21:32 -0700 (PDT) X-Received: by 10.204.65.137 with SMTP id j9mr19661331bki.55.1369066891582; Mon, 20 May 2013 09:21:31 -0700 (PDT) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id dd6si4412732wib.71.2013.05.20.09.21.30 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 20 May 2013 09:21:31 -0700 (PDT) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1UeSpx-00007O-3G; Mon, 20 May 2013 17:21:25 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, qemu-trivial@nongnu.org, Anthony Liguori , John Rigby , =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [PATCH] qapi-schema.json: Reformat TargetType enum to one-per-line Date: Mon, 20 May 2013 17:21:24 +0100 Message-Id: <1369066884-431-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 X-Gm-Message-State: ALoCoQmTj6cH7Oj6nKHAbq9kzuWS4Wm/0UFBRmnl6oV/XqrPJqqefL9mxPwPpm765TFA7Bqtmluj X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22b is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Reformat the qapi-schema TargetType enumeration so that it has just one target architecture name per line. This allows patches for adding new targets to just add a single line, rather than having to reformat most of the list (resulting in a hard-to-check diff). Signed-off-by: Peter Maydell Reviewed-by: Eric Blake Reviewed-by: Andreas Färber --- d15a9c23 is an example of what you get otherwise. I would much prefer it if we autogenerated this list so you didn't need to change this file at all to add a new target, but Anthony is against that; so this is at least an improvement. qapi-schema.json | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index 199744a..a8d361e 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3018,10 +3018,32 @@ # Since: 1.2.0 ## { 'enum': 'TargetType', - 'data': [ 'alpha', 'arm', 'cris', 'i386', 'lm32', 'm68k', 'microblazeel', - 'microblaze', 'mips64el', 'mips64', 'mipsel', 'mips', 'moxie', - 'or32', 'ppc64', 'ppcemb', 'ppc', 's390x', 'sh4eb', 'sh4', - 'sparc64', 'sparc', 'unicore32', 'x86_64', 'xtensaeb', 'xtensa' ] } + 'data': [ 'alpha', + 'arm', + 'cris', + 'i386', + 'lm32', + 'm68k', + 'microblazeel', + 'microblaze', + 'mips64el', + 'mips64', + 'mipsel', + 'mips', + 'moxie', + 'or32', + 'ppc64', + 'ppcemb', + 'ppc', + 's390x', + 'sh4eb', + 'sh4', + 'sparc64', + 'sparc', + 'unicore32', + 'x86_64', + 'xtensaeb', + 'xtensa' ] } ## # @TargetInfo: