Received: from eggs.gnu.org ([2001:4830:134:3::10]:55074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJXcl-0003jy-6o for qemu-devel@nongnu.org; Sat, 02 Jul 2016 22:59:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJXck-0002i6-C2 for qemu-devel@nongnu.org; Sat, 02 Jul 2016 22:59:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJXck-0002hr-6n for qemu-devel@nongnu.org; Sat, 02 Jul 2016 22:59:10 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AFC1D12FC8 for ; Sun, 3 Jul 2016 02:59:09 +0000 (UTC) From: Eric Blake Date: Sat, 2 Jul 2016 20:58:49 -0600 Message-Id: <1467514729-29366-17-git-send-email-eblake@redhat.com> In-Reply-To: <1467514729-29366-1-git-send-email-eblake@redhat.com> References: <1467514729-29366-1-git-send-email-eblake@redhat.com> Subject: [Qemu-devel] [PATCH v8 16/16] schema: Drop pointless empty type CpuInfoOther List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: armbru@redhat.com Now that we can represent an empty type anonymously in a flat union, we can drop one such empty types that existed solely for CpuInfo. However, we can't drop Abort or NetdevNoneOptions, as those were used by simple unions (remember, for simple unions, we still have to create a wrapper around a type in order to parse 'data':{}, rather than being a branch that parses nothing). Signed-off-by: Eric Blake --- v8: tweak commit message v7: new patch --- qapi-schema.json | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index 3a7632b..e4b0838 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -846,7 +846,7 @@ 'ppc': 'CpuInfoPPC', 'mips': 'CpuInfoMIPS', 'tricore': 'CpuInfoTricore', - 'other': 'CpuInfoOther' } } + 'other': {} } } ## # @CpuInfoX86: @@ -906,16 +906,6 @@ { 'struct': 'CpuInfoTricore', 'data': { 'PC': 'int' } } ## -# @CpuInfoOther: -# -# No additional information is available about the virtual CPU -# -# Since 2.6 -# -## -{ 'struct': 'CpuInfoOther', 'data': { } } - -## # @query-cpus: # # Returns a list of information about each virtual CPU. -- 2.5.5