From patchwork Tue May 29 16:41:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Nefedov X-Patchwork-Id: 10436441 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 259AD60327 for ; Tue, 29 May 2018 16:43:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A63D205A9 for ; Tue, 29 May 2018 16:43:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F31ED287E9; Tue, 29 May 2018 16:43:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 212C0205A9 for ; Tue, 29 May 2018 16:43:33 +0000 (UTC) Received: from localhost ([::1]:33953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNhie-0003DE-CV for patchwork-qemu-devel@patchwork.kernel.org; Tue, 29 May 2018 12:43:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNhh4-0002XJ-Qh for qemu-devel@nongnu.org; Tue, 29 May 2018 12:41:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNhh0-0003vk-3G for qemu-devel@nongnu.org; Tue, 29 May 2018 12:41:54 -0400 Received: from mail-db5eur01on0116.outbound.protection.outlook.com ([104.47.2.116]:56524 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fNhgz-0003uE-MB for qemu-devel@nongnu.org; Tue, 29 May 2018 12:41:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ElDH2r+ACYwcPIGMhxMvHnffPDqrNCiUilVOekR+L6A=; b=ENj1SUB5/gcpTCTO62hcan0TXZd7ltT2Q8NBZ6mMj8Mhdisg7h5x9ydRDkuiH3lQkwSPO5SmkfkoijYIp/vF3g0LRrNxD9lmfyWKVALSbw1ODSHE/eTFeTfS/k7IEGq7D8u6bmFP38Sp9Q0+rH9oJaut2UU0QbpCvs6ByiqETjM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anton.nefedov@virtuozzo.com; Received: from xantnef-ws.sw.ru (195.214.232.6) by AM0PR08MB3345.eurprd08.prod.outlook.com (2603:10a6:208:5f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.797.11; Tue, 29 May 2018 16:41:46 +0000 From: Anton Nefedov To: qemu-devel@nongnu.org Date: Tue, 29 May 2018 19:41:32 +0300 Message-Id: <1527612092-65980-3-git-send-email-anton.nefedov@virtuozzo.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527612092-65980-1-git-send-email-anton.nefedov@virtuozzo.com> References: <1527612092-65980-1-git-send-email-anton.nefedov@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR0102CA0008.eurprd01.prod.exchangelabs.com (2603:10a6:7:14::21) To AM0PR08MB3345.eurprd08.prod.outlook.com (2603:10a6:208:5f::18) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM0PR08MB3345; X-Microsoft-Exchange-Diagnostics: 1; AM0PR08MB3345; 3:cPB3sdmpXQOrEDR8w/aR2r1p2zh0HLRQsfZdYqjsCm9RmYF9hNGyw5BrdmD3aYqOKmxvt3g5bYfRgJqpN6veKoS15F/elFpgGZdBThjn937Rj+nCuwKZbOeuL6FJYJgDPRw3k8sFmDWLXiG2kWEkSB9SJyTAUrk14J/LkFp7VentKfW7qTNS4HJe+R+SS/aQyVMY+m/J1ojsMnb/9Y9exoYwsiZtBy4COmyK8J78gaoQEpLwR7qHAOOL08GqAH4K; 25:fBkmcDCNXHDeoJI2Bo4ZNW0JQdcYknbGTaQx4oSQcs8st2yHSb0CQYcjxHuoYjFVEqLc4xcD27MZCC67ZDwmI9uKwRKnny/ZeeSDw9KYBE7H/8M48w6bJ0SR1xgoKw1lyWn7mSk8BtuxeLbhfnPlclIInSjkeW16J5TR3c3K7npBCkgLRRV5VTLZ3W9RCdVb9gZ8hoMTE5nL2vqYnMLfN47xur+hZ/ox0DGcVAPSo2NaHBVWY7v/CPW3lJLj68JHw7C0nMNoarOMJpvzfuU9k9zYKhaq/s0yRX6dj1SpARB97xFCR1FwgOZGzzLYM1UnV5PN9N2ZVVPA71rU/jVk2w==; 31:nbEj2JrMKIBJbPMPNKtLAg15VeuoHD5CrlaXRp1aGI3oc4P03le54HJVp0iUW8ezvO7TmWrULgt8rvkNV/yXWjSrI2b+op9TXkuMmLAkUxs5vNH0/AlkELymAp4nl+StP8ElYX6HiB4DXd1xmjc4kSaSYbAmHCWmydg1dLZt+lfO40jbX+XnjDscVkAXCt8n+m0kd4t4G5W6HUy/pGyCHhkJzqMZKxV9mD+iG0OKn5o= X-MS-TrafficTypeDiagnostic: AM0PR08MB3345: X-Microsoft-Exchange-Diagnostics: 1; AM0PR08MB3345; 20:UVA0+O/fJGbUOWsOmqj6U08qq2BySu/zQxn8vvACfD7Bt3l9xc1LKcF2I9Gc/vYINUuCHsFdaDYS8QDrg4qRkVoDvlknO7Uor0IkLfTwM7kyNkhvpi/OLMmScBty7LIOLShqHW4jUH6RxxEYzOCbs3ig5MC2X9thJJt1k26F87Elq1Jt+x+AgZyNBrxAwqpSw9zQceM4+XyuUke4Z6vPil2Y+5fNe/beYVrvN5hTL/mIrpNtpkT0o4bDoLXdYXNer8lAZeyj5mRjyiD+gQGc0Mk0G4xJam5ch1a5tf8vNZ+rdD8rWsrvRWsnnFPYaMg8D4vtJ6LfR2d2NK7kUd/U38qky781e+eOxn2zKUgGJQv+y5qaCRRm0UCAUi7vi5KJneLY6FfN2zJ6cd9cRBEq96YfedCUfsgCEpoecH8+8g+2MqADg2NRQ/HMO2y2KWBxKepA7Ss1RqEOXpqD4+v4UaFu+AGq0pBOnd6N7UBB7ZJS1N0iZEVO97D0CWf4b9di; 4:zysGKiX531uZXsvYV8TiCMO9Wg/EN0pZqgaw7slHw/tOwjSzANG59ql5oZ4VKH/kNSDKtswwVyuccs44+zwxKR04tKx9uEplQrnzI2rRw24M/PwWANmPjpWxvkcO3B9dRPflFgbyDi8wvXt3qOgU6BzsqyEpNHO70fzKRtCxae6qXpuKknVTRQ1nTpRbJIDos/Ne9a4WaPwjwnIU0ZcVVqZmQB/xkDG2SFOMvd/iFoPA0ywGx2tdbGKMBzGSfWSvICPWhG+Z2KEj9IUrEGAGDg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:AM0PR08MB3345; BCL:0; PCL:0; RULEID:; SRVR:AM0PR08MB3345; X-Forefront-PRVS: 0687389FB0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(376002)(396003)(39850400004)(39380400002)(346002)(199004)(189003)(76176011)(50226002)(8676002)(6512007)(106356001)(48376002)(97736004)(50466002)(105586002)(4326008)(59450400001)(51416003)(107886003)(478600001)(52116002)(25786009)(68736007)(81166006)(81156014)(53416004)(8936002)(2616005)(2361001)(36756003)(956004)(6486002)(446003)(476003)(47776003)(66066001)(11346002)(53936002)(7736002)(16586007)(44832011)(2351001)(3846002)(486006)(6116002)(26005)(6506007)(5660300001)(69596002)(305945005)(575784001)(86362001)(2906002)(186003)(316002)(6916009)(55236004)(6666003)(386003)(16526019)(357404004); DIR:OUT; SFP:1102; SCL:1; SRVR:AM0PR08MB3345; H:xantnef-ws.sw.ru; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR08MB3345; 23:DGwnfsu1qE2UmCIJ83ruToM4h577vwA/kLyPeJTNk?= =?us-ascii?Q?WEVnKXVYwzPHv5/tcrgnbgbXEPWBg32Bai6AQbtiZZB0atrEAieatRfouXQj?= =?us-ascii?Q?im0HEdGCiU1Y1NS3kCTcND7TIh5yBav1+MIHdd1cJtGPHOJ4ZL7tVCW18K9Q?= =?us-ascii?Q?p83vY8ZnqJxZS1rvspD3YIruP/8oLdQegNgbz9H6ov8oEJ5z2c8+r5hZoi3w?= =?us-ascii?Q?zpTPjwCTi4YrnGlQARGevtj7ng1EgwLp5ZM5u1kQxo8aw+8HjvFo/Z0Ih0Cb?= =?us-ascii?Q?EnbD4+eqkx0eDRRf2XuVA26EbOpVMm9JEHrPSyEQvlkPRuCiWZ+TDoypF79I?= =?us-ascii?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31TdEYoxhujO0hGUItrxV5IVtixU5t1KjVMID66zXAIM11OKCHw=; 24:waxe0C0xd0B0gBdcxDwVhbfIZ0N4Bh4vQ++DR4SsPQGlFnIUGeTcVgjsM0FhLmcSLPdvBY+llYVcYp+hqRyCWdvIUdhcaL2hI5zQfrByOgI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM0PR08MB3345; 7:ih+k7+LtImDJiqtJV64XXJQ/VoV9l6+ivLZObpB89ktczN5MP9TKOzKBWOrrYDyD1UP5rYqQQtKVh9Vy5OLB5jYXDUY5bjPnpja7b3WAPzIQEbgtVgzODX/8evEfWSGdAvH++T0vHEHU0jMA5jQd+gOwIJqpPOkgQw1E0JXQ9peoTqBzJGoSpIHPZgF2dTYHRT9BE82aRRCHUAIehXraGMV32XDPZiQW4T7/n1rE5+Yz+ht74TQYUn24qVghlE/R; 20:2WHNTY1avToEkRtZo+fgaCcZ2D7cTmfNQT2mDUs5dLL4azbEmqJmFeHTN2887SV7weIZGbQZ2SjhuA1Xq6UalhgEzlOSr+QuqzWiamQTWj42+/nliKTlXyFJ1uUaLF7PNsmr+9F/+jgTva74iIPV4FyL5QPge9RT61CZz31ddw4= X-MS-Office365-Filtering-Correlation-Id: e9e111a9-86a2-40e9-8675-08d5c58311e0 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2018 16:41:46.9864 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e9e111a9-86a2-40e9-8675-08d5c58311e0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3345 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.2.116 Subject: [Qemu-devel] [PATCH v2 2/2] qapi: remove empty flat union branches and types X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anton Nefedov , armbru@redhat.com, mdroth@linux.vnet.ibm.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Flat unions may now have uncovered branches, so it is possible to get rid of empty types defined for that purpose only. Signed-off-by: Anton Nefedov Reviewed-by: Eric Blake --- qapi/block-core.json | 55 ++++------------------------------------------------ qapi/crypto.json | 13 +------------ qapi/misc.json | 46 ++----------------------------------------- qapi/net.json | 12 ------------ qapi/ui.json | 19 +----------------- block/qcow2.c | 1 - cpus.c | 2 -- 7 files changed, 8 insertions(+), 140 deletions(-) diff --git a/qapi/block-core.json b/qapi/block-core.json index ad66ad6..d0b95f0 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -52,8 +52,7 @@ { 'union': 'ImageInfoSpecificQCow2Encryption', 'base': 'ImageInfoSpecificQCow2EncryptionBase', 'discriminator': 'format', - 'data': { 'aes': 'QCryptoBlockInfoQCow', - 'luks': 'QCryptoBlockInfoLUKS' } } + 'data': { 'luks': 'QCryptoBlockInfoLUKS' } } ## # @ImageInfoSpecificQCow2: @@ -2671,8 +2670,7 @@ { 'union': 'BlockdevQcow2Encryption', 'base': { 'format': 'BlockdevQcow2EncryptionFormat' }, 'discriminator': 'format', - 'data': { 'aes': 'QCryptoBlockOptionsQCow', - 'luks': 'QCryptoBlockOptionsLUKS'} } + 'data': { 'luks': 'QCryptoBlockOptionsLUKS'} } ## # @BlockdevOptionsQcow2: @@ -2769,16 +2767,6 @@ 'hash': 'str' }} ## -# @SshHostKeyDummy: -# -# For those union branches that don't need additional fields. -# -# Since: 2.12 -## -{ 'struct': 'SshHostKeyDummy', - 'data': {} } - -## # @SshHostKeyCheck: # # Since: 2.12 @@ -2786,9 +2774,7 @@ { 'union': 'SshHostKeyCheck', 'base': { 'mode': 'SshHostKeyCheckMode' }, 'discriminator': 'mode', - 'data': { 'none': 'SshHostKeyDummy', - 'hash': 'SshHostKeyHash', - 'known_hosts': 'SshHostKeyDummy' } } + 'data': { 'hash': 'SshHostKeyHash' } } ## # @BlockdevOptionsSsh: @@ -3948,15 +3934,6 @@ '*force-size': 'bool' } } ## -# @BlockdevCreateNotSupported: -# -# This is used for all drivers that don't support creating images. -# -# Since: 2.12 -## -{ 'struct': 'BlockdevCreateNotSupported', 'data': {}} - -## # @BlockdevCreateOptions: # # Options for creating an image format on a given node. @@ -3970,44 +3947,20 @@ 'driver': 'BlockdevDriver' }, 'discriminator': 'driver', 'data': { - 'blkdebug': 'BlockdevCreateNotSupported', - 'blkverify': 'BlockdevCreateNotSupported', - 'bochs': 'BlockdevCreateNotSupported', - 'cloop': 'BlockdevCreateNotSupported', - 'copy-on-read': 'BlockdevCreateNotSupported', - 'dmg': 'BlockdevCreateNotSupported', 'file': 'BlockdevCreateOptionsFile', - 'ftp': 'BlockdevCreateNotSupported', - 'ftps': 'BlockdevCreateNotSupported', 'gluster': 'BlockdevCreateOptionsGluster', - 'host_cdrom': 'BlockdevCreateNotSupported', - 'host_device': 'BlockdevCreateNotSupported', - 'http': 'BlockdevCreateNotSupported', - 'https': 'BlockdevCreateNotSupported', - 'iscsi': 'BlockdevCreateNotSupported', 'luks': 'BlockdevCreateOptionsLUKS', - 'nbd': 'BlockdevCreateNotSupported', 'nfs': 'BlockdevCreateOptionsNfs', - 'null-aio': 'BlockdevCreateNotSupported', - 'null-co': 'BlockdevCreateNotSupported', - 'nvme': 'BlockdevCreateNotSupported', 'parallels': 'BlockdevCreateOptionsParallels', 'qcow': 'BlockdevCreateOptionsQcow', 'qcow2': 'BlockdevCreateOptionsQcow2', 'qed': 'BlockdevCreateOptionsQed', - 'quorum': 'BlockdevCreateNotSupported', - 'raw': 'BlockdevCreateNotSupported', 'rbd': 'BlockdevCreateOptionsRbd', - 'replication': 'BlockdevCreateNotSupported', 'sheepdog': 'BlockdevCreateOptionsSheepdog', 'ssh': 'BlockdevCreateOptionsSsh', - 'throttle': 'BlockdevCreateNotSupported', 'vdi': 'BlockdevCreateOptionsVdi', 'vhdx': 'BlockdevCreateOptionsVhdx', - 'vmdk': 'BlockdevCreateNotSupported', - 'vpc': 'BlockdevCreateOptionsVpc', - 'vvfat': 'BlockdevCreateNotSupported', - 'vxhs': 'BlockdevCreateNotSupported' + 'vpc': 'BlockdevCreateOptionsVpc' } } ## diff --git a/qapi/crypto.json b/qapi/crypto.json index 288bc05..a51b434 100644 --- a/qapi/crypto.json +++ b/qapi/crypto.json @@ -297,16 +297,6 @@ 'uuid': 'str', 'slots': [ 'QCryptoBlockInfoLUKSSlot' ] }} -## -# @QCryptoBlockInfoQCow: -# -# Information about the QCow block encryption options -# -# Since: 2.7 -## -{ 'struct': 'QCryptoBlockInfoQCow', - 'data': { }} - ## # @QCryptoBlockInfo: @@ -318,5 +308,4 @@ { 'union': 'QCryptoBlockInfo', 'base': 'QCryptoBlockInfoBase', 'discriminator': 'format', - 'data': { 'qcow': 'QCryptoBlockInfoQCow', - 'luks': 'QCryptoBlockInfoLUKS' } } + 'data': { 'luks': 'QCryptoBlockInfoLUKS' } } diff --git a/qapi/misc.json b/qapi/misc.json index 99bcaac..a46e55c 100644 --- a/qapi/misc.json +++ b/qapi/misc.json @@ -393,8 +393,7 @@ 'mips': 'CpuInfoMIPS', 'tricore': 'CpuInfoTricore', 's390': 'CpuInfoS390', - 'riscv': 'CpuInfoRISCV', - 'other': 'CpuInfoOther' } } + 'riscv': 'CpuInfoRISCV' } } ## # @CpuInfoX86: @@ -465,16 +464,6 @@ { 'struct': 'CpuInfoRISCV', 'data': { 'pc': 'int' } } ## -# @CpuInfoOther: -# -# No additional information is available about the virtual CPU -# -# Since: 2.6 -# -## -{ 'struct': 'CpuInfoOther', 'data': { } } - -## # @CpuS390State: # # An enumeration of cpu states that can be assumed by a virtual @@ -575,38 +564,7 @@ 'arch' : 'CpuInfoArch', 'target' : 'SysEmuTarget' }, 'discriminator' : 'target', - 'data' : { 'aarch64' : 'CpuInfoOther', - 'alpha' : 'CpuInfoOther', - 'arm' : 'CpuInfoOther', - 'cris' : 'CpuInfoOther', - 'hppa' : 'CpuInfoOther', - 'i386' : 'CpuInfoOther', - 'lm32' : 'CpuInfoOther', - 'm68k' : 'CpuInfoOther', - 'microblaze' : 'CpuInfoOther', - 'microblazeel' : 'CpuInfoOther', - 'mips' : 'CpuInfoOther', - 'mips64' : 'CpuInfoOther', - 'mips64el' : 'CpuInfoOther', - 'mipsel' : 'CpuInfoOther', - 'moxie' : 'CpuInfoOther', - 'nios2' : 'CpuInfoOther', - 'or1k' : 'CpuInfoOther', - 'ppc' : 'CpuInfoOther', - 'ppc64' : 'CpuInfoOther', - 'ppcemb' : 'CpuInfoOther', - 'riscv32' : 'CpuInfoOther', - 'riscv64' : 'CpuInfoOther', - 's390x' : 'CpuInfoS390', - 'sh4' : 'CpuInfoOther', - 'sh4eb' : 'CpuInfoOther', - 'sparc' : 'CpuInfoOther', - 'sparc64' : 'CpuInfoOther', - 'tricore' : 'CpuInfoOther', - 'unicore32' : 'CpuInfoOther', - 'x86_64' : 'CpuInfoOther', - 'xtensa' : 'CpuInfoOther', - 'xtensaeb' : 'CpuInfoOther' } } + 'data' : { 's390x' : 'CpuInfoS390' } } ## # @query-cpus-fast: diff --git a/qapi/net.json b/qapi/net.json index 5c1dc48..3a43950 100644 --- a/qapi/net.json +++ b/qapi/net.json @@ -89,16 +89,6 @@ { 'command': 'netdev_del', 'data': {'id': 'str'} } ## -# @NetdevNoneOptions: -# -# Use it alone to have zero network devices. -# -# Since: 1.2 -## -{ 'struct': 'NetdevNoneOptions', - 'data': { } } - -## # @NetLegacyNicOptions: # # Create a new Network Interface Card. @@ -473,7 +463,6 @@ 'base': { 'id': 'str', 'type': 'NetClientDriver' }, 'discriminator': 'type', 'data': { - 'none': 'NetdevNoneOptions', 'nic': 'NetLegacyNicOptions', 'user': 'NetdevUserOptions', 'tap': 'NetdevTapOptions', @@ -526,7 +515,6 @@ 'base': { 'type': 'NetLegacyOptionsType' }, 'discriminator': 'type', 'data': { - 'none': 'NetdevNoneOptions', 'nic': 'NetLegacyNicOptions', 'user': 'NetdevUserOptions', 'tap': 'NetdevTapOptions', diff --git a/qapi/ui.json b/qapi/ui.json index fc18a05..f48d2a0 100644 --- a/qapi/ui.json +++ b/qapi/ui.json @@ -996,17 +996,6 @@ ## -# @DisplayNoOpts: -# -# Empty struct for displays without config options. -# -# Since: 2.12 -# -## -{ 'struct' : 'DisplayNoOpts', - 'data' : { } } - -## # @DisplayGTK: # # GTK display options. @@ -1068,10 +1057,4 @@ '*window-close' : 'bool', '*gl' : 'DisplayGLMode' }, 'discriminator' : 'type', - 'data' : { 'default' : 'DisplayNoOpts', - 'none' : 'DisplayNoOpts', - 'gtk' : 'DisplayGTK', - 'sdl' : 'DisplayNoOpts', - 'egl-headless' : 'DisplayNoOpts', - 'curses' : 'DisplayNoOpts', - 'cocoa' : 'DisplayNoOpts' } } + 'data' : { 'gtk' : 'DisplayGTK' } } diff --git a/block/qcow2.c b/block/qcow2.c index 6d53247..389d96d 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -4003,7 +4003,6 @@ static ImageInfoSpecific *qcow2_get_specific_info(BlockDriverState *bs) switch (encrypt_info->format) { case Q_CRYPTO_BLOCK_FORMAT_QCOW: qencrypt->format = BLOCKDEV_QCOW2_ENCRYPTION_FORMAT_AES; - qencrypt->u.aes = encrypt_info->u.qcow; break; case Q_CRYPTO_BLOCK_FORMAT_LUKS: qencrypt->format = BLOCKDEV_QCOW2_ENCRYPTION_FORMAT_LUKS; diff --git a/cpus.c b/cpus.c index d1f1629..19c5d37 100644 --- a/cpus.c +++ b/cpus.c @@ -2273,8 +2273,6 @@ CpuInfoFastList *qmp_query_cpus_fast(Error **errp) info->value->target = target; if (target == SYS_EMU_TARGET_S390X) { cpustate_to_cpuinfo_s390(&info->value->u.s390x, cpu); - } else { - /* do nothing for @CpuInfoOther */ } if (!cur_item) {