From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mDKv5-0001Ks-A1 for mharc-qemu-riscv@gnu.org; Tue, 10 Aug 2021 02:07:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDKv3-0001Ew-E4 for qemu-riscv@nongnu.org; Tue, 10 Aug 2021 02:07:21 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:51095) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDKuz-000478-8l for qemu-riscv@nongnu.org; Tue, 10 Aug 2021 02:07:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628575636; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y6zyUXg5aIke+6Rm01WBiRgebbKin/ZJfq9RD2qXyio=; b=LGVa6LehvLkM90vVINEVdAlkNdLmklI+JtAX6XUOVPlls6DReRpUCY1gJGrNrUObPuCt2D LcrJAc3COAbKR8130//H4B8RIlc8UiK19w3gVXV5FYq0+iKwRrUHG/ckvO1TRLxIoVd7E8 Aa1aVBLq5gnpnZDqcdtJYIgmjxJpECk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-351-FF-UTNQXPrmXIkMPRwKgtg-1; Tue, 10 Aug 2021 02:07:14 -0400 X-MC-Unique: FF-UTNQXPrmXIkMPRwKgtg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 783481074661; Tue, 10 Aug 2021 06:07:08 +0000 (UTC) Received: from localhost (unknown [10.39.192.120]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4123B60C05; Tue, 10 Aug 2021 06:06:39 +0000 (UTC) From: Cornelia Huck To: Eduardo Habkost , qemu-devel@nongnu.org Cc: "Daniel P. Berrange" , Paolo Bonzini , Richard Henderson , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , Peter Maydell , Andrew Baumann , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Thomas Huth , "Michael S. Tsirkin" , Igor Mammedov , Alexander Bulekov , Bandan Das , Stefan Hajnoczi , Huacai Chen , Jiaxun Yang , Aurelien Jarno , Aleksandar Rikalo , Havard Skinnemoen , Tyrone Ting , Pavel Pisa , Vikram Garhwal , Jason Wang , Keith Busch , Klaus Jensen , Halil Pasic , Christian Borntraeger , David Hildenbrand , Gerd Hoffmann , Vijai Kumar K , Alistair Francis , Bin Meng , Palmer Dabbelt , "Edgar E. Iglesias" , Laurent Vivier , Corey Minyard , =?utf-8?Q?C=C3=A9dr?= =?utf-8?Q?ic?= Le Goater , Andrew Jeffery , Joel Stanley , Francisco Iglesias , David Gibson , Greg Kurz , Alexey Kardashevskiy , =?utf-8?Q?Herv=C3=A9?= Poussineau , Bastian Koppelmann , Juan Quintela , "Dr. David Alan Gilbert" , Stefan Berger , Taylor Simpson , qemu-arm@nongnu.org, qemu-block@nongnu.org, qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, qemu-ppc@nongnu.org Subject: Re: [PATCH for-6.2 05/12] [automated] Move QOM typedefs and add missing includes In-Reply-To: <20210806211127.646908-6-ehabkost@redhat.com> Organization: Red Hat GmbH References: <20210806211127.646908-1-ehabkost@redhat.com> <20210806211127.646908-6-ehabkost@redhat.com> User-Agent: Notmuch/0.32.1 (https://notmuchmail.org) Date: Tue, 10 Aug 2021 08:06:37 +0200 Message-ID: <877dgtygsy.fsf@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=cohuck@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=216.205.24.124; envelope-from=cohuck@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.702, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2021 06:07:21 -0000 On Fri, Aug 06 2021, Eduardo Habkost wrote: > Some typedefs and macros are defined after the type check macros. > This makes it difficult to automatically replace their > definitions with OBJECT_DECLARE_TYPE. > > Patch generated using: > > $ ./scripts/codeconverter/converter.py -i --pattern=3DMoveSymbols \ > $(git grep -l '' -- '*.[ch]') > > which will: > - split "typdef struct { ... } TypedefName" declarations > - move the typedefs and #defines above the type check macros > - add missing #include "qom/object.h" lines if necessary > > Signed-off-by: Eduardo Habkost > --- > Cc: Richard Henderson > Cc: Paolo Bonzini > Cc: "Marc-Andr=C3=A9 Lureau" > Cc: Peter Maydell > Cc: Andrew Baumann > Cc: "Philippe Mathieu-Daud=C3=A9" > Cc: Thomas Huth > Cc: "Michael S. Tsirkin" > Cc: Igor Mammedov > Cc: Alexander Bulekov > Cc: Bandan Das > Cc: Stefan Hajnoczi > Cc: Huacai Chen > Cc: Jiaxun Yang > Cc: Aurelien Jarno > Cc: Aleksandar Rikalo > Cc: Havard Skinnemoen > Cc: Tyrone Ting > Cc: Pavel Pisa > Cc: Vikram Garhwal > Cc: Jason Wang > Cc: Keith Busch > Cc: Klaus Jensen > Cc: Cornelia Huck > Cc: Halil Pasic > Cc: Christian Borntraeger > Cc: David Hildenbrand > Cc: Gerd Hoffmann > Cc: Vijai Kumar K > Cc: Alistair Francis > Cc: Bin Meng > Cc: Palmer Dabbelt > Cc: "Edgar E. Iglesias" > Cc: Laurent Vivier > Cc: Corey Minyard > Cc: "C=C3=A9dric Le Goater" > Cc: Andrew Jeffery > Cc: Joel Stanley > Cc: Francisco Iglesias > Cc: David Gibson > Cc: Greg Kurz > Cc: Alexey Kardashevskiy > Cc: "Herv=C3=A9 Poussineau" > Cc: Bastian Koppelmann > Cc: Juan Quintela > Cc: "Dr. David Alan Gilbert" > Cc: "Daniel P. Berrang=C3=A9" > Cc: Eduardo Habkost > Cc: Stefan Berger > Cc: Taylor Simpson > Cc: qemu-devel@nongnu.org > Cc: qemu-arm@nongnu.org > Cc: qemu-block@nongnu.org > Cc: qemu-s390x@nongnu.org > Cc: qemu-riscv@nongnu.org > Cc: qemu-ppc@nongnu.org > --- > hw/nvme/nvme.h | 6 ++++-- > hw/usb/hcd-uhci.h | 1 + > hw/usb/hcd-xhci-pci.h | 6 ++++-- > hw/usb/hcd-xhci-sysbus.h | 6 ++++-- > hw/usb/u2f.h | 6 ++++-- > include/hw/acpi/acpi_dev_interface.h | 2 +- > include/hw/adc/npcm7xx_adc.h | 1 + > include/hw/arm/linux-boot-if.h | 2 +- > include/hw/arm/npcm7xx.h | 11 +++++++---- > include/hw/char/shakti_uart.h | 6 ++++-- > include/hw/core/accel-cpu.h | 1 + > include/hw/dma/sifive_pdma.h | 1 + > include/hw/dma/xlnx_csu_dma.h | 1 + > include/hw/fw-path-provider.h | 2 +- > include/hw/gpio/npcm7xx_gpio.h | 1 + > include/hw/hotplug.h | 2 +- > include/hw/i2c/npcm7xx_smbus.h | 1 + > include/hw/intc/intc.h | 2 +- > include/hw/intc/m68k_irqc.h | 6 ++++-- > include/hw/intc/sifive_clint.h | 6 ++++-- > include/hw/ipmi/ipmi.h | 2 +- > include/hw/mem/memory-device.h | 2 +- > include/hw/mem/npcm7xx_mc.h | 1 + > include/hw/misc/aspeed_lpc.h | 6 ++++-- > include/hw/misc/bcm2835_cprman.h | 1 + > include/hw/misc/bcm2835_cprman_internals.h | 1 + > include/hw/misc/mchp_pfsoc_dmc.h | 1 + > include/hw/misc/mchp_pfsoc_ioscb.h | 1 + > include/hw/misc/mchp_pfsoc_sysreg.h | 1 + > include/hw/misc/npcm7xx_clk.h | 1 + > include/hw/misc/npcm7xx_gcr.h | 1 + > include/hw/misc/npcm7xx_pwm.h | 1 + > include/hw/misc/npcm7xx_rng.h | 1 + > include/hw/misc/xlnx-versal-xramc.h | 6 ++++-- > include/hw/net/npcm7xx_emc.h | 1 + > include/hw/net/xlnx-zynqmp-can.h | 6 ++++-- > include/hw/nmi.h | 2 +- > include/hw/nvram/npcm7xx_otp.h | 1 + > include/hw/ppc/spapr_drc.h | 15 +++++++++------ > include/hw/ppc/spapr_xive.h | 11 +++++++---- > include/hw/ppc/vof.h | 1 + > include/hw/rdma/rdma.h | 2 +- > include/hw/riscv/microchip_pfsoc.h | 1 + > include/hw/riscv/shakti_c.h | 11 +++++++---- > include/hw/riscv/sifive_e.h | 6 ++++-- > include/hw/riscv/sifive_u.h | 11 +++++++---- > include/hw/rtc/m48t59.h | 2 +- > include/hw/sd/cadence_sdhci.h | 1 + > include/hw/ssi/npcm7xx_fiu.h | 1 + > include/hw/ssi/sifive_spi.h | 6 ++++-- > include/hw/stream.h | 2 +- > include/hw/timer/npcm7xx_timer.h | 1 + > include/hw/tricore/tricore_testdevice.h | 6 ++++-- > include/hw/usb/hcd-dwc3.h | 6 ++++-- > include/hw/usb/msd.h | 1 + > include/hw/usb/xlnx-usb-subsystem.h | 6 ++++-- > include/hw/usb/xlnx-versal-usb2-ctrl-regs.h | 6 ++++-- > include/hw/vmstate-if.h | 2 +- > include/hw/watchdog/sbsa_gwdt.h | 6 ++++-- > include/qom/object_interfaces.h | 2 +- > include/sysemu/tpm.h | 2 +- > target/arm/idau.h | 2 +- > target/hexagon/cpu.h | 11 +++++++---- > accel/tcg/tcg-all.c | 1 + > chardev/char-parallel.c | 1 + > hw/arm/bcm2836.c | 1 + > hw/m68k/mcf5206.c | 1 + > hw/mem/sparse-mem.c | 6 ++++-- > hw/mips/loongson3_virt.c | 1 + > hw/misc/npcm7xx_clk.c | 1 + > hw/misc/sbsa_ec.c | 1 + > hw/net/can/ctucan_pci.c | 1 + > hw/nvram/npcm7xx_otp.c | 1 + > hw/s390x/vhost-user-fs-ccw.c | 1 + > hw/sensor/adm1272.c | 6 ++++-- > hw/sensor/max34451.c | 6 ++++-- > hw/usb/u2f-emulated.c | 1 + > hw/usb/u2f-passthru.c | 1 + > hw/virtio/vhost-user-i2c-pci.c | 1 + > tests/unit/check-qom-interface.c | 2 +- > ui/vdagent.c | 1 + > 81 files changed, 179 insertions(+), 82 deletions(-) Acked-by: Cornelia Huck From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a19:c144:0:0:0:0:0 with SMTP id r65csp1020355lff; Mon, 9 Aug 2021 23:08:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3gPCJY998SefImDIj60Y65udYDAfvxRL4H75VrVk0jhXGZbcJdFbpDcpj4MfTrb5BmBaw X-Received: by 2002:a02:6606:: with SMTP id k6mr26279812jac.51.1628575699066; Mon, 09 Aug 2021 23:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628575699; cv=none; d=google.com; s=arc-20160816; b=RFXGeGpRVt4iZrZGKhjzyyv44oPn43/F18HyoUyl4jp1Dweh2KwWFyhmx8OnrrVn1D eEXsX/3lqGW/N37z8QtOcexSLI9AI7kyRmlMYUgZ737UKkU/C0isDKLOISIUPYlqy1M9 Jb/eEQykAQTF7/mVUpMU0y/FGLNcCOsW1X3vpoDkNHumSvdc8raBOKqoF6J/YVzM1pfa DmAnxFHwJjg5jX2lwcV14I0eF+njK/6sxurp0pMjhJK6+3IIqcgb7+bnwRFqNHuGAHUd lCZ4m0HkTj+GtladI8mKJlTbP0a3vnqF19jPrMFZpcEKlylPfBjqeepB87VSVmv+DSzl LlrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:user-agent:references:organization :in-reply-to:subject:to:from:dkim-signature; bh=y6zyUXg5aIke+6Rm01WBiRgebbKin/ZJfq9RD2qXyio=; b=IVrW1ZcZ+XJp9pRoycui25jU6HAYPzllazfZocbiDMY8irWrxhGgpgubZDqWKRlcJJ yNGS4piU2vp1iazbOnGIW2l674sflVjtf6UW44WafkIqONUPeoj4iy2GfXnNa1TlVtWr tdXPH+grlbLZpR3w4gHpItrS2TcKGG8xdW4pJmoTJo7x+yPjjdnjS3JHlAGE98oEbMI3 r33qZDApNXYe4SyhQ8VdqI2p4oNdA6cdqlHCHY1kvwKwKM4qNafebHsdOvO3KwTDk8tJ e0wGOTvzAYDkX5HIvaMrFwXif/pQvHlOkBwKm8nFgGZ2k2AkAyhNB/kTY3LRPoS/0lFk cPpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=gVQn0j3s; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l4si26896504jaj.29.2021.08.09.23.08.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Aug 2021 23:08:19 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=gVQn0j3s; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:40270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDKvy-0002KB-5k for alex.bennee@linaro.org; Tue, 10 Aug 2021 02:08:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDKv2-0001E6-9L for qemu-devel@nongnu.org; Tue, 10 Aug 2021 02:07:20 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:38463) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDKuz-000475-EZ for qemu-devel@nongnu.org; Tue, 10 Aug 2021 02:07:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628575635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y6zyUXg5aIke+6Rm01WBiRgebbKin/ZJfq9RD2qXyio=; b=gVQn0j3s34D2co3AouoqVOp65MdlWWxz03pI+xI/r5mOS8jOHkV8OsVcBW68O1WG3FH4XP fSMpfP0n2ezGwxr8odVaPOZe+0Ku617wFC/vum4AndFhGrQI9kdiBPdLVF3SEwhxtSlPeB kz5vvIhVnBUlkkjZNDnq9iS8gxPDEYo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-351-FF-UTNQXPrmXIkMPRwKgtg-1; Tue, 10 Aug 2021 02:07:14 -0400 X-MC-Unique: FF-UTNQXPrmXIkMPRwKgtg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 783481074661; Tue, 10 Aug 2021 06:07:08 +0000 (UTC) Received: from localhost (unknown [10.39.192.120]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4123B60C05; Tue, 10 Aug 2021 06:06:39 +0000 (UTC) From: Cornelia Huck To: Eduardo Habkost , qemu-devel@nongnu.org Subject: Re: [PATCH for-6.2 05/12] [automated] Move QOM typedefs and add missing includes In-Reply-To: <20210806211127.646908-6-ehabkost@redhat.com> Organization: Red Hat GmbH References: <20210806211127.646908-1-ehabkost@redhat.com> <20210806211127.646908-6-ehabkost@redhat.com> User-Agent: Notmuch/0.32.1 (https://notmuchmail.org) Date: Tue, 10 Aug 2021 08:06:37 +0200 Message-ID: <877dgtygsy.fsf@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=cohuck@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=216.205.24.124; envelope-from=cohuck@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.702, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , "Michael S. Tsirkin" , Alexey Kardashevskiy , Andrew Jeffery , Jason Wang , Bin Meng , David Hildenbrand , Laurent Vivier , Vijai Kumar K , Taylor Simpson , Alistair Francis , Gerd Hoffmann , Klaus Jensen , "Edgar E. Iglesias" , Vikram Garhwal , qemu-block@nongnu.org, Juan Quintela , qemu-ppc@nongnu.org, Huacai Chen , Havard Skinnemoen , Halil Pasic , Christian Borntraeger , =?utf-8?Q?Herv=C3=A9?= Poussineau , Joel Stanley , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , Pavel Pisa , Aleksandar Rikalo , Corey Minyard , qemu-s390x@nongnu.org, Richard Henderson , Greg Kurz , "Dr. David Alan Gilbert" , Alexander Bulekov , Bandan Das , qemu-arm@nongnu.org, =?utf-8?Q?C=C3=A9dr?= =?utf-8?Q?ic?= Le Goater , Stefan Hajnoczi , Paolo Bonzini , Keith Busch , qemu-riscv@nongnu.org, David Gibson , "Daniel P. Berrange" , Francisco Iglesias , Thomas Huth , Bastian Koppelmann , Stefan Berger , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Andrew Baumann , Tyrone Ting , Palmer Dabbelt , Igor Mammedov , Aurelien Jarno Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: S65x9eNSxOcK On Fri, Aug 06 2021, Eduardo Habkost wrote: > Some typedefs and macros are defined after the type check macros. > This makes it difficult to automatically replace their > definitions with OBJECT_DECLARE_TYPE. > > Patch generated using: > > $ ./scripts/codeconverter/converter.py -i --pattern=3DMoveSymbols \ > $(git grep -l '' -- '*.[ch]') > > which will: > - split "typdef struct { ... } TypedefName" declarations > - move the typedefs and #defines above the type check macros > - add missing #include "qom/object.h" lines if necessary > > Signed-off-by: Eduardo Habkost > --- > Cc: Richard Henderson > Cc: Paolo Bonzini > Cc: "Marc-Andr=C3=A9 Lureau" > Cc: Peter Maydell > Cc: Andrew Baumann > Cc: "Philippe Mathieu-Daud=C3=A9" > Cc: Thomas Huth > Cc: "Michael S. Tsirkin" > Cc: Igor Mammedov > Cc: Alexander Bulekov > Cc: Bandan Das > Cc: Stefan Hajnoczi > Cc: Huacai Chen > Cc: Jiaxun Yang > Cc: Aurelien Jarno > Cc: Aleksandar Rikalo > Cc: Havard Skinnemoen > Cc: Tyrone Ting > Cc: Pavel Pisa > Cc: Vikram Garhwal > Cc: Jason Wang > Cc: Keith Busch > Cc: Klaus Jensen > Cc: Cornelia Huck > Cc: Halil Pasic > Cc: Christian Borntraeger > Cc: David Hildenbrand > Cc: Gerd Hoffmann > Cc: Vijai Kumar K > Cc: Alistair Francis > Cc: Bin Meng > Cc: Palmer Dabbelt > Cc: "Edgar E. Iglesias" > Cc: Laurent Vivier > Cc: Corey Minyard > Cc: "C=C3=A9dric Le Goater" > Cc: Andrew Jeffery > Cc: Joel Stanley > Cc: Francisco Iglesias > Cc: David Gibson > Cc: Greg Kurz > Cc: Alexey Kardashevskiy > Cc: "Herv=C3=A9 Poussineau" > Cc: Bastian Koppelmann > Cc: Juan Quintela > Cc: "Dr. David Alan Gilbert" > Cc: "Daniel P. Berrang=C3=A9" > Cc: Eduardo Habkost > Cc: Stefan Berger > Cc: Taylor Simpson > Cc: qemu-devel@nongnu.org > Cc: qemu-arm@nongnu.org > Cc: qemu-block@nongnu.org > Cc: qemu-s390x@nongnu.org > Cc: qemu-riscv@nongnu.org > Cc: qemu-ppc@nongnu.org > --- > hw/nvme/nvme.h | 6 ++++-- > hw/usb/hcd-uhci.h | 1 + > hw/usb/hcd-xhci-pci.h | 6 ++++-- > hw/usb/hcd-xhci-sysbus.h | 6 ++++-- > hw/usb/u2f.h | 6 ++++-- > include/hw/acpi/acpi_dev_interface.h | 2 +- > include/hw/adc/npcm7xx_adc.h | 1 + > include/hw/arm/linux-boot-if.h | 2 +- > include/hw/arm/npcm7xx.h | 11 +++++++---- > include/hw/char/shakti_uart.h | 6 ++++-- > include/hw/core/accel-cpu.h | 1 + > include/hw/dma/sifive_pdma.h | 1 + > include/hw/dma/xlnx_csu_dma.h | 1 + > include/hw/fw-path-provider.h | 2 +- > include/hw/gpio/npcm7xx_gpio.h | 1 + > include/hw/hotplug.h | 2 +- > include/hw/i2c/npcm7xx_smbus.h | 1 + > include/hw/intc/intc.h | 2 +- > include/hw/intc/m68k_irqc.h | 6 ++++-- > include/hw/intc/sifive_clint.h | 6 ++++-- > include/hw/ipmi/ipmi.h | 2 +- > include/hw/mem/memory-device.h | 2 +- > include/hw/mem/npcm7xx_mc.h | 1 + > include/hw/misc/aspeed_lpc.h | 6 ++++-- > include/hw/misc/bcm2835_cprman.h | 1 + > include/hw/misc/bcm2835_cprman_internals.h | 1 + > include/hw/misc/mchp_pfsoc_dmc.h | 1 + > include/hw/misc/mchp_pfsoc_ioscb.h | 1 + > include/hw/misc/mchp_pfsoc_sysreg.h | 1 + > include/hw/misc/npcm7xx_clk.h | 1 + > include/hw/misc/npcm7xx_gcr.h | 1 + > include/hw/misc/npcm7xx_pwm.h | 1 + > include/hw/misc/npcm7xx_rng.h | 1 + > include/hw/misc/xlnx-versal-xramc.h | 6 ++++-- > include/hw/net/npcm7xx_emc.h | 1 + > include/hw/net/xlnx-zynqmp-can.h | 6 ++++-- > include/hw/nmi.h | 2 +- > include/hw/nvram/npcm7xx_otp.h | 1 + > include/hw/ppc/spapr_drc.h | 15 +++++++++------ > include/hw/ppc/spapr_xive.h | 11 +++++++---- > include/hw/ppc/vof.h | 1 + > include/hw/rdma/rdma.h | 2 +- > include/hw/riscv/microchip_pfsoc.h | 1 + > include/hw/riscv/shakti_c.h | 11 +++++++---- > include/hw/riscv/sifive_e.h | 6 ++++-- > include/hw/riscv/sifive_u.h | 11 +++++++---- > include/hw/rtc/m48t59.h | 2 +- > include/hw/sd/cadence_sdhci.h | 1 + > include/hw/ssi/npcm7xx_fiu.h | 1 + > include/hw/ssi/sifive_spi.h | 6 ++++-- > include/hw/stream.h | 2 +- > include/hw/timer/npcm7xx_timer.h | 1 + > include/hw/tricore/tricore_testdevice.h | 6 ++++-- > include/hw/usb/hcd-dwc3.h | 6 ++++-- > include/hw/usb/msd.h | 1 + > include/hw/usb/xlnx-usb-subsystem.h | 6 ++++-- > include/hw/usb/xlnx-versal-usb2-ctrl-regs.h | 6 ++++-- > include/hw/vmstate-if.h | 2 +- > include/hw/watchdog/sbsa_gwdt.h | 6 ++++-- > include/qom/object_interfaces.h | 2 +- > include/sysemu/tpm.h | 2 +- > target/arm/idau.h | 2 +- > target/hexagon/cpu.h | 11 +++++++---- > accel/tcg/tcg-all.c | 1 + > chardev/char-parallel.c | 1 + > hw/arm/bcm2836.c | 1 + > hw/m68k/mcf5206.c | 1 + > hw/mem/sparse-mem.c | 6 ++++-- > hw/mips/loongson3_virt.c | 1 + > hw/misc/npcm7xx_clk.c | 1 + > hw/misc/sbsa_ec.c | 1 + > hw/net/can/ctucan_pci.c | 1 + > hw/nvram/npcm7xx_otp.c | 1 + > hw/s390x/vhost-user-fs-ccw.c | 1 + > hw/sensor/adm1272.c | 6 ++++-- > hw/sensor/max34451.c | 6 ++++-- > hw/usb/u2f-emulated.c | 1 + > hw/usb/u2f-passthru.c | 1 + > hw/virtio/vhost-user-i2c-pci.c | 1 + > tests/unit/check-qom-interface.c | 2 +- > ui/vdagent.c | 1 + > 81 files changed, 179 insertions(+), 82 deletions(-) Acked-by: Cornelia Huck