[PULL 00/17] QOM queue, 2020-09-18

Eduardo Habkost posted 17 patches 3 years, 7 months ago
Test docker-quick@centos7 passed
Test docker-mingw@fedora passed
Test checkpatch failed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200918204714.27276-1-ehabkost@redhat.com
Maintainers: Max Reitz <mreitz@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Marek Vasut <marex@denx.de>, Juan Quintela <quintela@redhat.com>, Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>, Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>, Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>, Andrew Jeffery <andrew@aj.id.au>, Peter Chubb <peter.chubb@nicta.com.au>, Eric Auger <eric.auger@redhat.com>, John Snow <jsnow@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, BALATON Zoltan <balaton@eik.bme.hu>, Thomas Huth <huth@tuxfamily.org>, Laurent Vivier <lvivier@redhat.com>, Michael Rolnik <mrolnik@gmail.com>, Sarah Harris <S.E.Harris@kent.ac.uk>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Jason Wang <jasowang@redhat.com>, Li Zhijian <lizhijian@cn.fujitsu.com>, Alistair Francis <alistair@alistair23.me>, Kevin Wolf <kwolf@redhat.com>, Beniamino Galvani <b.galvani@gmail.com>, Thomas Huth <thuth@redhat.com>, Andrey Smirnov <andrew.smirnov@gmail.com>, Greg Kurz <groug@kaod.org>, Michael Walle <michael@walle.cc>, Igor Mitsyanko <i.mitsyanko@gmail.com>, KONRAD Frederic <frederic.konrad@adacore.com>, Stefan Hajnoczi <stefanha@redhat.com>, Cornelia Huck <cohuck@redhat.com>, Corey Minyard <cminyard@mvista.com>, Chris Wulff <crwulff@gmail.com>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Stefano Stabellini <sstabellini@kernel.org>, Samuel Thibault <samuel.thibault@ens-lyon.org>, Ben Warren <ben@skyportsystems.com>, Joel Stanley <joel@jms.id.au>, Yoshinori Sato <ysato@users.sourceforge.jp>, Zhang Chen <chen.zhang@intel.com>, Matthew Rosato <mjrosato@linux.ibm.com>, Jan Kiszka <jan.kiszka@web.de>, Rob Herring <robh@kernel.org>, Amit Shah <amit@kernel.org>, Pierre Morel <pmorel@linux.ibm.com>, Christian Borntraeger <borntraeger@de.ibm.com>, Bastian Koppelmann <kbastian@mail.uni-paderborn.de>, Aurelien Jarno <aurelien@aurel32.net>, Niek Linnenbank <nieklinnenbank@gmail.com>, Gerd Hoffmann <kraxel@redhat.com>, Raphael Norwitz <raphael.norwitz@nutanix.com>, Igor Mammedov <imammedo@redhat.com>, Helge Deller <deller@gmx.de>, Palmer Dabbelt <palmer@dabbelt.com>, David Hildenbrand <david@redhat.com>, Alberto Garcia <berto@igalia.com>, Jean-Christophe Dubois <jcd@tribudubois.net>, "Daniel P. Berrangé" <berrange@redhat.com>, Sagar Karandikar <sagark@eecs.berkeley.edu>, Richard Henderson <rth@twiddle.net>, Radoslaw Biernacki <rad@semihalf.com>, Fabien Chouteau <chouteau@adacore.com>, Max Filippov <jcmvbkbc@gmail.com>, Andrzej Zaborowski <balrogg@gmail.com>, Paolo Bonzini <pbonzini@redhat.com>, Halil Pasic <pasic@linux.ibm.com>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Antony Pavlov <antonynpavlov@gmail.com>, Tony Krowiak <akrowiak@linux.ibm.com>, Anthony Perard <anthony.perard@citrix.com>, Artyom Tarasenko <atar4qemu@gmail.com>, "Cédric Le Goater" <clg@kaod.org>, Eric Farman <farman@linux.ibm.com>, Andrew Baumann <Andrew.Baumann@microsoft.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Christian Schoenebeck <qemu_oss@crudebyte.com>, Huacai Chen <chenhc@lemote.com>, Jiaxun Yang <jiaxun.yang@flygoat.com>, David Gibson <david@gibson.dropbear.id.au>, "Hervé Poussineau" <hpoussin@reactos.org>, Paul Burton <paulburton@kernel.org>, Sven Schnelle <svens@stackframe.org>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Peter Xu <peterx@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>, Anup Patel <anup.patel@wdc.com>, Fam Zheng <fam@euphon.net>, Laszlo Ersek <lersek@redhat.com>, Alistair Francis <Alistair.Francis@wdc.com>, Alex Williamson <alex.williamson@redhat.com>, Leif Lindholm <leif@nuviainc.com>, Stefan Berger <stefanb@linux.ibm.com>, Subbaraya Sundeep <sundeep.lkml@gmail.com>, Dmitry Fleytman <dmitry.fleytman@gmail.com>, Guan Xuetao <gxt@mprc.pku.edu.cn>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, "Gonglei (Arei)" <arei.gonglei@huawei.com>, Paul Durrant <paul@xen.org>
hw/9pfs/virtio-9p.h                           |   4 +-
hw/audio/intel-hda.h                          |   6 +-
hw/display/ati_int.h                          |   4 +-
hw/display/qxl.h                              |   4 +-
hw/display/virtio-vga.h                       |   2 +-
hw/i386/amd_iommu.h                           |   4 +-
hw/intc/sifive_plic.h                         |  10 +-
hw/misc/tmp105.h                              |   4 +-
hw/net/fsl_etsec/etsec.h                      |   3 +-
hw/net/tulip.h                                |   4 +-
hw/ppc/e500-ccsr.h                            |   4 +-
hw/ppc/e500.h                                 |   5 +-
hw/ppc/mac.h                                  |   4 +-
hw/s390x/ccw-device.h                         |   4 +-
hw/s390x/ipl.h                                |   4 +-
hw/s390x/s390-pci-bus.h                       |  16 +-
hw/s390x/virtio-ccw.h                         |  57 +-
hw/usb/ccid.h                                 |   5 +-
hw/usb/hcd-dwc2.h                             |   3 +-
hw/usb/hcd-ehci.h                             |  13 +-
hw/usb/hcd-ohci.h                             |   4 +-
hw/usb/hcd-xhci.h                             |   4 +-
hw/vfio/pci.h                                 |   4 +-
hw/virtio/virtio-pci.h                        |   5 +-
hw/xen/xen_pt.h                               |   4 +-
include/authz/base.h                          |   2 +-
include/authz/list.h                          |   4 +-
include/authz/listfile.h                      |   4 +-
include/authz/pamacct.h                       |   4 +-
include/authz/simple.h                        |   4 +-
include/block/throttle-groups.h               |   4 +-
include/chardev/char.h                        |   4 +-
include/crypto/secret_common.h                |   2 +-
include/crypto/secret_keyring.h               |   4 +-
include/hw/acpi/generic_event_device.h        |   4 +-
include/hw/acpi/vmgenid.h                     |   4 +-
include/hw/adc/stm32f2xx_adc.h                |   4 +-
include/hw/arm/allwinner-a10.h                |   4 +-
include/hw/arm/allwinner-h3.h                 |   4 +-
include/hw/arm/armsse.h                       |   2 +-
include/hw/arm/armv7m.h                       |   8 +-
include/hw/arm/aspeed_soc.h                   |   5 +-
include/hw/arm/bcm2835_peripherals.h          |   4 +-
include/hw/arm/bcm2836.h                      |   5 +-
include/hw/arm/digic.h                        |   4 +-
include/hw/arm/exynos4210.h                   |   4 +-
include/hw/arm/fsl-imx25.h                    |   4 +-
include/hw/arm/fsl-imx31.h                    |   4 +-
include/hw/arm/fsl-imx6.h                     |   4 +-
include/hw/arm/fsl-imx6ul.h                   |   4 +-
include/hw/arm/fsl-imx7.h                     |   4 +-
include/hw/arm/msf2-soc.h                     |   4 +-
include/hw/arm/nrf51_soc.h                    |   4 +-
include/hw/arm/omap.h                         |   4 +-
include/hw/arm/pxa.h                          |  15 +-
include/hw/arm/smmu-common.h                  |   5 +-
include/hw/arm/smmuv3.h                       |   5 +-
include/hw/arm/stm32f205_soc.h                |   4 +-
include/hw/arm/stm32f405_soc.h                |   4 +-
include/hw/arm/virt.h                         |   5 +-
include/hw/arm/xlnx-versal.h                  |   4 +-
include/hw/arm/xlnx-zynqmp.h                  |   4 +-
include/hw/block/flash.h                      |   8 +-
include/hw/block/swim.h                       |  12 +-
include/hw/boards.h                           |   3 +-
include/hw/char/avr_usart.h                   |   4 +-
include/hw/char/bcm2835_aux.h                 |   4 +-
include/hw/char/cadence_uart.h                |   4 +-
include/hw/char/cmsdk-apb-uart.h              |   4 +-
include/hw/char/digic-uart.h                  |   4 +-
include/hw/char/escc.h                        |   4 +-
include/hw/char/ibex_uart.h                   |   4 +-
include/hw/char/imx_serial.h                  |   4 +-
include/hw/char/nrf51_uart.h                  |   4 +-
include/hw/char/pl011.h                       |   4 +-
include/hw/char/serial.h                      |  11 +-
include/hw/char/sifive_uart.h                 |  10 +-
include/hw/char/stm32f2xx_usart.h             |   4 +-
include/hw/clock.h                            |   4 +-
include/hw/core/generic-loader.h              |   4 +-
include/hw/core/split-irq.h                   |   4 +-
include/hw/cpu/a15mpcore.h                    |   4 +-
include/hw/cpu/a9mpcore.h                     |   4 +-
include/hw/cpu/arm11mpcore.h                  |   4 +-
include/hw/cpu/cluster.h                      |   4 +-
include/hw/cpu/core.h                         |   4 +-
include/hw/display/bcm2835_fb.h               |   4 +-
include/hw/display/dpcd.h                     |   4 +-
include/hw/display/i2c-ddc.h                  |   4 +-
include/hw/display/macfb.h                    |   9 +-
include/hw/display/xlnx_dp.h                  |   4 +-
include/hw/dma/bcm2835_dma.h                  |   4 +-
include/hw/dma/i8257.h                        |   4 +-
include/hw/dma/pl080.h                        |   4 +-
include/hw/dma/xlnx-zdma.h                    |   4 +-
include/hw/dma/xlnx-zynq-devcfg.h             |   4 +-
include/hw/dma/xlnx_dpdma.h                   |   4 +-
include/hw/gpio/aspeed_gpio.h                 |   5 +-
include/hw/gpio/bcm2835_gpio.h                |   4 +-
include/hw/gpio/imx_gpio.h                    |   4 +-
include/hw/gpio/nrf51_gpio.h                  |   4 +-
include/hw/gpio/sifive_gpio.h                 |   9 +-
include/hw/hyperv/vmbus-bridge.h              |   4 +-
include/hw/hyperv/vmbus.h                     |   6 +-
include/hw/i2c/aspeed_i2c.h                   |   5 +-
include/hw/i2c/i2c.h                          |   5 +-
include/hw/i2c/imx_i2c.h                      |   4 +-
include/hw/i2c/microbit_i2c.h                 |   4 +-
include/hw/i2c/ppc4xx_i2c.h                   |   4 +-
include/hw/i2c/smbus_slave.h                  |   2 +-
include/hw/i386/ich9.h                        |   4 +-
include/hw/i386/intel_iommu.h                 |   4 +-
include/hw/i386/ioapic_internal.h             |   5 +-
include/hw/i386/microvm.h                     |   5 +-
include/hw/i386/pc.h                          |   4 +-
include/hw/i386/x86-iommu.h                   |   5 +-
include/hw/i386/x86.h                         |   5 +-
include/hw/ide/ahci.h                         |  12 +-
include/hw/ide/internal.h                     |   8 +-
include/hw/ide/pci.h                          |   4 +-
include/hw/input/adb.h                        |   8 +-
include/hw/input/i8042.h                      |   4 +-
include/hw/intc/allwinner-a10-pic.h           |   4 +-
include/hw/intc/aspeed_vic.h                  |   4 +-
include/hw/intc/bcm2835_ic.h                  |   4 +-
include/hw/intc/bcm2836_control.h             |   4 +-
include/hw/intc/heathrow_pic.h                |   4 +-
include/hw/intc/ibex_plic.h                   |   4 +-
include/hw/intc/imx_avic.h                    |   4 +-
include/hw/intc/imx_gpcv2.h                   |   4 +-
include/hw/intc/mips_gic.h                    |   4 +-
include/hw/intc/realview_gic.h                |   4 +-
include/hw/intc/rx_icu.h                      |   4 +-
include/hw/intc/xlnx-pmu-iomod-intc.h         |   4 +-
include/hw/intc/xlnx-zynqmp-ipi.h             |   4 +-
include/hw/ipack/ipack.h                      |   6 +-
include/hw/ipmi/ipmi.h                        |   6 +-
include/hw/isa/i8259_internal.h               |   5 +-
include/hw/isa/isa.h                          |   7 +-
include/hw/isa/pc87312.h                      |   4 +-
include/hw/m68k/mcf_fec.h                     |   4 +-
include/hw/mem/nvdimm.h                       |   5 +-
include/hw/mem/pc-dimm.h                      |   2 +-
include/hw/mips/cps.h                         |   4 +-
include/hw/misc/a9scu.h                       |   4 +-
include/hw/misc/allwinner-cpucfg.h            |   4 +-
include/hw/misc/allwinner-h3-ccu.h            |   4 +-
include/hw/misc/allwinner-h3-dramc.h          |   4 +-
include/hw/misc/allwinner-h3-sysctrl.h        |   4 +-
include/hw/misc/allwinner-sid.h               |   4 +-
include/hw/misc/arm11scu.h                    |   4 +-
include/hw/misc/armsse-cpuid.h                |   4 +-
include/hw/misc/armsse-mhu.h                  |   4 +-
include/hw/misc/aspeed_scu.h                  |   5 +-
include/hw/misc/aspeed_sdmc.h                 |   5 +-
include/hw/misc/aspeed_xdma.h                 |   4 +-
include/hw/misc/auxbus.h                      |  11 +-
include/hw/misc/avr_power.h                   |   4 +-
include/hw/misc/bcm2835_mbox.h                |   4 +-
include/hw/misc/bcm2835_mphi.h                |   3 +-
include/hw/misc/bcm2835_property.h            |   4 +-
include/hw/misc/bcm2835_rng.h                 |   4 +-
include/hw/misc/bcm2835_thermal.h             |   4 +-
include/hw/misc/grlib_ahb_apb_pnp.h           |   8 +-
include/hw/misc/imx25_ccm.h                   |   4 +-
include/hw/misc/imx31_ccm.h                   |   4 +-
include/hw/misc/imx6_ccm.h                    |   4 +-
include/hw/misc/imx6_src.h                    |   4 +-
include/hw/misc/imx6ul_ccm.h                  |   4 +-
include/hw/misc/imx7_ccm.h                    |   8 +-
include/hw/misc/imx7_gpr.h                    |   4 +-
include/hw/misc/imx7_snvs.h                   |   4 +-
include/hw/misc/imx_ccm.h                     |   5 +-
include/hw/misc/imx_rngc.h                    |   4 +-
include/hw/misc/iotkit-secctl.h               |   4 +-
include/hw/misc/iotkit-sysctl.h               |   4 +-
include/hw/misc/iotkit-sysinfo.h              |   4 +-
include/hw/misc/mac_via.h                     |  12 +-
include/hw/misc/macio/cuda.h                  |   8 +-
include/hw/misc/macio/gpio.h                  |   4 +-
include/hw/misc/macio/macio.h                 |  20 +-
include/hw/misc/macio/pmu.h                   |   8 +-
include/hw/misc/max111x.h                     |   4 +-
include/hw/misc/mips_cmgcr.h                  |   4 +-
include/hw/misc/mips_cpc.h                    |   4 +-
include/hw/misc/mips_itu.h                    |   4 +-
include/hw/misc/mos6522.h                     |   5 +-
include/hw/misc/mps2-fpgaio.h                 |   4 +-
include/hw/misc/mps2-scc.h                    |   4 +-
include/hw/misc/msf2-sysreg.h                 |   4 +-
include/hw/misc/nrf51_rng.h                   |   4 +-
include/hw/misc/sifive_e_prci.h               |  10 +-
include/hw/misc/sifive_test.h                 |  10 +-
include/hw/misc/sifive_u_otp.h                |  10 +-
include/hw/misc/sifive_u_prci.h               |  10 +-
include/hw/misc/stm32f2xx_syscfg.h            |   4 +-
include/hw/misc/stm32f4xx_exti.h              |   4 +-
include/hw/misc/stm32f4xx_syscfg.h            |   4 +-
include/hw/misc/tz-mpc.h                      |   4 +-
include/hw/misc/tz-msc.h                      |   4 +-
include/hw/misc/tz-ppc.h                      |   4 +-
include/hw/misc/unimp.h                       |   4 +-
include/hw/misc/zynq-xadc.h                   |   4 +-
include/hw/net/allwinner-sun8i-emac.h         |   4 +-
include/hw/net/allwinner_emac.h               |   4 +-
include/hw/net/cadence_gem.h                  |   4 +-
include/hw/net/ftgmac100.h                    |   8 +-
include/hw/net/imx_fec.h                      |   4 +-
include/hw/net/msf2-emac.h                    |   4 +-
include/hw/nubus/mac-nubus-bridge.h           |   4 +-
include/hw/nubus/nubus.h                      |   8 +-
include/hw/nvram/fw_cfg.h                     |   9 +-
include/hw/nvram/nrf51_nvm.h                  |   4 +-
include/hw/pci-bridge/simba.h                 |   4 +-
include/hw/pci-host/designware.h              |   8 +-
include/hw/pci-host/gpex.h                    |   8 +-
include/hw/pci-host/i440fx.h                  |   4 +-
include/hw/pci-host/pnv_phb3.h                |   7 +-
include/hw/pci-host/pnv_phb4.h                |  11 +-
include/hw/pci-host/q35.h                     |   8 +-
include/hw/pci-host/sabre.h                   |   8 +-
include/hw/pci-host/spapr.h                   |   4 +-
include/hw/pci-host/uninorth.h                |   4 +-
include/hw/pci-host/xilinx-pcie.h             |   8 +-
include/hw/pci/pci.h                          |   4 +-
include/hw/pci/pci_bridge.h                   |   3 +-
include/hw/pci/pci_host.h                     |   4 +-
include/hw/pci/pcie_host.h                    |   3 +-
include/hw/pci/pcie_port.h                    |   6 +-
include/hw/pcmcia.h                           |   5 +-
include/hw/platform-bus.h                     |   4 +-
include/hw/ppc/mac_dbdma.h                    |   3 +-
include/hw/ppc/openpic.h                      |   4 +-
include/hw/ppc/pnv.h                          |   2 +-
include/hw/ppc/pnv_core.h                     |   6 +-
include/hw/ppc/pnv_homer.h                    |   2 +-
include/hw/ppc/pnv_occ.h                      |   2 +-
include/hw/ppc/pnv_pnor.h                     |   4 +-
include/hw/ppc/pnv_psi.h                      |  10 +-
include/hw/ppc/pnv_xive.h                     |   2 +-
include/hw/ppc/spapr.h                        |  13 +-
include/hw/ppc/spapr_cpu_core.h               |   2 +-
include/hw/ppc/spapr_tpm_proxy.h              |   4 +-
include/hw/ppc/spapr_vio.h                    |   6 +-
include/hw/ppc/xics.h                         |   2 +-
include/hw/ppc/xive.h                         |  14 +-
include/hw/qdev-core.h                        |   4 +-
include/hw/riscv/opentitan.h                  |   4 +-
include/hw/riscv/riscv_hart.h                 |   4 +-
include/hw/riscv/sifive_e.h                   |  38 +-
include/hw/riscv/sifive_u.h                   |  34 +-
include/hw/rtc/allwinner-rtc.h                |   5 +-
include/hw/rtc/aspeed_rtc.h                   |   4 +-
include/hw/rtc/goldfish_rtc.h                 |   4 +-
include/hw/rtc/mc146818rtc.h                  |   4 +-
include/hw/rtc/pl031.h                        |   4 +-
include/hw/rtc/xlnx-zynqmp-rtc.h              |   4 +-
include/hw/s390x/3270-ccw.h                   |   5 +-
include/hw/s390x/css-bridge.h                 |   8 +-
include/hw/s390x/event-facility.h             |   2 +-
include/hw/s390x/s390-virtio-ccw.h            |   5 +-
include/hw/s390x/s390_flic.h                  |   6 +-
include/hw/s390x/sclp.h                       |   2 +-
include/hw/s390x/storage-attributes.h         |   5 +-
include/hw/s390x/storage-keys.h               |   5 +-
include/hw/s390x/tod.h                        |   5 +-
include/hw/s390x/vfio-ccw.h                   |   4 +-
include/hw/scsi/esp.h                         |   4 +-
include/hw/scsi/scsi.h                        |   7 +-
include/hw/sd/allwinner-sdhost.h              |   5 +-
include/hw/sd/aspeed_sdhci.h                  |   4 +-
include/hw/sd/bcm2835_sdhost.h                |   4 +-
include/hw/sd/sd.h                            |   7 +-
include/hw/sparc/sparc32_dma.h                |  16 +-
include/hw/ssi/aspeed_smc.h                   |   5 +-
include/hw/ssi/imx_spi.h                      |   4 +-
include/hw/ssi/mss-spi.h                      |   4 +-
include/hw/ssi/pl022.h                        |   4 +-
include/hw/ssi/ssi.h                          |   2 +-
include/hw/ssi/stm32f2xx_spi.h                |   4 +-
include/hw/ssi/xilinx_spips.h                 |  11 +-
include/hw/sysbus.h                           |   2 +-
include/hw/timer/a9gtimer.h                   |   4 +-
include/hw/timer/allwinner-a10-pit.h          |   4 +-
include/hw/timer/arm_mptimer.h                |   4 +-
include/hw/timer/armv7m_systick.h             |   4 +-
include/hw/timer/aspeed_timer.h               |   5 +-
include/hw/timer/avr_timer16.h                |   4 +-
include/hw/timer/bcm2835_systmr.h             |   4 +-
include/hw/timer/cmsdk-apb-dualtimer.h        |   4 +-
include/hw/timer/cmsdk-apb-timer.h            |   4 +-
include/hw/timer/digic-timer.h                |   4 +-
include/hw/timer/i8254.h                      |   5 +-
include/hw/timer/imx_epit.h                   |   4 +-
include/hw/timer/mss-timer.h                  |   4 +-
include/hw/timer/nrf51_timer.h                |   4 +-
include/hw/usb.h                              |   8 +-
include/hw/usb/chipidea.h                     |   4 +-
include/hw/usb/imx-usb-phy.h                  |   4 +-
include/hw/virtio/vhost-scsi-common.h         |   4 +-
include/hw/virtio/vhost-scsi.h                |   4 +-
include/hw/virtio/vhost-user-blk.h            |   4 +-
include/hw/virtio/vhost-user-fs.h             |   4 +-
include/hw/virtio/vhost-user-scsi.h           |   4 +-
include/hw/virtio/vhost-user-vsock.h          |   4 +-
include/hw/virtio/vhost-vsock-common.h        |   4 +-
include/hw/virtio/vhost-vsock.h               |   4 +-
include/hw/virtio/virtio-balloon.h            |   4 +-
include/hw/virtio/virtio-blk.h                |   4 +-
include/hw/virtio/virtio-crypto.h             |   4 +-
include/hw/virtio/virtio-gpu-pci.h            |   4 +-
include/hw/virtio/virtio-gpu.h                |  10 +-
include/hw/virtio/virtio-input.h              |  14 +-
include/hw/virtio/virtio-iommu.h              |   4 +-
include/hw/virtio/virtio-mem.h                |   2 +-
include/hw/virtio/virtio-mmio.h               |   4 +-
include/hw/virtio/virtio-net.h                |   4 +-
include/hw/virtio/virtio-pmem.h               |   2 +-
include/hw/virtio/virtio-rng.h                |   4 +-
include/hw/virtio/virtio-scsi.h               |   8 +-
include/hw/virtio/virtio-serial.h             |   9 +-
include/hw/virtio/virtio.h                    |   4 +-
include/hw/watchdog/cmsdk-apb-watchdog.h      |   4 +-
include/hw/watchdog/wdt_aspeed.h              |   5 +-
include/hw/watchdog/wdt_imx2.h                |   4 +-
include/hw/xen/xen-block.h                    |  12 +-
include/hw/xen/xen-bus.h                      |   6 +-
include/io/channel-buffer.h                   |   4 +-
include/io/channel-command.h                  |   4 +-
include/io/channel-file.h                     |   4 +-
include/io/channel-socket.h                   |   4 +-
include/io/channel-tls.h                      |   4 +-
include/io/channel-websock.h                  |   4 +-
include/io/channel.h                          |   2 +-
include/io/dns-resolver.h                     |   4 +-
include/io/net-listener.h                     |   4 +-
include/net/can_emu.h                         |   3 +-
include/net/can_host.h                        |   5 +-
include/net/filter.h                          |   4 +-
include/qom/object.h                          |  37 +-
include/scsi/pr-manager.h                     |   2 +-
include/sysemu/cryptodev.h                    |   2 +-
include/sysemu/hostmem.h                      |   2 +-
include/sysemu/rng-random.h                   |   4 +-
include/sysemu/rng.h                          |   2 +-
include/sysemu/tpm_backend.h                  |   2 +-
include/sysemu/vhost-user-backend.h           |   4 +-
include/ui/console.h                          |   4 +-
target/alpha/cpu-qom.h                        |   2 +-
target/arm/cpu-qom.h                          |   2 +-
target/avr/cpu-qom.h                          |   2 +-
target/cris/cpu-qom.h                         |   2 +-
target/hppa/cpu-qom.h                         |   2 +-
target/i386/cpu-qom.h                         |   2 +-
target/lm32/cpu-qom.h                         |   2 +-
target/m68k/cpu-qom.h                         |   2 +-
target/microblaze/cpu-qom.h                   |   2 +-
target/mips/cpu-qom.h                         |   2 +-
target/moxie/cpu.h                            |   2 +-
target/nios2/cpu.h                            |   2 +-
target/openrisc/cpu.h                         |   2 +-
target/ppc/cpu-qom.h                          |   2 +-
target/riscv/cpu.h                            |   2 +-
target/rx/cpu-qom.h                           |   2 +-
target/s390x/cpu-qom.h                        |   2 +-
target/sh4/cpu-qom.h                          |   2 +-
target/sparc/cpu-qom.h                        |   2 +-
target/tilegx/cpu.h                           |   2 +-
target/tricore/cpu-qom.h                      |   2 +-
target/unicore32/cpu-qom.h                    |   2 +-
target/xtensa/cpu-qom.h                       |   2 +-
authz/list.c                                  |   1 -
authz/listfile.c                              |   1 -
authz/pamacct.c                               |   1 -
authz/simple.c                                |   1 -
backends/cryptodev-builtin.c                  |   5 +-
backends/cryptodev-vhost-user.c               |   4 +-
backends/dbus-vmstate.c                       |   5 +-
backends/hostmem-file.c                       |   4 +-
backends/hostmem-memfd.c                      |   4 +-
backends/rng-builtin.c                        |   4 +-
backends/rng-egd.c                            |   4 +-
backends/tpm/tpm_emulator.c                   |   4 +-
backends/tpm/tpm_passthrough.c                |   4 +-
backends/vhost-user.c                         |   1 -
crypto/secret_keyring.c                       |   1 -
hw/acpi/piix4.c                               |   4 +-
hw/alpha/typhoon.c                            |   4 +-
hw/arm/collie.c                               |   4 +-
hw/arm/highbank.c                             |   4 +-
hw/arm/integratorcp.c                         |  12 +-
hw/arm/microbit.c                             |   4 +-
hw/arm/mps2-tz.c                              |   5 +-
hw/arm/mps2.c                                 |   5 +-
hw/arm/musca.c                                |   5 +-
hw/arm/musicpal.c                             |  32 +-
hw/arm/palm.c                                 |   4 +-
hw/arm/pxa2xx.c                               |  12 +-
hw/arm/pxa2xx_gpio.c                          |   4 +-
hw/arm/pxa2xx_pic.c                           |   4 +-
hw/arm/sbsa-ref.c                             |   4 +-
hw/arm/spitz.c                                |  25 +-
hw/arm/stellaris.c                            |   8 +-
hw/arm/strongarm.c                            |  24 +-
hw/arm/tosa.c                                 |   8 +-
hw/arm/versatilepb.c                          |   4 +-
hw/arm/vexpress.c                             |   5 +-
hw/arm/xilinx_zynq.c                          |   4 +-
hw/arm/xlnx-versal-virt.c                     |   4 +-
hw/arm/xlnx-zcu102.c                          |   4 +-
hw/arm/z2.c                                   |   8 +-
hw/audio/ac97.c                               |   4 +-
hw/audio/adlib.c                              |   4 +-
hw/audio/es1370.c                             |   3 +-
hw/audio/gus.c                                |   4 +-
hw/audio/hda-codec.c                          |   3 +-
hw/audio/marvell_88w8618.c                    |   4 +-
hw/audio/milkymist-ac97.c                     |   4 +-
hw/audio/pcspk.c                              |   4 +-
hw/audio/pl041.c                              |   4 +-
hw/audio/sb16.c                               |   4 +-
hw/audio/wm8750.c                             |   4 +-
hw/block/fdc.c                                |  16 +-
hw/block/m25p80.c                             |   5 +-
hw/block/nand.c                               |   3 +-
hw/block/onenand.c                            |   4 +-
hw/char/debugcon.c                            |   4 +-
hw/char/exynos4210_uart.c                     |   4 +-
hw/char/grlib_apbuart.c                       |   4 +-
hw/char/ipoctal232.c                          |   3 +-
hw/char/lm32_juart.c                          |   4 +-
hw/char/lm32_uart.c                           |   4 +-
hw/char/mcf_uart.c                            |   4 +-
hw/char/milkymist-uart.c                      |   4 +-
hw/char/parallel.c                            |   4 +-
hw/char/serial-isa.c                          |   4 +-
hw/char/serial-pci.c                          |   4 +-
hw/char/spapr_vty.c                           |   4 +-
hw/char/xilinx_uartlite.c                     |   4 +-
hw/cpu/realview_mpcore.c                      |   4 +-
hw/display/ads7846.c                          |   4 +-
hw/display/artist.c                           |   4 +-
hw/display/bochs-display.c                    |   4 +-
hw/display/cg3.c                              |   4 +-
hw/display/cirrus_vga.c                       |   4 +-
hw/display/cirrus_vga_isa.c                   |   4 +-
hw/display/exynos4210_fimd.c                  |   4 +-
hw/display/g364fb.c                           |   4 +-
hw/display/jazz_led.c                         |   4 +-
hw/display/milkymist-tmu2.c                   |   4 +-
hw/display/milkymist-vgafb.c                  |   4 +-
hw/display/next-fb.c                          |   4 +-
hw/display/pl110.c                            |   4 +-
hw/display/sii9022.c                          |   4 +-
hw/display/sm501.c                            |   8 +-
hw/display/ssd0303.c                          |   4 +-
hw/display/ssd0323.c                          |   4 +-
hw/display/tcx.c                              |   4 +-
hw/display/vga-isa.c                          |   4 +-
hw/display/vga-pci.c                          |   4 +-
hw/dma/i82374.c                               |   4 +-
hw/dma/pl330.c                                |   3 +-
hw/dma/puv3_dma.c                             |   4 +-
hw/dma/pxa2xx_dma.c                           |   4 +-
hw/dma/rc4030.c                               |   4 +-
hw/dma/xilinx_axidma.c                        |   4 +-
hw/gpio/gpio_key.c                            |   4 +-
hw/gpio/max7310.c                             |   4 +-
hw/gpio/mpc8xxx.c                             |   4 +-
hw/gpio/pl061.c                               |   4 +-
hw/gpio/puv3_gpio.c                           |   4 +-
hw/gpio/zaurus.c                              |   4 +-
hw/hppa/dino.c                                |   4 +-
hw/hppa/lasi.c                                |   4 +-
hw/hyperv/hyperv.c                            |   4 +-
hw/hyperv/hyperv_testdev.c                    |   4 +-
hw/i2c/bitbang_i2c.c                          |   4 +-
hw/i2c/exynos4210_i2c.c                       |   4 +-
hw/i2c/mpc_i2c.c                              |   4 +-
hw/i2c/smbus_eeprom.c                         |   4 +-
hw/i2c/smbus_ich9.c                           |   4 +-
hw/i386/kvm/clock.c                           |   4 +-
hw/i386/kvmvapic.c                            |   4 +-
hw/i386/port92.c                              |   4 +-
hw/i386/vmmouse.c                             |   4 +-
hw/i386/vmport.c                              |   4 +-
hw/i386/xen/xen_platform.c                    |   4 +-
hw/i386/xen/xen_pvdevice.c                    |   4 +-
hw/ide/isa.c                                  |   4 +-
hw/ide/microdrive.c                           |   4 +-
hw/ide/sii3112.c                              |   4 +-
hw/input/adb-kbd.c                            |   5 +-
hw/input/adb-mouse.c                          |   5 +-
hw/input/lm832x.c                             |   4 +-
hw/input/milkymist-softusb.c                  |   4 +-
hw/input/pl050.c                              |   4 +-
hw/intc/arm_gicv2m.c                          |   4 +-
hw/intc/exynos4210_combiner.c                 |   4 +-
hw/intc/exynos4210_gic.c                      |   8 +-
hw/intc/grlib_irqmp.c                         |   4 +-
hw/intc/lm32_pic.c                            |   4 +-
hw/intc/nios2_iic.c                           |   4 +-
hw/intc/ompic.c                               |   4 +-
hw/intc/openpic_kvm.c                         |   4 +-
hw/intc/pl190.c                               |   4 +-
hw/intc/puv3_intc.c                           |   4 +-
hw/intc/slavio_intctl.c                       |   4 +-
hw/ipack/tpci200.c                            |   4 +-
hw/ipmi/ipmi_bmc_extern.c                     |   4 +-
hw/ipmi/isa_ipmi_bt.c                         |   4 +-
hw/ipmi/isa_ipmi_kcs.c                        |   4 +-
hw/ipmi/pci_ipmi_bt.c                         |   4 +-
hw/ipmi/pci_ipmi_kcs.c                        |   4 +-
hw/ipmi/smbus_ipmi.c                          |   4 +-
hw/isa/i82378.c                               |   4 +-
hw/isa/piix4.c                                |   4 +-
hw/isa/vt82c686.c                             |  16 +-
hw/m68k/mcf_intc.c                            |   4 +-
hw/m68k/next-cube.c                           |   4 +-
hw/m68k/next-kbd.c                            |   4 +-
hw/microblaze/xlnx-zynqmp-pmu.c               |   4 +-
hw/mips/gt64xxx_pci.c                         |   4 +-
hw/mips/malta.c                               |   4 +-
hw/misc/applesmc.c                            |   4 +-
hw/misc/arm_integrator_debug.c                |   4 +-
hw/misc/arm_l2x0.c                            |   4 +-
hw/misc/arm_sysctl.c                          |   4 +-
hw/misc/debugexit.c                           |   4 +-
hw/misc/eccmemctl.c                           |   4 +-
hw/misc/empty_slot.c                          |   4 +-
hw/misc/exynos4210_clk.c                      |   4 +-
hw/misc/exynos4210_pmu.c                      |   4 +-
hw/misc/exynos4210_rng.c                      |   4 +-
hw/misc/milkymist-hpdmc.c                     |   4 +-
hw/misc/milkymist-pfpu.c                      |   4 +-
hw/misc/mst_fpga.c                            |   4 +-
hw/misc/pc-testdev.c                          |   4 +-
hw/misc/pci-testdev.c                         |   4 +-
hw/misc/puv3_pm.c                             |   4 +-
hw/misc/sga.c                                 |   4 +-
hw/misc/slavio_misc.c                         |   4 +-
hw/misc/tmp421.c                              |   5 +-
hw/misc/zynq_slcr.c                           |   4 +-
hw/net/dp8393x.c                              |   4 +-
hw/net/e1000e.c                               |   4 +-
hw/net/etraxfs_eth.c                          |   4 +-
hw/net/lan9118.c                              |   4 +-
hw/net/milkymist-minimac2.c                   |   4 +-
hw/net/mipsnet.c                              |   4 +-
hw/net/ne2000-isa.c                           |   4 +-
hw/net/opencores_eth.c                        |   4 +-
hw/net/pcnet-pci.c                            |   4 +-
hw/net/rtl8139.c                              |   4 +-
hw/net/smc91c111.c                            |   4 +-
hw/net/spapr_llan.c                           |   4 +-
hw/net/stellaris_enet.c                       |   4 +-
hw/net/sungem.c                               |   4 +-
hw/net/sunhme.c                               |   4 +-
hw/net/xgmac.c                                |   4 +-
hw/net/xilinx_axienet.c                       |   4 +-
hw/nvram/ds1225y.c                            |   4 +-
hw/nvram/spapr_nvram.c                        |   4 +-
hw/pci-bridge/dec.c                           |   4 +-
hw/pci-bridge/gen_pcie_root_port.c            |   4 +-
hw/pci-bridge/pci_bridge_dev.c                |   4 +-
hw/pci-bridge/pcie_pci_bridge.c               |   4 +-
hw/pci-host/bonito.c                          |   6 +-
hw/pci-host/grackle.c                         |   4 +-
hw/pci-host/i440fx.c                          |   4 +-
hw/pci-host/ppce500.c                         |   8 +-
hw/pci-host/prep.c                            |   4 +-
hw/ppc/mpc8544_guts.c                         |   4 +-
hw/ppc/ppc440_pcix.c                          |   4 +-
hw/ppc/ppc440_uc.c                            |   4 +-
hw/ppc/ppc4xx_pci.c                           |   4 +-
hw/ppc/ppce500_spin.c                         |   4 +-
hw/ppc/prep_systemio.c                        |   4 +-
hw/ppc/rs6000_mc.c                            |   4 +-
hw/ppc/spapr_rng.c                            |   4 +-
hw/riscv/sifive_e.c                           |  82 +-
hw/riscv/sifive_u.c                           | 156 ++--
hw/rtc/ds1338.c                               |   4 +-
hw/rtc/exynos4210_rtc.c                       |   4 +-
hw/rtc/m41t80.c                               |   4 +-
hw/rtc/sun4v-rtc.c                            |   4 +-
hw/rtc/twl92230.c                             |   4 +-
hw/scsi/lsi53c895a.c                          |   4 +-
hw/scsi/scsi-disk.c                           |   5 +-
hw/scsi/spapr_vscsi.c                         |   4 +-
hw/scsi/vmw_pvscsi.c                          |   5 +-
hw/sd/milkymist-memcard.c                     |   4 +-
hw/sd/pl181.c                                 |   4 +-
hw/sd/ssi-sd.c                                |   4 +-
hw/sh4/sh_pci.c                               |   4 +-
hw/sparc/sun4m.c                              |   8 +-
hw/sparc64/sun4u.c                            |   8 +-
hw/ssi/ssi.c                                  |   3 +-
hw/ssi/xilinx_spi.c                           |   4 +-
hw/timer/altera_timer.c                       |   4 +-
hw/timer/arm_timer.c                          |   8 +-
hw/timer/cadence_ttc.c                        |   4 +-
hw/timer/exynos4210_mct.c                     |   4 +-
hw/timer/exynos4210_pwm.c                     |   4 +-
hw/timer/grlib_gptimer.c                      |   4 +-
hw/timer/hpet.c                               |   4 +-
hw/timer/lm32_timer.c                         |   4 +-
hw/timer/milkymist-sysctl.c                   |   4 +-
hw/timer/puv3_ost.c                           |   4 +-
hw/timer/pxa2xx_timer.c                       |   4 +-
hw/timer/slavio_timer.c                       |   4 +-
hw/tpm/tpm_tis_isa.c                          |   4 +-
hw/tpm/tpm_tis_sysbus.c                       |   4 +-
hw/usb/dev-audio.c                            |   4 +-
hw/usb/dev-hid.c                              |   4 +-
hw/usb/dev-hub.c                              |   4 +-
hw/usb/dev-mtp.c                              |   3 +-
hw/usb/dev-network.c                          |   4 +-
hw/usb/dev-serial.c                           |   4 +-
hw/usb/dev-smartcard-reader.c                 |   7 +-
hw/usb/dev-uas.c                              |   3 +-
hw/usb/dev-wacom.c                            |   4 +-
hw/usb/hcd-ohci-pci.c                         |   4 +-
hw/usb/host-libusb.c                          |   4 +-
hw/usb/tusb6010.c                             |   4 +-
hw/vfio/ap.c                                  |   4 +-
hw/virtio/virtio-input-pci.c                  |   8 +-
hw/watchdog/wdt_i6300esb.c                    |   4 +-
io/dns-resolver.c                             |   1 -
io/net-listener.c                             |   1 -
migration/rdma.c                              |   4 +-
net/can/can_socketcan.c                       |   4 +-
net/dump.c                                    |   4 +-
net/filter-buffer.c                           |   4 +-
net/filter-replay.c                           |   4 +-
net/filter-rewriter.c                         |   4 +-
qom/object.c                                  |  42 +-
scsi/pr-manager-helper.c                      |   4 +-
target/arm/cpu.c                              |   2 +
target/i386/sev.c                             |   4 +-
target/riscv/cpu.c                            |   1 +
target/s390x/cpu.c                            |   1 +
tests/check-qom-proplist.c                    |   2 +
ui/input-barrier.c                            |   5 +-
ui/input-linux.c                              |   5 +-
.../codeconverter/codeconverter/patching.py   | 193 +++--
.../codeconverter/codeconverter/qom_macros.py | 327 ++++++--
.../codeconverter/qom_type_info.py            | 741 +++++++++++++++---
.../codeconverter/test_patching.py            |   3 +-
.../codeconverter/test_regexps.py             |  26 +-
scripts/codeconverter/converter.py            |  12 +-
target/ppc/translate_init.c.inc               |   1 +
651 files changed, 2079 insertions(+), 2595 deletions(-)
[PULL 00/17] QOM queue, 2020-09-18
Posted by Eduardo Habkost 3 years, 7 months ago
The following changes since commit 053a4177817db307ec854356e95b5b350800a216:

  Merge remote-tracking branch 'remotes/philmd-gitlab/tags/fw_cfg-20200918' into staging (2020-09-18 16:34:26 +0100)

are available in the Git repository at:

  git://github.com/ehabkost/qemu.git tags/machine-next-pull-request

for you to fetch changes up to 8063396bf3459a810d24e3efd6110b8480f0de5b:

  Use OBJECT_DECLARE_SIMPLE_TYPE when possible (2020-09-18 14:12:32 -0400)

----------------------------------------------------------------
QOM queue, 2020-09-18

Fixes:
* Error value corrections (Markus Armbruster)
* Correct object_class_dynamic_cast_assert() documentation (Eduardo Habkost)
* Ensure objects using QEMU_ALIGNED are properly aligned (Richard Henderson)

QOM cleanups (Eduardo Habkost):
* Rename some constants
* Simplify parameters of OBJECT_DECLARE* macros
* Additional DECLARE_*CHECKER* usage
* Additional OBJECT_DECLARE_TYPE usage
* Additional OBJECT_DECLARE_SIMPLE_TYPE usage

----------------------------------------------------------------

Eduardo Habkost (10):
  sifive_e: Rename memmap enum constants
  sifive_u: Rename memmap enum constants
  sifive: Move QOM typedefs and add missing includes
  sifive: Use DECLARE_*CHECKER* macros
  qom: Correct object_class_dynamic_cast_assert() documentation
  scripts/codeconverter: Update to latest version
  qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE
  qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros
  Use OBJECT_DECLARE_TYPE when possible
  Use OBJECT_DECLARE_SIMPLE_TYPE when possible

Markus Armbruster (2):
  qom: Clean up object_property_get_enum()'s error value
  qom: Correct error values in two contracts

Richard Henderson (5):
  qom: Allow objects to be allocated with increased alignment
  target/arm: Set instance_align on CPUARM TypeInfo
  target/ppc: Set instance_align on PowerPCCPU TypeInfo
  target/riscv: Set instance_align on RISCVCPU TypeInfo
  target/s390x: Set instance_align on S390CPU TypeInfo

 hw/9pfs/virtio-9p.h                           |   4 +-
 hw/audio/intel-hda.h                          |   6 +-
 hw/display/ati_int.h                          |   4 +-
 hw/display/qxl.h                              |   4 +-
 hw/display/virtio-vga.h                       |   2 +-
 hw/i386/amd_iommu.h                           |   4 +-
 hw/intc/sifive_plic.h                         |  10 +-
 hw/misc/tmp105.h                              |   4 +-
 hw/net/fsl_etsec/etsec.h                      |   3 +-
 hw/net/tulip.h                                |   4 +-
 hw/ppc/e500-ccsr.h                            |   4 +-
 hw/ppc/e500.h                                 |   5 +-
 hw/ppc/mac.h                                  |   4 +-
 hw/s390x/ccw-device.h                         |   4 +-
 hw/s390x/ipl.h                                |   4 +-
 hw/s390x/s390-pci-bus.h                       |  16 +-
 hw/s390x/virtio-ccw.h                         |  57 +-
 hw/usb/ccid.h                                 |   5 +-
 hw/usb/hcd-dwc2.h                             |   3 +-
 hw/usb/hcd-ehci.h                             |  13 +-
 hw/usb/hcd-ohci.h                             |   4 +-
 hw/usb/hcd-xhci.h                             |   4 +-
 hw/vfio/pci.h                                 |   4 +-
 hw/virtio/virtio-pci.h                        |   5 +-
 hw/xen/xen_pt.h                               |   4 +-
 include/authz/base.h                          |   2 +-
 include/authz/list.h                          |   4 +-
 include/authz/listfile.h                      |   4 +-
 include/authz/pamacct.h                       |   4 +-
 include/authz/simple.h                        |   4 +-
 include/block/throttle-groups.h               |   4 +-
 include/chardev/char.h                        |   4 +-
 include/crypto/secret_common.h                |   2 +-
 include/crypto/secret_keyring.h               |   4 +-
 include/hw/acpi/generic_event_device.h        |   4 +-
 include/hw/acpi/vmgenid.h                     |   4 +-
 include/hw/adc/stm32f2xx_adc.h                |   4 +-
 include/hw/arm/allwinner-a10.h                |   4 +-
 include/hw/arm/allwinner-h3.h                 |   4 +-
 include/hw/arm/armsse.h                       |   2 +-
 include/hw/arm/armv7m.h                       |   8 +-
 include/hw/arm/aspeed_soc.h                   |   5 +-
 include/hw/arm/bcm2835_peripherals.h          |   4 +-
 include/hw/arm/bcm2836.h                      |   5 +-
 include/hw/arm/digic.h                        |   4 +-
 include/hw/arm/exynos4210.h                   |   4 +-
 include/hw/arm/fsl-imx25.h                    |   4 +-
 include/hw/arm/fsl-imx31.h                    |   4 +-
 include/hw/arm/fsl-imx6.h                     |   4 +-
 include/hw/arm/fsl-imx6ul.h                   |   4 +-
 include/hw/arm/fsl-imx7.h                     |   4 +-
 include/hw/arm/msf2-soc.h                     |   4 +-
 include/hw/arm/nrf51_soc.h                    |   4 +-
 include/hw/arm/omap.h                         |   4 +-
 include/hw/arm/pxa.h                          |  15 +-
 include/hw/arm/smmu-common.h                  |   5 +-
 include/hw/arm/smmuv3.h                       |   5 +-
 include/hw/arm/stm32f205_soc.h                |   4 +-
 include/hw/arm/stm32f405_soc.h                |   4 +-
 include/hw/arm/virt.h                         |   5 +-
 include/hw/arm/xlnx-versal.h                  |   4 +-
 include/hw/arm/xlnx-zynqmp.h                  |   4 +-
 include/hw/block/flash.h                      |   8 +-
 include/hw/block/swim.h                       |  12 +-
 include/hw/boards.h                           |   3 +-
 include/hw/char/avr_usart.h                   |   4 +-
 include/hw/char/bcm2835_aux.h                 |   4 +-
 include/hw/char/cadence_uart.h                |   4 +-
 include/hw/char/cmsdk-apb-uart.h              |   4 +-
 include/hw/char/digic-uart.h                  |   4 +-
 include/hw/char/escc.h                        |   4 +-
 include/hw/char/ibex_uart.h                   |   4 +-
 include/hw/char/imx_serial.h                  |   4 +-
 include/hw/char/nrf51_uart.h                  |   4 +-
 include/hw/char/pl011.h                       |   4 +-
 include/hw/char/serial.h                      |  11 +-
 include/hw/char/sifive_uart.h                 |  10 +-
 include/hw/char/stm32f2xx_usart.h             |   4 +-
 include/hw/clock.h                            |   4 +-
 include/hw/core/generic-loader.h              |   4 +-
 include/hw/core/split-irq.h                   |   4 +-
 include/hw/cpu/a15mpcore.h                    |   4 +-
 include/hw/cpu/a9mpcore.h                     |   4 +-
 include/hw/cpu/arm11mpcore.h                  |   4 +-
 include/hw/cpu/cluster.h                      |   4 +-
 include/hw/cpu/core.h                         |   4 +-
 include/hw/display/bcm2835_fb.h               |   4 +-
 include/hw/display/dpcd.h                     |   4 +-
 include/hw/display/i2c-ddc.h                  |   4 +-
 include/hw/display/macfb.h                    |   9 +-
 include/hw/display/xlnx_dp.h                  |   4 +-
 include/hw/dma/bcm2835_dma.h                  |   4 +-
 include/hw/dma/i8257.h                        |   4 +-
 include/hw/dma/pl080.h                        |   4 +-
 include/hw/dma/xlnx-zdma.h                    |   4 +-
 include/hw/dma/xlnx-zynq-devcfg.h             |   4 +-
 include/hw/dma/xlnx_dpdma.h                   |   4 +-
 include/hw/gpio/aspeed_gpio.h                 |   5 +-
 include/hw/gpio/bcm2835_gpio.h                |   4 +-
 include/hw/gpio/imx_gpio.h                    |   4 +-
 include/hw/gpio/nrf51_gpio.h                  |   4 +-
 include/hw/gpio/sifive_gpio.h                 |   9 +-
 include/hw/hyperv/vmbus-bridge.h              |   4 +-
 include/hw/hyperv/vmbus.h                     |   6 +-
 include/hw/i2c/aspeed_i2c.h                   |   5 +-
 include/hw/i2c/i2c.h                          |   5 +-
 include/hw/i2c/imx_i2c.h                      |   4 +-
 include/hw/i2c/microbit_i2c.h                 |   4 +-
 include/hw/i2c/ppc4xx_i2c.h                   |   4 +-
 include/hw/i2c/smbus_slave.h                  |   2 +-
 include/hw/i386/ich9.h                        |   4 +-
 include/hw/i386/intel_iommu.h                 |   4 +-
 include/hw/i386/ioapic_internal.h             |   5 +-
 include/hw/i386/microvm.h                     |   5 +-
 include/hw/i386/pc.h                          |   4 +-
 include/hw/i386/x86-iommu.h                   |   5 +-
 include/hw/i386/x86.h                         |   5 +-
 include/hw/ide/ahci.h                         |  12 +-
 include/hw/ide/internal.h                     |   8 +-
 include/hw/ide/pci.h                          |   4 +-
 include/hw/input/adb.h                        |   8 +-
 include/hw/input/i8042.h                      |   4 +-
 include/hw/intc/allwinner-a10-pic.h           |   4 +-
 include/hw/intc/aspeed_vic.h                  |   4 +-
 include/hw/intc/bcm2835_ic.h                  |   4 +-
 include/hw/intc/bcm2836_control.h             |   4 +-
 include/hw/intc/heathrow_pic.h                |   4 +-
 include/hw/intc/ibex_plic.h                   |   4 +-
 include/hw/intc/imx_avic.h                    |   4 +-
 include/hw/intc/imx_gpcv2.h                   |   4 +-
 include/hw/intc/mips_gic.h                    |   4 +-
 include/hw/intc/realview_gic.h                |   4 +-
 include/hw/intc/rx_icu.h                      |   4 +-
 include/hw/intc/xlnx-pmu-iomod-intc.h         |   4 +-
 include/hw/intc/xlnx-zynqmp-ipi.h             |   4 +-
 include/hw/ipack/ipack.h                      |   6 +-
 include/hw/ipmi/ipmi.h                        |   6 +-
 include/hw/isa/i8259_internal.h               |   5 +-
 include/hw/isa/isa.h                          |   7 +-
 include/hw/isa/pc87312.h                      |   4 +-
 include/hw/m68k/mcf_fec.h                     |   4 +-
 include/hw/mem/nvdimm.h                       |   5 +-
 include/hw/mem/pc-dimm.h                      |   2 +-
 include/hw/mips/cps.h                         |   4 +-
 include/hw/misc/a9scu.h                       |   4 +-
 include/hw/misc/allwinner-cpucfg.h            |   4 +-
 include/hw/misc/allwinner-h3-ccu.h            |   4 +-
 include/hw/misc/allwinner-h3-dramc.h          |   4 +-
 include/hw/misc/allwinner-h3-sysctrl.h        |   4 +-
 include/hw/misc/allwinner-sid.h               |   4 +-
 include/hw/misc/arm11scu.h                    |   4 +-
 include/hw/misc/armsse-cpuid.h                |   4 +-
 include/hw/misc/armsse-mhu.h                  |   4 +-
 include/hw/misc/aspeed_scu.h                  |   5 +-
 include/hw/misc/aspeed_sdmc.h                 |   5 +-
 include/hw/misc/aspeed_xdma.h                 |   4 +-
 include/hw/misc/auxbus.h                      |  11 +-
 include/hw/misc/avr_power.h                   |   4 +-
 include/hw/misc/bcm2835_mbox.h                |   4 +-
 include/hw/misc/bcm2835_mphi.h                |   3 +-
 include/hw/misc/bcm2835_property.h            |   4 +-
 include/hw/misc/bcm2835_rng.h                 |   4 +-
 include/hw/misc/bcm2835_thermal.h             |   4 +-
 include/hw/misc/grlib_ahb_apb_pnp.h           |   8 +-
 include/hw/misc/imx25_ccm.h                   |   4 +-
 include/hw/misc/imx31_ccm.h                   |   4 +-
 include/hw/misc/imx6_ccm.h                    |   4 +-
 include/hw/misc/imx6_src.h                    |   4 +-
 include/hw/misc/imx6ul_ccm.h                  |   4 +-
 include/hw/misc/imx7_ccm.h                    |   8 +-
 include/hw/misc/imx7_gpr.h                    |   4 +-
 include/hw/misc/imx7_snvs.h                   |   4 +-
 include/hw/misc/imx_ccm.h                     |   5 +-
 include/hw/misc/imx_rngc.h                    |   4 +-
 include/hw/misc/iotkit-secctl.h               |   4 +-
 include/hw/misc/iotkit-sysctl.h               |   4 +-
 include/hw/misc/iotkit-sysinfo.h              |   4 +-
 include/hw/misc/mac_via.h                     |  12 +-
 include/hw/misc/macio/cuda.h                  |   8 +-
 include/hw/misc/macio/gpio.h                  |   4 +-
 include/hw/misc/macio/macio.h                 |  20 +-
 include/hw/misc/macio/pmu.h                   |   8 +-
 include/hw/misc/max111x.h                     |   4 +-
 include/hw/misc/mips_cmgcr.h                  |   4 +-
 include/hw/misc/mips_cpc.h                    |   4 +-
 include/hw/misc/mips_itu.h                    |   4 +-
 include/hw/misc/mos6522.h                     |   5 +-
 include/hw/misc/mps2-fpgaio.h                 |   4 +-
 include/hw/misc/mps2-scc.h                    |   4 +-
 include/hw/misc/msf2-sysreg.h                 |   4 +-
 include/hw/misc/nrf51_rng.h                   |   4 +-
 include/hw/misc/sifive_e_prci.h               |  10 +-
 include/hw/misc/sifive_test.h                 |  10 +-
 include/hw/misc/sifive_u_otp.h                |  10 +-
 include/hw/misc/sifive_u_prci.h               |  10 +-
 include/hw/misc/stm32f2xx_syscfg.h            |   4 +-
 include/hw/misc/stm32f4xx_exti.h              |   4 +-
 include/hw/misc/stm32f4xx_syscfg.h            |   4 +-
 include/hw/misc/tz-mpc.h                      |   4 +-
 include/hw/misc/tz-msc.h                      |   4 +-
 include/hw/misc/tz-ppc.h                      |   4 +-
 include/hw/misc/unimp.h                       |   4 +-
 include/hw/misc/zynq-xadc.h                   |   4 +-
 include/hw/net/allwinner-sun8i-emac.h         |   4 +-
 include/hw/net/allwinner_emac.h               |   4 +-
 include/hw/net/cadence_gem.h                  |   4 +-
 include/hw/net/ftgmac100.h                    |   8 +-
 include/hw/net/imx_fec.h                      |   4 +-
 include/hw/net/msf2-emac.h                    |   4 +-
 include/hw/nubus/mac-nubus-bridge.h           |   4 +-
 include/hw/nubus/nubus.h                      |   8 +-
 include/hw/nvram/fw_cfg.h                     |   9 +-
 include/hw/nvram/nrf51_nvm.h                  |   4 +-
 include/hw/pci-bridge/simba.h                 |   4 +-
 include/hw/pci-host/designware.h              |   8 +-
 include/hw/pci-host/gpex.h                    |   8 +-
 include/hw/pci-host/i440fx.h                  |   4 +-
 include/hw/pci-host/pnv_phb3.h                |   7 +-
 include/hw/pci-host/pnv_phb4.h                |  11 +-
 include/hw/pci-host/q35.h                     |   8 +-
 include/hw/pci-host/sabre.h                   |   8 +-
 include/hw/pci-host/spapr.h                   |   4 +-
 include/hw/pci-host/uninorth.h                |   4 +-
 include/hw/pci-host/xilinx-pcie.h             |   8 +-
 include/hw/pci/pci.h                          |   4 +-
 include/hw/pci/pci_bridge.h                   |   3 +-
 include/hw/pci/pci_host.h                     |   4 +-
 include/hw/pci/pcie_host.h                    |   3 +-
 include/hw/pci/pcie_port.h                    |   6 +-
 include/hw/pcmcia.h                           |   5 +-
 include/hw/platform-bus.h                     |   4 +-
 include/hw/ppc/mac_dbdma.h                    |   3 +-
 include/hw/ppc/openpic.h                      |   4 +-
 include/hw/ppc/pnv.h                          |   2 +-
 include/hw/ppc/pnv_core.h                     |   6 +-
 include/hw/ppc/pnv_homer.h                    |   2 +-
 include/hw/ppc/pnv_occ.h                      |   2 +-
 include/hw/ppc/pnv_pnor.h                     |   4 +-
 include/hw/ppc/pnv_psi.h                      |  10 +-
 include/hw/ppc/pnv_xive.h                     |   2 +-
 include/hw/ppc/spapr.h                        |  13 +-
 include/hw/ppc/spapr_cpu_core.h               |   2 +-
 include/hw/ppc/spapr_tpm_proxy.h              |   4 +-
 include/hw/ppc/spapr_vio.h                    |   6 +-
 include/hw/ppc/xics.h                         |   2 +-
 include/hw/ppc/xive.h                         |  14 +-
 include/hw/qdev-core.h                        |   4 +-
 include/hw/riscv/opentitan.h                  |   4 +-
 include/hw/riscv/riscv_hart.h                 |   4 +-
 include/hw/riscv/sifive_e.h                   |  38 +-
 include/hw/riscv/sifive_u.h                   |  34 +-
 include/hw/rtc/allwinner-rtc.h                |   5 +-
 include/hw/rtc/aspeed_rtc.h                   |   4 +-
 include/hw/rtc/goldfish_rtc.h                 |   4 +-
 include/hw/rtc/mc146818rtc.h                  |   4 +-
 include/hw/rtc/pl031.h                        |   4 +-
 include/hw/rtc/xlnx-zynqmp-rtc.h              |   4 +-
 include/hw/s390x/3270-ccw.h                   |   5 +-
 include/hw/s390x/css-bridge.h                 |   8 +-
 include/hw/s390x/event-facility.h             |   2 +-
 include/hw/s390x/s390-virtio-ccw.h            |   5 +-
 include/hw/s390x/s390_flic.h                  |   6 +-
 include/hw/s390x/sclp.h                       |   2 +-
 include/hw/s390x/storage-attributes.h         |   5 +-
 include/hw/s390x/storage-keys.h               |   5 +-
 include/hw/s390x/tod.h                        |   5 +-
 include/hw/s390x/vfio-ccw.h                   |   4 +-
 include/hw/scsi/esp.h                         |   4 +-
 include/hw/scsi/scsi.h                        |   7 +-
 include/hw/sd/allwinner-sdhost.h              |   5 +-
 include/hw/sd/aspeed_sdhci.h                  |   4 +-
 include/hw/sd/bcm2835_sdhost.h                |   4 +-
 include/hw/sd/sd.h                            |   7 +-
 include/hw/sparc/sparc32_dma.h                |  16 +-
 include/hw/ssi/aspeed_smc.h                   |   5 +-
 include/hw/ssi/imx_spi.h                      |   4 +-
 include/hw/ssi/mss-spi.h                      |   4 +-
 include/hw/ssi/pl022.h                        |   4 +-
 include/hw/ssi/ssi.h                          |   2 +-
 include/hw/ssi/stm32f2xx_spi.h                |   4 +-
 include/hw/ssi/xilinx_spips.h                 |  11 +-
 include/hw/sysbus.h                           |   2 +-
 include/hw/timer/a9gtimer.h                   |   4 +-
 include/hw/timer/allwinner-a10-pit.h          |   4 +-
 include/hw/timer/arm_mptimer.h                |   4 +-
 include/hw/timer/armv7m_systick.h             |   4 +-
 include/hw/timer/aspeed_timer.h               |   5 +-
 include/hw/timer/avr_timer16.h                |   4 +-
 include/hw/timer/bcm2835_systmr.h             |   4 +-
 include/hw/timer/cmsdk-apb-dualtimer.h        |   4 +-
 include/hw/timer/cmsdk-apb-timer.h            |   4 +-
 include/hw/timer/digic-timer.h                |   4 +-
 include/hw/timer/i8254.h                      |   5 +-
 include/hw/timer/imx_epit.h                   |   4 +-
 include/hw/timer/mss-timer.h                  |   4 +-
 include/hw/timer/nrf51_timer.h                |   4 +-
 include/hw/usb.h                              |   8 +-
 include/hw/usb/chipidea.h                     |   4 +-
 include/hw/usb/imx-usb-phy.h                  |   4 +-
 include/hw/virtio/vhost-scsi-common.h         |   4 +-
 include/hw/virtio/vhost-scsi.h                |   4 +-
 include/hw/virtio/vhost-user-blk.h            |   4 +-
 include/hw/virtio/vhost-user-fs.h             |   4 +-
 include/hw/virtio/vhost-user-scsi.h           |   4 +-
 include/hw/virtio/vhost-user-vsock.h          |   4 +-
 include/hw/virtio/vhost-vsock-common.h        |   4 +-
 include/hw/virtio/vhost-vsock.h               |   4 +-
 include/hw/virtio/virtio-balloon.h            |   4 +-
 include/hw/virtio/virtio-blk.h                |   4 +-
 include/hw/virtio/virtio-crypto.h             |   4 +-
 include/hw/virtio/virtio-gpu-pci.h            |   4 +-
 include/hw/virtio/virtio-gpu.h                |  10 +-
 include/hw/virtio/virtio-input.h              |  14 +-
 include/hw/virtio/virtio-iommu.h              |   4 +-
 include/hw/virtio/virtio-mem.h                |   2 +-
 include/hw/virtio/virtio-mmio.h               |   4 +-
 include/hw/virtio/virtio-net.h                |   4 +-
 include/hw/virtio/virtio-pmem.h               |   2 +-
 include/hw/virtio/virtio-rng.h                |   4 +-
 include/hw/virtio/virtio-scsi.h               |   8 +-
 include/hw/virtio/virtio-serial.h             |   9 +-
 include/hw/virtio/virtio.h                    |   4 +-
 include/hw/watchdog/cmsdk-apb-watchdog.h      |   4 +-
 include/hw/watchdog/wdt_aspeed.h              |   5 +-
 include/hw/watchdog/wdt_imx2.h                |   4 +-
 include/hw/xen/xen-block.h                    |  12 +-
 include/hw/xen/xen-bus.h                      |   6 +-
 include/io/channel-buffer.h                   |   4 +-
 include/io/channel-command.h                  |   4 +-
 include/io/channel-file.h                     |   4 +-
 include/io/channel-socket.h                   |   4 +-
 include/io/channel-tls.h                      |   4 +-
 include/io/channel-websock.h                  |   4 +-
 include/io/channel.h                          |   2 +-
 include/io/dns-resolver.h                     |   4 +-
 include/io/net-listener.h                     |   4 +-
 include/net/can_emu.h                         |   3 +-
 include/net/can_host.h                        |   5 +-
 include/net/filter.h                          |   4 +-
 include/qom/object.h                          |  37 +-
 include/scsi/pr-manager.h                     |   2 +-
 include/sysemu/cryptodev.h                    |   2 +-
 include/sysemu/hostmem.h                      |   2 +-
 include/sysemu/rng-random.h                   |   4 +-
 include/sysemu/rng.h                          |   2 +-
 include/sysemu/tpm_backend.h                  |   2 +-
 include/sysemu/vhost-user-backend.h           |   4 +-
 include/ui/console.h                          |   4 +-
 target/alpha/cpu-qom.h                        |   2 +-
 target/arm/cpu-qom.h                          |   2 +-
 target/avr/cpu-qom.h                          |   2 +-
 target/cris/cpu-qom.h                         |   2 +-
 target/hppa/cpu-qom.h                         |   2 +-
 target/i386/cpu-qom.h                         |   2 +-
 target/lm32/cpu-qom.h                         |   2 +-
 target/m68k/cpu-qom.h                         |   2 +-
 target/microblaze/cpu-qom.h                   |   2 +-
 target/mips/cpu-qom.h                         |   2 +-
 target/moxie/cpu.h                            |   2 +-
 target/nios2/cpu.h                            |   2 +-
 target/openrisc/cpu.h                         |   2 +-
 target/ppc/cpu-qom.h                          |   2 +-
 target/riscv/cpu.h                            |   2 +-
 target/rx/cpu-qom.h                           |   2 +-
 target/s390x/cpu-qom.h                        |   2 +-
 target/sh4/cpu-qom.h                          |   2 +-
 target/sparc/cpu-qom.h                        |   2 +-
 target/tilegx/cpu.h                           |   2 +-
 target/tricore/cpu-qom.h                      |   2 +-
 target/unicore32/cpu-qom.h                    |   2 +-
 target/xtensa/cpu-qom.h                       |   2 +-
 authz/list.c                                  |   1 -
 authz/listfile.c                              |   1 -
 authz/pamacct.c                               |   1 -
 authz/simple.c                                |   1 -
 backends/cryptodev-builtin.c                  |   5 +-
 backends/cryptodev-vhost-user.c               |   4 +-
 backends/dbus-vmstate.c                       |   5 +-
 backends/hostmem-file.c                       |   4 +-
 backends/hostmem-memfd.c                      |   4 +-
 backends/rng-builtin.c                        |   4 +-
 backends/rng-egd.c                            |   4 +-
 backends/tpm/tpm_emulator.c                   |   4 +-
 backends/tpm/tpm_passthrough.c                |   4 +-
 backends/vhost-user.c                         |   1 -
 crypto/secret_keyring.c                       |   1 -
 hw/acpi/piix4.c                               |   4 +-
 hw/alpha/typhoon.c                            |   4 +-
 hw/arm/collie.c                               |   4 +-
 hw/arm/highbank.c                             |   4 +-
 hw/arm/integratorcp.c                         |  12 +-
 hw/arm/microbit.c                             |   4 +-
 hw/arm/mps2-tz.c                              |   5 +-
 hw/arm/mps2.c                                 |   5 +-
 hw/arm/musca.c                                |   5 +-
 hw/arm/musicpal.c                             |  32 +-
 hw/arm/palm.c                                 |   4 +-
 hw/arm/pxa2xx.c                               |  12 +-
 hw/arm/pxa2xx_gpio.c                          |   4 +-
 hw/arm/pxa2xx_pic.c                           |   4 +-
 hw/arm/sbsa-ref.c                             |   4 +-
 hw/arm/spitz.c                                |  25 +-
 hw/arm/stellaris.c                            |   8 +-
 hw/arm/strongarm.c                            |  24 +-
 hw/arm/tosa.c                                 |   8 +-
 hw/arm/versatilepb.c                          |   4 +-
 hw/arm/vexpress.c                             |   5 +-
 hw/arm/xilinx_zynq.c                          |   4 +-
 hw/arm/xlnx-versal-virt.c                     |   4 +-
 hw/arm/xlnx-zcu102.c                          |   4 +-
 hw/arm/z2.c                                   |   8 +-
 hw/audio/ac97.c                               |   4 +-
 hw/audio/adlib.c                              |   4 +-
 hw/audio/es1370.c                             |   3 +-
 hw/audio/gus.c                                |   4 +-
 hw/audio/hda-codec.c                          |   3 +-
 hw/audio/marvell_88w8618.c                    |   4 +-
 hw/audio/milkymist-ac97.c                     |   4 +-
 hw/audio/pcspk.c                              |   4 +-
 hw/audio/pl041.c                              |   4 +-
 hw/audio/sb16.c                               |   4 +-
 hw/audio/wm8750.c                             |   4 +-
 hw/block/fdc.c                                |  16 +-
 hw/block/m25p80.c                             |   5 +-
 hw/block/nand.c                               |   3 +-
 hw/block/onenand.c                            |   4 +-
 hw/char/debugcon.c                            |   4 +-
 hw/char/exynos4210_uart.c                     |   4 +-
 hw/char/grlib_apbuart.c                       |   4 +-
 hw/char/ipoctal232.c                          |   3 +-
 hw/char/lm32_juart.c                          |   4 +-
 hw/char/lm32_uart.c                           |   4 +-
 hw/char/mcf_uart.c                            |   4 +-
 hw/char/milkymist-uart.c                      |   4 +-
 hw/char/parallel.c                            |   4 +-
 hw/char/serial-isa.c                          |   4 +-
 hw/char/serial-pci.c                          |   4 +-
 hw/char/spapr_vty.c                           |   4 +-
 hw/char/xilinx_uartlite.c                     |   4 +-
 hw/cpu/realview_mpcore.c                      |   4 +-
 hw/display/ads7846.c                          |   4 +-
 hw/display/artist.c                           |   4 +-
 hw/display/bochs-display.c                    |   4 +-
 hw/display/cg3.c                              |   4 +-
 hw/display/cirrus_vga.c                       |   4 +-
 hw/display/cirrus_vga_isa.c                   |   4 +-
 hw/display/exynos4210_fimd.c                  |   4 +-
 hw/display/g364fb.c                           |   4 +-
 hw/display/jazz_led.c                         |   4 +-
 hw/display/milkymist-tmu2.c                   |   4 +-
 hw/display/milkymist-vgafb.c                  |   4 +-
 hw/display/next-fb.c                          |   4 +-
 hw/display/pl110.c                            |   4 +-
 hw/display/sii9022.c                          |   4 +-
 hw/display/sm501.c                            |   8 +-
 hw/display/ssd0303.c                          |   4 +-
 hw/display/ssd0323.c                          |   4 +-
 hw/display/tcx.c                              |   4 +-
 hw/display/vga-isa.c                          |   4 +-
 hw/display/vga-pci.c                          |   4 +-
 hw/dma/i82374.c                               |   4 +-
 hw/dma/pl330.c                                |   3 +-
 hw/dma/puv3_dma.c                             |   4 +-
 hw/dma/pxa2xx_dma.c                           |   4 +-
 hw/dma/rc4030.c                               |   4 +-
 hw/dma/xilinx_axidma.c                        |   4 +-
 hw/gpio/gpio_key.c                            |   4 +-
 hw/gpio/max7310.c                             |   4 +-
 hw/gpio/mpc8xxx.c                             |   4 +-
 hw/gpio/pl061.c                               |   4 +-
 hw/gpio/puv3_gpio.c                           |   4 +-
 hw/gpio/zaurus.c                              |   4 +-
 hw/hppa/dino.c                                |   4 +-
 hw/hppa/lasi.c                                |   4 +-
 hw/hyperv/hyperv.c                            |   4 +-
 hw/hyperv/hyperv_testdev.c                    |   4 +-
 hw/i2c/bitbang_i2c.c                          |   4 +-
 hw/i2c/exynos4210_i2c.c                       |   4 +-
 hw/i2c/mpc_i2c.c                              |   4 +-
 hw/i2c/smbus_eeprom.c                         |   4 +-
 hw/i2c/smbus_ich9.c                           |   4 +-
 hw/i386/kvm/clock.c                           |   4 +-
 hw/i386/kvmvapic.c                            |   4 +-
 hw/i386/port92.c                              |   4 +-
 hw/i386/vmmouse.c                             |   4 +-
 hw/i386/vmport.c                              |   4 +-
 hw/i386/xen/xen_platform.c                    |   4 +-
 hw/i386/xen/xen_pvdevice.c                    |   4 +-
 hw/ide/isa.c                                  |   4 +-
 hw/ide/microdrive.c                           |   4 +-
 hw/ide/sii3112.c                              |   4 +-
 hw/input/adb-kbd.c                            |   5 +-
 hw/input/adb-mouse.c                          |   5 +-
 hw/input/lm832x.c                             |   4 +-
 hw/input/milkymist-softusb.c                  |   4 +-
 hw/input/pl050.c                              |   4 +-
 hw/intc/arm_gicv2m.c                          |   4 +-
 hw/intc/exynos4210_combiner.c                 |   4 +-
 hw/intc/exynos4210_gic.c                      |   8 +-
 hw/intc/grlib_irqmp.c                         |   4 +-
 hw/intc/lm32_pic.c                            |   4 +-
 hw/intc/nios2_iic.c                           |   4 +-
 hw/intc/ompic.c                               |   4 +-
 hw/intc/openpic_kvm.c                         |   4 +-
 hw/intc/pl190.c                               |   4 +-
 hw/intc/puv3_intc.c                           |   4 +-
 hw/intc/slavio_intctl.c                       |   4 +-
 hw/ipack/tpci200.c                            |   4 +-
 hw/ipmi/ipmi_bmc_extern.c                     |   4 +-
 hw/ipmi/isa_ipmi_bt.c                         |   4 +-
 hw/ipmi/isa_ipmi_kcs.c                        |   4 +-
 hw/ipmi/pci_ipmi_bt.c                         |   4 +-
 hw/ipmi/pci_ipmi_kcs.c                        |   4 +-
 hw/ipmi/smbus_ipmi.c                          |   4 +-
 hw/isa/i82378.c                               |   4 +-
 hw/isa/piix4.c                                |   4 +-
 hw/isa/vt82c686.c                             |  16 +-
 hw/m68k/mcf_intc.c                            |   4 +-
 hw/m68k/next-cube.c                           |   4 +-
 hw/m68k/next-kbd.c                            |   4 +-
 hw/microblaze/xlnx-zynqmp-pmu.c               |   4 +-
 hw/mips/gt64xxx_pci.c                         |   4 +-
 hw/mips/malta.c                               |   4 +-
 hw/misc/applesmc.c                            |   4 +-
 hw/misc/arm_integrator_debug.c                |   4 +-
 hw/misc/arm_l2x0.c                            |   4 +-
 hw/misc/arm_sysctl.c                          |   4 +-
 hw/misc/debugexit.c                           |   4 +-
 hw/misc/eccmemctl.c                           |   4 +-
 hw/misc/empty_slot.c                          |   4 +-
 hw/misc/exynos4210_clk.c                      |   4 +-
 hw/misc/exynos4210_pmu.c                      |   4 +-
 hw/misc/exynos4210_rng.c                      |   4 +-
 hw/misc/milkymist-hpdmc.c                     |   4 +-
 hw/misc/milkymist-pfpu.c                      |   4 +-
 hw/misc/mst_fpga.c                            |   4 +-
 hw/misc/pc-testdev.c                          |   4 +-
 hw/misc/pci-testdev.c                         |   4 +-
 hw/misc/puv3_pm.c                             |   4 +-
 hw/misc/sga.c                                 |   4 +-
 hw/misc/slavio_misc.c                         |   4 +-
 hw/misc/tmp421.c                              |   5 +-
 hw/misc/zynq_slcr.c                           |   4 +-
 hw/net/dp8393x.c                              |   4 +-
 hw/net/e1000e.c                               |   4 +-
 hw/net/etraxfs_eth.c                          |   4 +-
 hw/net/lan9118.c                              |   4 +-
 hw/net/milkymist-minimac2.c                   |   4 +-
 hw/net/mipsnet.c                              |   4 +-
 hw/net/ne2000-isa.c                           |   4 +-
 hw/net/opencores_eth.c                        |   4 +-
 hw/net/pcnet-pci.c                            |   4 +-
 hw/net/rtl8139.c                              |   4 +-
 hw/net/smc91c111.c                            |   4 +-
 hw/net/spapr_llan.c                           |   4 +-
 hw/net/stellaris_enet.c                       |   4 +-
 hw/net/sungem.c                               |   4 +-
 hw/net/sunhme.c                               |   4 +-
 hw/net/xgmac.c                                |   4 +-
 hw/net/xilinx_axienet.c                       |   4 +-
 hw/nvram/ds1225y.c                            |   4 +-
 hw/nvram/spapr_nvram.c                        |   4 +-
 hw/pci-bridge/dec.c                           |   4 +-
 hw/pci-bridge/gen_pcie_root_port.c            |   4 +-
 hw/pci-bridge/pci_bridge_dev.c                |   4 +-
 hw/pci-bridge/pcie_pci_bridge.c               |   4 +-
 hw/pci-host/bonito.c                          |   6 +-
 hw/pci-host/grackle.c                         |   4 +-
 hw/pci-host/i440fx.c                          |   4 +-
 hw/pci-host/ppce500.c                         |   8 +-
 hw/pci-host/prep.c                            |   4 +-
 hw/ppc/mpc8544_guts.c                         |   4 +-
 hw/ppc/ppc440_pcix.c                          |   4 +-
 hw/ppc/ppc440_uc.c                            |   4 +-
 hw/ppc/ppc4xx_pci.c                           |   4 +-
 hw/ppc/ppce500_spin.c                         |   4 +-
 hw/ppc/prep_systemio.c                        |   4 +-
 hw/ppc/rs6000_mc.c                            |   4 +-
 hw/ppc/spapr_rng.c                            |   4 +-
 hw/riscv/sifive_e.c                           |  82 +-
 hw/riscv/sifive_u.c                           | 156 ++--
 hw/rtc/ds1338.c                               |   4 +-
 hw/rtc/exynos4210_rtc.c                       |   4 +-
 hw/rtc/m41t80.c                               |   4 +-
 hw/rtc/sun4v-rtc.c                            |   4 +-
 hw/rtc/twl92230.c                             |   4 +-
 hw/scsi/lsi53c895a.c                          |   4 +-
 hw/scsi/scsi-disk.c                           |   5 +-
 hw/scsi/spapr_vscsi.c                         |   4 +-
 hw/scsi/vmw_pvscsi.c                          |   5 +-
 hw/sd/milkymist-memcard.c                     |   4 +-
 hw/sd/pl181.c                                 |   4 +-
 hw/sd/ssi-sd.c                                |   4 +-
 hw/sh4/sh_pci.c                               |   4 +-
 hw/sparc/sun4m.c                              |   8 +-
 hw/sparc64/sun4u.c                            |   8 +-
 hw/ssi/ssi.c                                  |   3 +-
 hw/ssi/xilinx_spi.c                           |   4 +-
 hw/timer/altera_timer.c                       |   4 +-
 hw/timer/arm_timer.c                          |   8 +-
 hw/timer/cadence_ttc.c                        |   4 +-
 hw/timer/exynos4210_mct.c                     |   4 +-
 hw/timer/exynos4210_pwm.c                     |   4 +-
 hw/timer/grlib_gptimer.c                      |   4 +-
 hw/timer/hpet.c                               |   4 +-
 hw/timer/lm32_timer.c                         |   4 +-
 hw/timer/milkymist-sysctl.c                   |   4 +-
 hw/timer/puv3_ost.c                           |   4 +-
 hw/timer/pxa2xx_timer.c                       |   4 +-
 hw/timer/slavio_timer.c                       |   4 +-
 hw/tpm/tpm_tis_isa.c                          |   4 +-
 hw/tpm/tpm_tis_sysbus.c                       |   4 +-
 hw/usb/dev-audio.c                            |   4 +-
 hw/usb/dev-hid.c                              |   4 +-
 hw/usb/dev-hub.c                              |   4 +-
 hw/usb/dev-mtp.c                              |   3 +-
 hw/usb/dev-network.c                          |   4 +-
 hw/usb/dev-serial.c                           |   4 +-
 hw/usb/dev-smartcard-reader.c                 |   7 +-
 hw/usb/dev-uas.c                              |   3 +-
 hw/usb/dev-wacom.c                            |   4 +-
 hw/usb/hcd-ohci-pci.c                         |   4 +-
 hw/usb/host-libusb.c                          |   4 +-
 hw/usb/tusb6010.c                             |   4 +-
 hw/vfio/ap.c                                  |   4 +-
 hw/virtio/virtio-input-pci.c                  |   8 +-
 hw/watchdog/wdt_i6300esb.c                    |   4 +-
 io/dns-resolver.c                             |   1 -
 io/net-listener.c                             |   1 -
 migration/rdma.c                              |   4 +-
 net/can/can_socketcan.c                       |   4 +-
 net/dump.c                                    |   4 +-
 net/filter-buffer.c                           |   4 +-
 net/filter-replay.c                           |   4 +-
 net/filter-rewriter.c                         |   4 +-
 qom/object.c                                  |  42 +-
 scsi/pr-manager-helper.c                      |   4 +-
 target/arm/cpu.c                              |   2 +
 target/i386/sev.c                             |   4 +-
 target/riscv/cpu.c                            |   1 +
 target/s390x/cpu.c                            |   1 +
 tests/check-qom-proplist.c                    |   2 +
 ui/input-barrier.c                            |   5 +-
 ui/input-linux.c                              |   5 +-
 .../codeconverter/codeconverter/patching.py   | 193 +++--
 .../codeconverter/codeconverter/qom_macros.py | 327 ++++++--
 .../codeconverter/qom_type_info.py            | 741 +++++++++++++++---
 .../codeconverter/test_patching.py            |   3 +-
 .../codeconverter/test_regexps.py             |  26 +-
 scripts/codeconverter/converter.py            |  12 +-
 target/ppc/translate_init.c.inc               |   1 +
 651 files changed, 2079 insertions(+), 2595 deletions(-)

-- 
2.26.2


Re: [PULL 00/17] QOM queue, 2020-09-18
Posted by no-reply@patchew.org 3 years, 7 months ago
Patchew URL: https://patchew.org/QEMU/20200918204714.27276-1-ehabkost@redhat.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Type: series
Message-id: 20200918204714.27276-1-ehabkost@redhat.com
Subject: [PULL 00/17] QOM queue, 2020-09-18

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
3b4ff67 Use OBJECT_DECLARE_SIMPLE_TYPE when possible
eaa2981 Use OBJECT_DECLARE_TYPE when possible
03acc8c qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros
6d27c01 qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE
b685c0e scripts/codeconverter: Update to latest version
a2df5ab target/s390x: Set instance_align on S390CPU TypeInfo
594f05c target/riscv: Set instance_align on RISCVCPU TypeInfo
5a58e81 target/ppc: Set instance_align on PowerPCCPU TypeInfo
e2a8ac0 target/arm: Set instance_align on CPUARM TypeInfo
bcd4988 qom: Allow objects to be allocated with increased alignment
b0b217e qom: Correct error values in two contracts
ebaf753 qom: Clean up object_property_get_enum()'s error value
dc02a31 qom: Correct object_class_dynamic_cast_assert() documentation
ef105b7 sifive: Use DECLARE_*CHECKER* macros
cc70b96 sifive: Move QOM typedefs and add missing includes
de6f173 sifive_u: Rename memmap enum constants
bbcd058 sifive_e: Rename memmap enum constants

=== OUTPUT BEGIN ===
1/17 Checking commit bbcd058ba88d (sifive_e: Rename memmap enum constants)
WARNING: line over 80 characters
#86: FILE: hw/riscv/sifive_e.c:114:
+                          memmap[SIFIVE_E_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#131: FILE: hw/riscv/sifive_e.c:229:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_E_DEV_GPIO0].base);

total: 0 errors, 2 warnings, 186 lines checked

Patch 1/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
2/17 Checking commit de6f1736ba22 (sifive_u: Rename memmap enum constants)
WARNING: line over 80 characters
#303: FILE: hw/riscv/sifive_u.c:531:
+                          memmap[SIFIVE_U_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#367: FILE: hw/riscv/sifive_u.c:734:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->prci), 0, memmap[SIFIVE_U_DEV_PRCI].base);

WARNING: line over 80 characters
#374: FILE: hw/riscv/sifive_u.c:740:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_U_DEV_GPIO].base);

total: 0 errors, 3 warnings, 412 lines checked

Patch 2/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
3/17 Checking commit cc70b96e145e (sifive: Move QOM typedefs and add missing includes)
4/17 Checking commit ef105b7dd404 (sifive: Use DECLARE_*CHECKER* macros)
5/17 Checking commit dc02a319f106 (qom: Correct object_class_dynamic_cast_assert() documentation)
6/17 Checking commit ebaf7539b573 (qom: Clean up object_property_get_enum()'s error value)
7/17 Checking commit b0b217ebd071 (qom: Correct error values in two contracts)
8/17 Checking commit bcd4988bc4b7 (qom: Allow objects to be allocated with increased alignment)
WARNING: architecture specific defines should be avoided
#74: FILE: qom/object.c:694:
+#if __STDC_VERSION__ >= 201112L

total: 0 errors, 1 warnings, 84 lines checked

Patch 8/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
9/17 Checking commit e2a8ac09abd6 (target/arm: Set instance_align on CPUARM TypeInfo)
10/17 Checking commit 5a58e818a231 (target/ppc: Set instance_align on PowerPCCPU TypeInfo)
11/17 Checking commit 594f05cba2c3 (target/riscv: Set instance_align on RISCVCPU TypeInfo)
12/17 Checking commit a2df5ab591ca (target/s390x: Set instance_align on S390CPU TypeInfo)
13/17 Checking commit b685c0ebc878 (scripts/codeconverter: Update to latest version)
ERROR: line over 90 characters
#26: FILE: scripts/codeconverter/codeconverter/patching.py:8:
+from typing import IO, Match, NamedTuple, Optional, Literal, Iterable, Type, Dict, List, Any, TypeVar, NewType, Tuple, Union

ERROR: line over 90 characters
#78: FILE: scripts/codeconverter/codeconverter/patching.py:184:
+    def group_finditer(self, klass: Type['FileMatch'], group: Union[str, int]) -> Iterable['FileMatch']:

ERROR: line over 90 characters
#85: FILE: scripts/codeconverter/codeconverter/patching.py:191:
+    def try_group_match(self, klass: Type['FileMatch'], group: Union[str, int]) -> Optional['FileMatch']:

WARNING: line over 80 characters
#161: FILE: scripts/codeconverter/codeconverter/patching.py:289:
+    def find_match(self, t: Type[T], name: str, group: str='name') -> Optional[T]:

WARNING: line over 80 characters
#194: FILE: scripts/codeconverter/codeconverter/patching.py:331:
+        matches = [klass(self, m) for m in klass.finditer(self.original_content)]

ERROR: line over 90 characters
#221: FILE: scripts/codeconverter/codeconverter/patching.py:370:
+    def scan_for_matches(self, class_names: Optional[List[str]]=None) -> Iterable[FileMatch]:

WARNING: line over 80 characters
#337: FILE: scripts/codeconverter/codeconverter/qom_macros.py:28:
+    regexp = S(r'^[ \t]*#[ \t]*define', CPP_SPACE, NAMED('name', RE_IDENTIFIER), r'\b')

ERROR: line over 90 characters
#394: FILE: scripts/codeconverter/codeconverter/qom_macros.py:444:
+               r'\s*\(\s*', OR(NAMED('instancetype', RE_IDENTIFIER), RE_TYPE, name='c_type'),

ERROR: line over 90 characters
#457: FILE: scripts/codeconverter/codeconverter/qom_macros.py:513:
+               OR(RE_IDENTIFIER, RE_STRING, RE_MACRO_CONCAT, RE_FUN_CALL, name='typename'), SP,

WARNING: line over 80 characters
#521: FILE: scripts/codeconverter/codeconverter/qom_macros.py:575:
+    """Common base class for code that will look at a set of type declarations"""

ERROR: line over 90 characters
#531: FILE: scripts/codeconverter/codeconverter/qom_macros.py:583:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareInstanceChecker, DeclareInstanceType,

WARNING: line over 80 characters
#532: FILE: scripts/codeconverter/codeconverter/qom_macros.py:584:
+                                                   DeclareClassCheckers, DeclareClassType,

WARNING: line over 80 characters
#550: FILE: scripts/codeconverter/codeconverter/qom_macros.py:602:
+            field_dict = dict((f, v.pop() if v else None) for f,v in fvalues.items())

WARNING: line over 80 characters
#551: FILE: scripts/codeconverter/codeconverter/qom_macros.py:603:
+            yield from self.gen_patches_for_type(uppercase, checkers, field_dict)

WARNING: line over 80 characters
#553: FILE: scripts/codeconverter/codeconverter/qom_macros.py:605:
+    def find_conflicts(self, uppercase: str, checkers: List[TypeDeclaration]) -> bool:

WARNING: line over 80 characters
#554: FILE: scripts/codeconverter/codeconverter/qom_macros.py:606:
+        """Look for conflicting declarations that would make it unsafe to add new ones"""

WARNING: line over 80 characters
#557: FILE: scripts/codeconverter/codeconverter/qom_macros.py:609:
+        conflicting.extend(chain(self.file.find_matches(DefineDirective, uppercase),

ERROR: line over 90 characters
#558: FILE: scripts/codeconverter/codeconverter/qom_macros.py:610:
+                                 self.file.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#559: FILE: scripts/codeconverter/codeconverter/qom_macros.py:611:
+                                 self.file.find_matches(DeclareClassType, uppercase, 'uppercase'),

ERROR: line over 90 characters
#560: FILE: scripts/codeconverter/codeconverter/qom_macros.py:612:
+                                 self.file.find_matches(DeclareInstanceType, uppercase, 'uppercase')))

ERROR: line over 90 characters
#563: FILE: scripts/codeconverter/codeconverter/qom_macros.py:615:
+        conflicting.extend(o for o in chain(self.allfiles.find_matches(DeclareInstanceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#564: FILE: scripts/codeconverter/codeconverter/qom_macros.py:616:
+                                            self.allfiles.find_matches(DeclareClassCheckers, uppercase, 'uppercase'),

ERROR: line over 90 characters
#565: FILE: scripts/codeconverter/codeconverter/qom_macros.py:617:
+                                            self.allfiles.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#566: FILE: scripts/codeconverter/codeconverter/qom_macros.py:618:
+                                            self.allfiles.find_matches(DefineDirective, uppercase))

WARNING: line over 80 characters
#568: FILE: scripts/codeconverter/codeconverter/qom_macros.py:620:
+                               # if both are .c files, there's no conflict at all:

WARNING: line over 80 characters
#585: FILE: scripts/codeconverter/codeconverter/qom_macros.py:637:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#595: FILE: scripts/codeconverter/codeconverter/qom_macros.py:647:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#625: FILE: scripts/codeconverter/codeconverter/qom_macros.py:655:
+            yield first_checker.prepend(f'DECLARE_INSTANCE_TYPE({uppercase}, void)\n')

WARNING: line over 80 characters
#627: FILE: scripts/codeconverter/codeconverter/qom_macros.py:657:
+            yield first_checker.prepend(f'DECLARE_CLASS_TYPE({uppercase}, void)\n')

ERROR: line over 90 characters
#634: FILE: scripts/codeconverter/codeconverter/qom_macros.py:664:
+        #s = (f"DECLARE_OBJ_CHECKERS({final_values['instancetype']}, {final_values['classtype']},\n"+

ERROR: line over 90 characters
#635: FILE: scripts/codeconverter/codeconverter/qom_macros.py:665:
+        #        f"                     {final_values['uppercase']}, {final_values['typename']})\n")

WARNING: line over 80 characters
#645: FILE: scripts/codeconverter/codeconverter/qom_macros.py:675:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

ERROR: line over 90 characters
#719: FILE: scripts/codeconverter/codeconverter/qom_macros.py:754:
+def find_type_checkers(files:FileList, name:str, group:str='uppercase') -> Iterable[TypeCheckerDeclaration]:

ERROR: line over 90 characters
#722: FILE: scripts/codeconverter/codeconverter/qom_macros.py:757:
+    for c in (DeclareInstanceChecker, DeclareClassCheckers, DeclareObjCheckers, ObjectDeclareType, ObjectDeclareSimpleType):

ERROR: line over 90 characters
#738: FILE: scripts/codeconverter/codeconverter/qom_macros.py:794:
+        user_classes = [TypeCheckMacro, DeclareObjCheckers, DeclareInstanceChecker, DeclareClassCheckers, InterfaceCheckMacro]

ERROR: line over 90 characters
#796: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:43:
+        return [m.group('arrayitem') for m in self.group_finditer(ArrayItem, 'arrayitems')]

WARNING: line over 80 characters
#820: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:66:
+    Common base class for type definitions (TypeInfo variables or OBJECT_DEFINE* macros)

WARNING: line over 80 characters
#987: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:245:
+            self.warn("%s class size type (%s) is not *Class?", self.name, classtype)

ERROR: line over 90 characters
#992: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:250:
+        self.debug("searching for simpletype declaration using %s as InstanceType", instancetype)

ERROR: line over 90 characters
#1005: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:263:
+        c = (f'OBJECT_DECLARE_SIMPLE_TYPE({self.group("instancetype")}, {self.group("lowercase")},\n'

WARNING: line over 80 characters
#1012: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:270:
+        # this will just ensure the caches for find_match() and matches_for_type()

ERROR: line over 90 characters
#1047: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:321:
+        #            self.warn("macro/constant type name is required for instance/class type")

WARNING: line over 80 characters
#1066: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:333:
+                self.warn("This will make type validation difficult in the future")

WARNING: line over 80 characters
#1069: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:336:
+        parent_uppercase = find_typename_uppercase(self.allfiles, parent_typename)

ERROR: line over 90 characters
#1071: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:338:
+            self.info("Can't find right uppercase name for parent type (%s)", parent_typename)

ERROR: line over 90 characters
#1073: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:340:
+                self.warn("Can't find right uppercase name for parent type (%s)", parent_typename)

WARNING: line over 80 characters
#1074: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:341:
+                self.warn("This will make type validation difficult in the future")

ERROR: line over 90 characters
#1096: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:346:
+        #checkers: List[TypeCheckerDeclaration] = list(find_type_checkers(self.allfiles, uppercase))

ERROR: line over 90 characters
#1098: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:348:
+        #    c.info("instance type checker declaration (%s) is here", c.group('uppercase'))

ERROR: line over 90 characters
#1102: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:352:
+        #        self.warn("Can't find where type checkers for %s (%s) are declared.  We will need them to validate sizes of %s",

ERROR: line over 90 characters
#1123: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:371:
+        #        self.warn("type at instance_size is %r.  Should instance_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1128: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:376:
+        #        self.warn("instance type checker for %s (%s) not found", typename, instancetype)

ERROR: line over 90 characters
#1142: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:390:
+        #        self.warn("type at class_size is %r.  Should class_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1147: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:395:
+        #        self.warn("class type checker for %s (%s) not found", typename, classtype)

WARNING: line over 80 characters
#1170: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:416:
+        newbegin += f'                            {instancetype}, {classtype},\n'

WARNING: line over 80 characters
#1171: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:417:
+        newbegin += f'                            {uppercase}, {parent_uppercase}'

WARNING: line over 80 characters
#1204: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:450:
+def find_type_definitions(files: FileList, uppercase: str) -> Iterable[TypeDefinition]:

ERROR: line over 90 characters
#1205: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:451:
+    types: List[Type[TypeDefinition]] = [TypeInfoVar, ObjectDefineType, ObjectDefineTypeExtended]

WARNING: line over 80 characters
#1217: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:463:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#1265: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:511:
+        instance_checkers = [c for c in find_type_checkers(self.allfiles, uppercase)

WARNING: line over 80 characters
#1297: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:543:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1302: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:548:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1311: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:557:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1313: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:559:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1329: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:575:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

WARNING: line over 80 characters
#1334: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:580:
+                self.warn("mismatching class type for %s (%s)", uppercase, classtype)

ERROR: line over 90 characters
#1351: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:597:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1377: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:623:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1382: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:628:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1391: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:637:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1393: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:639:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1414: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:660:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

ERROR: line over 90 characters
#1436: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:682:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1457: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:703:
+        #all_defines = [m for m in self.allfiles.matches_of_type(ExpressionDefine)]

ERROR: line over 90 characters
#1487: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:744:
+        if 'instance_size' in values and parent.get_raw_initializer_value('instance_size') != values['instance_size'].raw:

ERROR: line over 90 characters
#1493: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:749:
+        if 'class_size' in values and parent.get_raw_initializer_value('class_size') != values['class_size'].raw:

ERROR: line over 90 characters
#1564: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:871:
+            self.warn("can't identify the function where type_register_static(&%s) is called", self.name)

WARNING: line over 80 characters
#1613: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:912:
+            yield self.group_match('func_name').make_patch('type_register_static')

total: 44 errors, 34 warnings, 1701 lines checked

Patch 13/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

14/17 Checking commit 6d27c01b0bf2 (qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE)
WARNING: line over 80 characters
#228: FILE: include/qom/object.h:649:
+#define OBJECT_DECLARE_SIMPLE_TYPE(InstanceType, module_obj_name, MODULE_OBJ_NAME) \

WARNING: line over 80 characters
#233: FILE: include/qom/object.h:654:
+    DECLARE_INSTANCE_CHECKER(InstanceType, MODULE_OBJ_NAME, TYPE_##MODULE_OBJ_NAME)

total: 0 errors, 2 warnings, 192 lines checked

Patch 14/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
15/17 Checking commit 03acc8c3111e (qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros)
16/17 Checking commit eaa29811da80 (Use OBJECT_DECLARE_TYPE when possible)
WARNING: line over 80 characters
#153: FILE: hw/arm/vexpress.c:184:
+OBJECT_DECLARE_TYPE(VexpressMachineState, VexpressMachineClass, VEXPRESS_MACHINE)

WARNING: line over 80 characters
#970: FILE: include/hw/s390x/3270-ccw.h:34:
+OBJECT_DECLARE_TYPE(EmulatedCcw3270Device, EmulatedCcw3270Class, EMULATED_CCW_3270)

total: 0 errors, 2 warnings, 902 lines checked

Patch 16/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/17 Checking commit 3b4ff674f2e6 (Use OBJECT_DECLARE_SIMPLE_TYPE when possible)
WARNING: line over 80 characters
#46: FILE: backends/cryptodev-vhost-user.c:42:
+OBJECT_DECLARE_SIMPLE_TYPE(CryptoDevBackendVhostUser, CRYPTODEV_BACKEND_VHOST_USER)

total: 0 errors, 1 warnings, 6146 lines checked

Patch 17/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20200918204714.27276-1-ehabkost@redhat.com/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PULL 00/17] QOM queue, 2020-09-18
Posted by Peter Maydell 3 years, 7 months ago
On Fri, 18 Sep 2020 at 21:47, Eduardo Habkost <ehabkost@redhat.com> wrote:
>
> The following changes since commit 053a4177817db307ec854356e95b5b350800a216:
>
>   Merge remote-tracking branch 'remotes/philmd-gitlab/tags/fw_cfg-20200918' into staging (2020-09-18 16:34:26 +0100)
>
> are available in the Git repository at:
>
>   git://github.com/ehabkost/qemu.git tags/machine-next-pull-request
>
> for you to fetch changes up to 8063396bf3459a810d24e3efd6110b8480f0de5b:
>
>   Use OBJECT_DECLARE_SIMPLE_TYPE when possible (2020-09-18 14:12:32 -0400)
>
> ----------------------------------------------------------------
> QOM queue, 2020-09-18
>
> Fixes:
> * Error value corrections (Markus Armbruster)
> * Correct object_class_dynamic_cast_assert() documentation (Eduardo Habkost)
> * Ensure objects using QEMU_ALIGNED are properly aligned (Richard Henderson)
>
> QOM cleanups (Eduardo Habkost):
> * Rename some constants
> * Simplify parameters of OBJECT_DECLARE* macros
> * Additional DECLARE_*CHECKER* usage
> * Additional OBJECT_DECLARE_TYPE usage
> * Additional OBJECT_DECLARE_SIMPLE_TYPE usage
>

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/5.2
for any user-visible changes.

-- PMM

Re: [PULL 00/17] QOM queue, 2020-09-18
Posted by no-reply@patchew.org 3 years, 7 months ago
Patchew URL: https://patchew.org/QEMU/20200918204714.27276-1-ehabkost@redhat.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Type: series
Message-id: 20200918204714.27276-1-ehabkost@redhat.com
Subject: [PULL 00/17] QOM queue, 2020-09-18

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

From https://github.com/patchew-project/qemu
 - [tag update]      patchew/20200918204714.27276-1-ehabkost@redhat.com -> patchew/20200918204714.27276-1-ehabkost@redhat.com
Switched to a new branch 'test'
5a6b1fa Use OBJECT_DECLARE_SIMPLE_TYPE when possible
95d0783 Use OBJECT_DECLARE_TYPE when possible
41b1cb3 qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros
6932dc5 qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE
c3489dd scripts/codeconverter: Update to latest version
61f085d target/s390x: Set instance_align on S390CPU TypeInfo
2e70966 target/riscv: Set instance_align on RISCVCPU TypeInfo
8d4eca4 target/ppc: Set instance_align on PowerPCCPU TypeInfo
c3adeb2 target/arm: Set instance_align on CPUARM TypeInfo
c9b2e9e qom: Allow objects to be allocated with increased alignment
f442e8d qom: Correct error values in two contracts
9bae3de qom: Clean up object_property_get_enum()'s error value
d29bde2 qom: Correct object_class_dynamic_cast_assert() documentation
726e21f sifive: Use DECLARE_*CHECKER* macros
ebefe81 sifive: Move QOM typedefs and add missing includes
f195ea7 sifive_u: Rename memmap enum constants
34677c0 sifive_e: Rename memmap enum constants

=== OUTPUT BEGIN ===
1/17 Checking commit 34677c0f237d (sifive_e: Rename memmap enum constants)
WARNING: line over 80 characters
#86: FILE: hw/riscv/sifive_e.c:114:
+                          memmap[SIFIVE_E_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#131: FILE: hw/riscv/sifive_e.c:229:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_E_DEV_GPIO0].base);

total: 0 errors, 2 warnings, 186 lines checked

Patch 1/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
2/17 Checking commit f195ea7e9d40 (sifive_u: Rename memmap enum constants)
WARNING: line over 80 characters
#303: FILE: hw/riscv/sifive_u.c:531:
+                          memmap[SIFIVE_U_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#367: FILE: hw/riscv/sifive_u.c:734:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->prci), 0, memmap[SIFIVE_U_DEV_PRCI].base);

WARNING: line over 80 characters
#374: FILE: hw/riscv/sifive_u.c:740:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_U_DEV_GPIO].base);

total: 0 errors, 3 warnings, 412 lines checked

Patch 2/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
3/17 Checking commit ebefe8167326 (sifive: Move QOM typedefs and add missing includes)
4/17 Checking commit 726e21fa44a9 (sifive: Use DECLARE_*CHECKER* macros)
5/17 Checking commit d29bde217a9c (qom: Correct object_class_dynamic_cast_assert() documentation)
6/17 Checking commit 9bae3de62647 (qom: Clean up object_property_get_enum()'s error value)
7/17 Checking commit f442e8da2ff1 (qom: Correct error values in two contracts)
8/17 Checking commit c9b2e9ede568 (qom: Allow objects to be allocated with increased alignment)
WARNING: architecture specific defines should be avoided
#74: FILE: qom/object.c:694:
+#if __STDC_VERSION__ >= 201112L

total: 0 errors, 1 warnings, 84 lines checked

Patch 8/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
9/17 Checking commit c3adeb2f9398 (target/arm: Set instance_align on CPUARM TypeInfo)
10/17 Checking commit 8d4eca4f2078 (target/ppc: Set instance_align on PowerPCCPU TypeInfo)
11/17 Checking commit 2e70966b71cf (target/riscv: Set instance_align on RISCVCPU TypeInfo)
12/17 Checking commit 61f085dbe812 (target/s390x: Set instance_align on S390CPU TypeInfo)
13/17 Checking commit c3489ddd9af9 (scripts/codeconverter: Update to latest version)
ERROR: line over 90 characters
#26: FILE: scripts/codeconverter/codeconverter/patching.py:8:
+from typing import IO, Match, NamedTuple, Optional, Literal, Iterable, Type, Dict, List, Any, TypeVar, NewType, Tuple, Union

ERROR: line over 90 characters
#78: FILE: scripts/codeconverter/codeconverter/patching.py:184:
+    def group_finditer(self, klass: Type['FileMatch'], group: Union[str, int]) -> Iterable['FileMatch']:

ERROR: line over 90 characters
#85: FILE: scripts/codeconverter/codeconverter/patching.py:191:
+    def try_group_match(self, klass: Type['FileMatch'], group: Union[str, int]) -> Optional['FileMatch']:

WARNING: line over 80 characters
#161: FILE: scripts/codeconverter/codeconverter/patching.py:289:
+    def find_match(self, t: Type[T], name: str, group: str='name') -> Optional[T]:

WARNING: line over 80 characters
#194: FILE: scripts/codeconverter/codeconverter/patching.py:331:
+        matches = [klass(self, m) for m in klass.finditer(self.original_content)]

ERROR: line over 90 characters
#221: FILE: scripts/codeconverter/codeconverter/patching.py:370:
+    def scan_for_matches(self, class_names: Optional[List[str]]=None) -> Iterable[FileMatch]:

WARNING: line over 80 characters
#337: FILE: scripts/codeconverter/codeconverter/qom_macros.py:28:
+    regexp = S(r'^[ \t]*#[ \t]*define', CPP_SPACE, NAMED('name', RE_IDENTIFIER), r'\b')

ERROR: line over 90 characters
#394: FILE: scripts/codeconverter/codeconverter/qom_macros.py:444:
+               r'\s*\(\s*', OR(NAMED('instancetype', RE_IDENTIFIER), RE_TYPE, name='c_type'),

ERROR: line over 90 characters
#457: FILE: scripts/codeconverter/codeconverter/qom_macros.py:513:
+               OR(RE_IDENTIFIER, RE_STRING, RE_MACRO_CONCAT, RE_FUN_CALL, name='typename'), SP,

WARNING: line over 80 characters
#521: FILE: scripts/codeconverter/codeconverter/qom_macros.py:575:
+    """Common base class for code that will look at a set of type declarations"""

ERROR: line over 90 characters
#531: FILE: scripts/codeconverter/codeconverter/qom_macros.py:583:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareInstanceChecker, DeclareInstanceType,

WARNING: line over 80 characters
#532: FILE: scripts/codeconverter/codeconverter/qom_macros.py:584:
+                                                   DeclareClassCheckers, DeclareClassType,

WARNING: line over 80 characters
#550: FILE: scripts/codeconverter/codeconverter/qom_macros.py:602:
+            field_dict = dict((f, v.pop() if v else None) for f,v in fvalues.items())

WARNING: line over 80 characters
#551: FILE: scripts/codeconverter/codeconverter/qom_macros.py:603:
+            yield from self.gen_patches_for_type(uppercase, checkers, field_dict)

WARNING: line over 80 characters
#553: FILE: scripts/codeconverter/codeconverter/qom_macros.py:605:
+    def find_conflicts(self, uppercase: str, checkers: List[TypeDeclaration]) -> bool:

WARNING: line over 80 characters
#554: FILE: scripts/codeconverter/codeconverter/qom_macros.py:606:
+        """Look for conflicting declarations that would make it unsafe to add new ones"""

WARNING: line over 80 characters
#557: FILE: scripts/codeconverter/codeconverter/qom_macros.py:609:
+        conflicting.extend(chain(self.file.find_matches(DefineDirective, uppercase),

ERROR: line over 90 characters
#558: FILE: scripts/codeconverter/codeconverter/qom_macros.py:610:
+                                 self.file.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#559: FILE: scripts/codeconverter/codeconverter/qom_macros.py:611:
+                                 self.file.find_matches(DeclareClassType, uppercase, 'uppercase'),

ERROR: line over 90 characters
#560: FILE: scripts/codeconverter/codeconverter/qom_macros.py:612:
+                                 self.file.find_matches(DeclareInstanceType, uppercase, 'uppercase')))

ERROR: line over 90 characters
#563: FILE: scripts/codeconverter/codeconverter/qom_macros.py:615:
+        conflicting.extend(o for o in chain(self.allfiles.find_matches(DeclareInstanceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#564: FILE: scripts/codeconverter/codeconverter/qom_macros.py:616:
+                                            self.allfiles.find_matches(DeclareClassCheckers, uppercase, 'uppercase'),

ERROR: line over 90 characters
#565: FILE: scripts/codeconverter/codeconverter/qom_macros.py:617:
+                                            self.allfiles.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#566: FILE: scripts/codeconverter/codeconverter/qom_macros.py:618:
+                                            self.allfiles.find_matches(DefineDirective, uppercase))

WARNING: line over 80 characters
#568: FILE: scripts/codeconverter/codeconverter/qom_macros.py:620:
+                               # if both are .c files, there's no conflict at all:

WARNING: line over 80 characters
#585: FILE: scripts/codeconverter/codeconverter/qom_macros.py:637:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#595: FILE: scripts/codeconverter/codeconverter/qom_macros.py:647:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#625: FILE: scripts/codeconverter/codeconverter/qom_macros.py:655:
+            yield first_checker.prepend(f'DECLARE_INSTANCE_TYPE({uppercase}, void)\n')

WARNING: line over 80 characters
#627: FILE: scripts/codeconverter/codeconverter/qom_macros.py:657:
+            yield first_checker.prepend(f'DECLARE_CLASS_TYPE({uppercase}, void)\n')

ERROR: line over 90 characters
#634: FILE: scripts/codeconverter/codeconverter/qom_macros.py:664:
+        #s = (f"DECLARE_OBJ_CHECKERS({final_values['instancetype']}, {final_values['classtype']},\n"+

ERROR: line over 90 characters
#635: FILE: scripts/codeconverter/codeconverter/qom_macros.py:665:
+        #        f"                     {final_values['uppercase']}, {final_values['typename']})\n")

WARNING: line over 80 characters
#645: FILE: scripts/codeconverter/codeconverter/qom_macros.py:675:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

ERROR: line over 90 characters
#719: FILE: scripts/codeconverter/codeconverter/qom_macros.py:754:
+def find_type_checkers(files:FileList, name:str, group:str='uppercase') -> Iterable[TypeCheckerDeclaration]:

ERROR: line over 90 characters
#722: FILE: scripts/codeconverter/codeconverter/qom_macros.py:757:
+    for c in (DeclareInstanceChecker, DeclareClassCheckers, DeclareObjCheckers, ObjectDeclareType, ObjectDeclareSimpleType):

ERROR: line over 90 characters
#738: FILE: scripts/codeconverter/codeconverter/qom_macros.py:794:
+        user_classes = [TypeCheckMacro, DeclareObjCheckers, DeclareInstanceChecker, DeclareClassCheckers, InterfaceCheckMacro]

ERROR: line over 90 characters
#796: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:43:
+        return [m.group('arrayitem') for m in self.group_finditer(ArrayItem, 'arrayitems')]

WARNING: line over 80 characters
#820: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:66:
+    Common base class for type definitions (TypeInfo variables or OBJECT_DEFINE* macros)

WARNING: line over 80 characters
#987: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:245:
+            self.warn("%s class size type (%s) is not *Class?", self.name, classtype)

ERROR: line over 90 characters
#992: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:250:
+        self.debug("searching for simpletype declaration using %s as InstanceType", instancetype)

ERROR: line over 90 characters
#1005: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:263:
+        c = (f'OBJECT_DECLARE_SIMPLE_TYPE({self.group("instancetype")}, {self.group("lowercase")},\n'

WARNING: line over 80 characters
#1012: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:270:
+        # this will just ensure the caches for find_match() and matches_for_type()

ERROR: line over 90 characters
#1047: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:321:
+        #            self.warn("macro/constant type name is required for instance/class type")

WARNING: line over 80 characters
#1066: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:333:
+                self.warn("This will make type validation difficult in the future")

WARNING: line over 80 characters
#1069: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:336:
+        parent_uppercase = find_typename_uppercase(self.allfiles, parent_typename)

ERROR: line over 90 characters
#1071: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:338:
+            self.info("Can't find right uppercase name for parent type (%s)", parent_typename)

ERROR: line over 90 characters
#1073: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:340:
+                self.warn("Can't find right uppercase name for parent type (%s)", parent_typename)

WARNING: line over 80 characters
#1074: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:341:
+                self.warn("This will make type validation difficult in the future")

ERROR: line over 90 characters
#1096: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:346:
+        #checkers: List[TypeCheckerDeclaration] = list(find_type_checkers(self.allfiles, uppercase))

ERROR: line over 90 characters
#1098: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:348:
+        #    c.info("instance type checker declaration (%s) is here", c.group('uppercase'))

ERROR: line over 90 characters
#1102: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:352:
+        #        self.warn("Can't find where type checkers for %s (%s) are declared.  We will need them to validate sizes of %s",

ERROR: line over 90 characters
#1123: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:371:
+        #        self.warn("type at instance_size is %r.  Should instance_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1128: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:376:
+        #        self.warn("instance type checker for %s (%s) not found", typename, instancetype)

ERROR: line over 90 characters
#1142: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:390:
+        #        self.warn("type at class_size is %r.  Should class_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1147: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:395:
+        #        self.warn("class type checker for %s (%s) not found", typename, classtype)

WARNING: line over 80 characters
#1170: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:416:
+        newbegin += f'                            {instancetype}, {classtype},\n'

WARNING: line over 80 characters
#1171: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:417:
+        newbegin += f'                            {uppercase}, {parent_uppercase}'

WARNING: line over 80 characters
#1204: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:450:
+def find_type_definitions(files: FileList, uppercase: str) -> Iterable[TypeDefinition]:

ERROR: line over 90 characters
#1205: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:451:
+    types: List[Type[TypeDefinition]] = [TypeInfoVar, ObjectDefineType, ObjectDefineTypeExtended]

WARNING: line over 80 characters
#1217: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:463:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#1265: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:511:
+        instance_checkers = [c for c in find_type_checkers(self.allfiles, uppercase)

WARNING: line over 80 characters
#1297: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:543:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1302: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:548:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1311: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:557:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1313: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:559:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1329: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:575:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

WARNING: line over 80 characters
#1334: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:580:
+                self.warn("mismatching class type for %s (%s)", uppercase, classtype)

ERROR: line over 90 characters
#1351: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:597:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1377: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:623:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1382: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:628:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1391: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:637:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1393: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:639:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1414: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:660:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

ERROR: line over 90 characters
#1436: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:682:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1457: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:703:
+        #all_defines = [m for m in self.allfiles.matches_of_type(ExpressionDefine)]

ERROR: line over 90 characters
#1487: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:744:
+        if 'instance_size' in values and parent.get_raw_initializer_value('instance_size') != values['instance_size'].raw:

ERROR: line over 90 characters
#1493: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:749:
+        if 'class_size' in values and parent.get_raw_initializer_value('class_size') != values['class_size'].raw:

ERROR: line over 90 characters
#1564: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:871:
+            self.warn("can't identify the function where type_register_static(&%s) is called", self.name)

WARNING: line over 80 characters
#1613: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:912:
+            yield self.group_match('func_name').make_patch('type_register_static')

total: 44 errors, 34 warnings, 1701 lines checked

Patch 13/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

14/17 Checking commit 6932dc5c6f5b (qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE)
WARNING: line over 80 characters
#228: FILE: include/qom/object.h:649:
+#define OBJECT_DECLARE_SIMPLE_TYPE(InstanceType, module_obj_name, MODULE_OBJ_NAME) \

WARNING: line over 80 characters
#233: FILE: include/qom/object.h:654:
+    DECLARE_INSTANCE_CHECKER(InstanceType, MODULE_OBJ_NAME, TYPE_##MODULE_OBJ_NAME)

total: 0 errors, 2 warnings, 192 lines checked

Patch 14/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
15/17 Checking commit 41b1cb33f3c8 (qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros)
16/17 Checking commit 95d078312670 (Use OBJECT_DECLARE_TYPE when possible)
WARNING: line over 80 characters
#153: FILE: hw/arm/vexpress.c:184:
+OBJECT_DECLARE_TYPE(VexpressMachineState, VexpressMachineClass, VEXPRESS_MACHINE)

WARNING: line over 80 characters
#970: FILE: include/hw/s390x/3270-ccw.h:34:
+OBJECT_DECLARE_TYPE(EmulatedCcw3270Device, EmulatedCcw3270Class, EMULATED_CCW_3270)

total: 0 errors, 2 warnings, 902 lines checked

Patch 16/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/17 Checking commit 5a6b1fad40e9 (Use OBJECT_DECLARE_SIMPLE_TYPE when possible)
WARNING: line over 80 characters
#46: FILE: backends/cryptodev-vhost-user.c:42:
+OBJECT_DECLARE_SIMPLE_TYPE(CryptoDevBackendVhostUser, CRYPTODEV_BACKEND_VHOST_USER)

total: 0 errors, 1 warnings, 6146 lines checked

Patch 17/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20200918204714.27276-1-ehabkost@redhat.com/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PULL 00/17] QOM queue, 2020-09-18
Posted by no-reply@patchew.org 3 years, 7 months ago
Patchew URL: https://patchew.org/QEMU/20200918204714.27276-1-ehabkost@redhat.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Type: series
Message-id: 20200918204714.27276-1-ehabkost@redhat.com
Subject: [PULL 00/17] QOM queue, 2020-09-18

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
 - [tag update]      patchew/20200918204714.27276-1-ehabkost@redhat.com -> patchew/20200918204714.27276-1-ehabkost@redhat.com
Switched to a new branch 'test'
76fd418 Use OBJECT_DECLARE_SIMPLE_TYPE when possible
9c82f12 Use OBJECT_DECLARE_TYPE when possible
a7bf367 qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros
85ab819 qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE
46a0c5d scripts/codeconverter: Update to latest version
c35a467 target/s390x: Set instance_align on S390CPU TypeInfo
67ee71c target/riscv: Set instance_align on RISCVCPU TypeInfo
c6b9c7a target/ppc: Set instance_align on PowerPCCPU TypeInfo
e83419e target/arm: Set instance_align on CPUARM TypeInfo
dabf1db qom: Allow objects to be allocated with increased alignment
9bc8d41 qom: Correct error values in two contracts
af37491 qom: Clean up object_property_get_enum()'s error value
4d928e3 qom: Correct object_class_dynamic_cast_assert() documentation
ef1fca5 sifive: Use DECLARE_*CHECKER* macros
dd8e67f sifive: Move QOM typedefs and add missing includes
542cd36 sifive_u: Rename memmap enum constants
a07fdaf sifive_e: Rename memmap enum constants

=== OUTPUT BEGIN ===
1/17 Checking commit a07fdaf48ece (sifive_e: Rename memmap enum constants)
WARNING: line over 80 characters
#86: FILE: hw/riscv/sifive_e.c:114:
+                          memmap[SIFIVE_E_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#131: FILE: hw/riscv/sifive_e.c:229:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_E_DEV_GPIO0].base);

total: 0 errors, 2 warnings, 186 lines checked

Patch 1/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
2/17 Checking commit 542cd36db1b7 (sifive_u: Rename memmap enum constants)
WARNING: line over 80 characters
#303: FILE: hw/riscv/sifive_u.c:531:
+                          memmap[SIFIVE_U_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#367: FILE: hw/riscv/sifive_u.c:734:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->prci), 0, memmap[SIFIVE_U_DEV_PRCI].base);

WARNING: line over 80 characters
#374: FILE: hw/riscv/sifive_u.c:740:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_U_DEV_GPIO].base);

total: 0 errors, 3 warnings, 412 lines checked

Patch 2/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
3/17 Checking commit dd8e67f840f5 (sifive: Move QOM typedefs and add missing includes)
4/17 Checking commit ef1fca5ea9b8 (sifive: Use DECLARE_*CHECKER* macros)
5/17 Checking commit 4d928e3c7f55 (qom: Correct object_class_dynamic_cast_assert() documentation)
6/17 Checking commit af37491b5183 (qom: Clean up object_property_get_enum()'s error value)
7/17 Checking commit 9bc8d41d1a5b (qom: Correct error values in two contracts)
8/17 Checking commit dabf1db9bdca (qom: Allow objects to be allocated with increased alignment)
WARNING: architecture specific defines should be avoided
#74: FILE: qom/object.c:694:
+#if __STDC_VERSION__ >= 201112L

total: 0 errors, 1 warnings, 84 lines checked

Patch 8/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
9/17 Checking commit e83419eb6288 (target/arm: Set instance_align on CPUARM TypeInfo)
10/17 Checking commit c6b9c7a5d5a4 (target/ppc: Set instance_align on PowerPCCPU TypeInfo)
11/17 Checking commit 67ee71cd9bad (target/riscv: Set instance_align on RISCVCPU TypeInfo)
12/17 Checking commit c35a4672d7e2 (target/s390x: Set instance_align on S390CPU TypeInfo)
13/17 Checking commit 46a0c5dd79f5 (scripts/codeconverter: Update to latest version)
ERROR: line over 90 characters
#26: FILE: scripts/codeconverter/codeconverter/patching.py:8:
+from typing import IO, Match, NamedTuple, Optional, Literal, Iterable, Type, Dict, List, Any, TypeVar, NewType, Tuple, Union

ERROR: line over 90 characters
#78: FILE: scripts/codeconverter/codeconverter/patching.py:184:
+    def group_finditer(self, klass: Type['FileMatch'], group: Union[str, int]) -> Iterable['FileMatch']:

ERROR: line over 90 characters
#85: FILE: scripts/codeconverter/codeconverter/patching.py:191:
+    def try_group_match(self, klass: Type['FileMatch'], group: Union[str, int]) -> Optional['FileMatch']:

WARNING: line over 80 characters
#161: FILE: scripts/codeconverter/codeconverter/patching.py:289:
+    def find_match(self, t: Type[T], name: str, group: str='name') -> Optional[T]:

WARNING: line over 80 characters
#194: FILE: scripts/codeconverter/codeconverter/patching.py:331:
+        matches = [klass(self, m) for m in klass.finditer(self.original_content)]

ERROR: line over 90 characters
#221: FILE: scripts/codeconverter/codeconverter/patching.py:370:
+    def scan_for_matches(self, class_names: Optional[List[str]]=None) -> Iterable[FileMatch]:

WARNING: line over 80 characters
#337: FILE: scripts/codeconverter/codeconverter/qom_macros.py:28:
+    regexp = S(r'^[ \t]*#[ \t]*define', CPP_SPACE, NAMED('name', RE_IDENTIFIER), r'\b')

ERROR: line over 90 characters
#394: FILE: scripts/codeconverter/codeconverter/qom_macros.py:444:
+               r'\s*\(\s*', OR(NAMED('instancetype', RE_IDENTIFIER), RE_TYPE, name='c_type'),

ERROR: line over 90 characters
#457: FILE: scripts/codeconverter/codeconverter/qom_macros.py:513:
+               OR(RE_IDENTIFIER, RE_STRING, RE_MACRO_CONCAT, RE_FUN_CALL, name='typename'), SP,

WARNING: line over 80 characters
#521: FILE: scripts/codeconverter/codeconverter/qom_macros.py:575:
+    """Common base class for code that will look at a set of type declarations"""

ERROR: line over 90 characters
#531: FILE: scripts/codeconverter/codeconverter/qom_macros.py:583:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareInstanceChecker, DeclareInstanceType,

WARNING: line over 80 characters
#532: FILE: scripts/codeconverter/codeconverter/qom_macros.py:584:
+                                                   DeclareClassCheckers, DeclareClassType,

WARNING: line over 80 characters
#550: FILE: scripts/codeconverter/codeconverter/qom_macros.py:602:
+            field_dict = dict((f, v.pop() if v else None) for f,v in fvalues.items())

WARNING: line over 80 characters
#551: FILE: scripts/codeconverter/codeconverter/qom_macros.py:603:
+            yield from self.gen_patches_for_type(uppercase, checkers, field_dict)

WARNING: line over 80 characters
#553: FILE: scripts/codeconverter/codeconverter/qom_macros.py:605:
+    def find_conflicts(self, uppercase: str, checkers: List[TypeDeclaration]) -> bool:

WARNING: line over 80 characters
#554: FILE: scripts/codeconverter/codeconverter/qom_macros.py:606:
+        """Look for conflicting declarations that would make it unsafe to add new ones"""

WARNING: line over 80 characters
#557: FILE: scripts/codeconverter/codeconverter/qom_macros.py:609:
+        conflicting.extend(chain(self.file.find_matches(DefineDirective, uppercase),

ERROR: line over 90 characters
#558: FILE: scripts/codeconverter/codeconverter/qom_macros.py:610:
+                                 self.file.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#559: FILE: scripts/codeconverter/codeconverter/qom_macros.py:611:
+                                 self.file.find_matches(DeclareClassType, uppercase, 'uppercase'),

ERROR: line over 90 characters
#560: FILE: scripts/codeconverter/codeconverter/qom_macros.py:612:
+                                 self.file.find_matches(DeclareInstanceType, uppercase, 'uppercase')))

ERROR: line over 90 characters
#563: FILE: scripts/codeconverter/codeconverter/qom_macros.py:615:
+        conflicting.extend(o for o in chain(self.allfiles.find_matches(DeclareInstanceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#564: FILE: scripts/codeconverter/codeconverter/qom_macros.py:616:
+                                            self.allfiles.find_matches(DeclareClassCheckers, uppercase, 'uppercase'),

ERROR: line over 90 characters
#565: FILE: scripts/codeconverter/codeconverter/qom_macros.py:617:
+                                            self.allfiles.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#566: FILE: scripts/codeconverter/codeconverter/qom_macros.py:618:
+                                            self.allfiles.find_matches(DefineDirective, uppercase))

WARNING: line over 80 characters
#568: FILE: scripts/codeconverter/codeconverter/qom_macros.py:620:
+                               # if both are .c files, there's no conflict at all:

WARNING: line over 80 characters
#585: FILE: scripts/codeconverter/codeconverter/qom_macros.py:637:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#595: FILE: scripts/codeconverter/codeconverter/qom_macros.py:647:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#625: FILE: scripts/codeconverter/codeconverter/qom_macros.py:655:
+            yield first_checker.prepend(f'DECLARE_INSTANCE_TYPE({uppercase}, void)\n')

WARNING: line over 80 characters
#627: FILE: scripts/codeconverter/codeconverter/qom_macros.py:657:
+            yield first_checker.prepend(f'DECLARE_CLASS_TYPE({uppercase}, void)\n')

ERROR: line over 90 characters
#634: FILE: scripts/codeconverter/codeconverter/qom_macros.py:664:
+        #s = (f"DECLARE_OBJ_CHECKERS({final_values['instancetype']}, {final_values['classtype']},\n"+

ERROR: line over 90 characters
#635: FILE: scripts/codeconverter/codeconverter/qom_macros.py:665:
+        #        f"                     {final_values['uppercase']}, {final_values['typename']})\n")

WARNING: line over 80 characters
#645: FILE: scripts/codeconverter/codeconverter/qom_macros.py:675:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

ERROR: line over 90 characters
#719: FILE: scripts/codeconverter/codeconverter/qom_macros.py:754:
+def find_type_checkers(files:FileList, name:str, group:str='uppercase') -> Iterable[TypeCheckerDeclaration]:

ERROR: line over 90 characters
#722: FILE: scripts/codeconverter/codeconverter/qom_macros.py:757:
+    for c in (DeclareInstanceChecker, DeclareClassCheckers, DeclareObjCheckers, ObjectDeclareType, ObjectDeclareSimpleType):

ERROR: line over 90 characters
#738: FILE: scripts/codeconverter/codeconverter/qom_macros.py:794:
+        user_classes = [TypeCheckMacro, DeclareObjCheckers, DeclareInstanceChecker, DeclareClassCheckers, InterfaceCheckMacro]

ERROR: line over 90 characters
#796: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:43:
+        return [m.group('arrayitem') for m in self.group_finditer(ArrayItem, 'arrayitems')]

WARNING: line over 80 characters
#820: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:66:
+    Common base class for type definitions (TypeInfo variables or OBJECT_DEFINE* macros)

WARNING: line over 80 characters
#987: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:245:
+            self.warn("%s class size type (%s) is not *Class?", self.name, classtype)

ERROR: line over 90 characters
#992: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:250:
+        self.debug("searching for simpletype declaration using %s as InstanceType", instancetype)

ERROR: line over 90 characters
#1005: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:263:
+        c = (f'OBJECT_DECLARE_SIMPLE_TYPE({self.group("instancetype")}, {self.group("lowercase")},\n'

WARNING: line over 80 characters
#1012: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:270:
+        # this will just ensure the caches for find_match() and matches_for_type()

ERROR: line over 90 characters
#1047: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:321:
+        #            self.warn("macro/constant type name is required for instance/class type")

WARNING: line over 80 characters
#1066: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:333:
+                self.warn("This will make type validation difficult in the future")

WARNING: line over 80 characters
#1069: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:336:
+        parent_uppercase = find_typename_uppercase(self.allfiles, parent_typename)

ERROR: line over 90 characters
#1071: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:338:
+            self.info("Can't find right uppercase name for parent type (%s)", parent_typename)

ERROR: line over 90 characters
#1073: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:340:
+                self.warn("Can't find right uppercase name for parent type (%s)", parent_typename)

WARNING: line over 80 characters
#1074: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:341:
+                self.warn("This will make type validation difficult in the future")

ERROR: line over 90 characters
#1096: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:346:
+        #checkers: List[TypeCheckerDeclaration] = list(find_type_checkers(self.allfiles, uppercase))

ERROR: line over 90 characters
#1098: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:348:
+        #    c.info("instance type checker declaration (%s) is here", c.group('uppercase'))

ERROR: line over 90 characters
#1102: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:352:
+        #        self.warn("Can't find where type checkers for %s (%s) are declared.  We will need them to validate sizes of %s",

ERROR: line over 90 characters
#1123: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:371:
+        #        self.warn("type at instance_size is %r.  Should instance_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1128: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:376:
+        #        self.warn("instance type checker for %s (%s) not found", typename, instancetype)

ERROR: line over 90 characters
#1142: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:390:
+        #        self.warn("type at class_size is %r.  Should class_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1147: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:395:
+        #        self.warn("class type checker for %s (%s) not found", typename, classtype)

WARNING: line over 80 characters
#1170: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:416:
+        newbegin += f'                            {instancetype}, {classtype},\n'

WARNING: line over 80 characters
#1171: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:417:
+        newbegin += f'                            {uppercase}, {parent_uppercase}'

WARNING: line over 80 characters
#1204: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:450:
+def find_type_definitions(files: FileList, uppercase: str) -> Iterable[TypeDefinition]:

ERROR: line over 90 characters
#1205: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:451:
+    types: List[Type[TypeDefinition]] = [TypeInfoVar, ObjectDefineType, ObjectDefineTypeExtended]

WARNING: line over 80 characters
#1217: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:463:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#1265: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:511:
+        instance_checkers = [c for c in find_type_checkers(self.allfiles, uppercase)

WARNING: line over 80 characters
#1297: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:543:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1302: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:548:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1311: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:557:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1313: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:559:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1329: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:575:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

WARNING: line over 80 characters
#1334: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:580:
+                self.warn("mismatching class type for %s (%s)", uppercase, classtype)

ERROR: line over 90 characters
#1351: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:597:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1377: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:623:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1382: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:628:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1391: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:637:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1393: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:639:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1414: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:660:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

ERROR: line over 90 characters
#1436: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:682:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1457: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:703:
+        #all_defines = [m for m in self.allfiles.matches_of_type(ExpressionDefine)]

ERROR: line over 90 characters
#1487: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:744:
+        if 'instance_size' in values and parent.get_raw_initializer_value('instance_size') != values['instance_size'].raw:

ERROR: line over 90 characters
#1493: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:749:
+        if 'class_size' in values and parent.get_raw_initializer_value('class_size') != values['class_size'].raw:

ERROR: line over 90 characters
#1564: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:871:
+            self.warn("can't identify the function where type_register_static(&%s) is called", self.name)

WARNING: line over 80 characters
#1613: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:912:
+            yield self.group_match('func_name').make_patch('type_register_static')

total: 44 errors, 34 warnings, 1701 lines checked

Patch 13/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

14/17 Checking commit 85ab81939e08 (qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE)
WARNING: line over 80 characters
#228: FILE: include/qom/object.h:649:
+#define OBJECT_DECLARE_SIMPLE_TYPE(InstanceType, module_obj_name, MODULE_OBJ_NAME) \

WARNING: line over 80 characters
#233: FILE: include/qom/object.h:654:
+    DECLARE_INSTANCE_CHECKER(InstanceType, MODULE_OBJ_NAME, TYPE_##MODULE_OBJ_NAME)

total: 0 errors, 2 warnings, 192 lines checked

Patch 14/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
15/17 Checking commit a7bf367e930b (qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros)
16/17 Checking commit 9c82f121a0ac (Use OBJECT_DECLARE_TYPE when possible)
WARNING: line over 80 characters
#153: FILE: hw/arm/vexpress.c:184:
+OBJECT_DECLARE_TYPE(VexpressMachineState, VexpressMachineClass, VEXPRESS_MACHINE)

WARNING: line over 80 characters
#970: FILE: include/hw/s390x/3270-ccw.h:34:
+OBJECT_DECLARE_TYPE(EmulatedCcw3270Device, EmulatedCcw3270Class, EMULATED_CCW_3270)

total: 0 errors, 2 warnings, 902 lines checked

Patch 16/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/17 Checking commit 76fd418b97d9 (Use OBJECT_DECLARE_SIMPLE_TYPE when possible)
WARNING: line over 80 characters
#46: FILE: backends/cryptodev-vhost-user.c:42:
+OBJECT_DECLARE_SIMPLE_TYPE(CryptoDevBackendVhostUser, CRYPTODEV_BACKEND_VHOST_USER)

total: 0 errors, 1 warnings, 6146 lines checked

Patch 17/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20200918204714.27276-1-ehabkost@redhat.com/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PULL 00/17] QOM queue, 2020-09-18
Posted by no-reply@patchew.org 3 years, 7 months ago
Patchew URL: https://patchew.org/QEMU/20200918204714.27276-1-ehabkost@redhat.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Type: series
Message-id: 20200918204714.27276-1-ehabkost@redhat.com
Subject: [PULL 00/17] QOM queue, 2020-09-18

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
 - [tag update]      patchew/20200918204714.27276-1-ehabkost@redhat.com -> patchew/20200918204714.27276-1-ehabkost@redhat.com
Switched to a new branch 'test'
f6c74dd Use OBJECT_DECLARE_SIMPLE_TYPE when possible
8272134 Use OBJECT_DECLARE_TYPE when possible
5185bc1 qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros
43d39ef qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE
dd1224a scripts/codeconverter: Update to latest version
f874a90 target/s390x: Set instance_align on S390CPU TypeInfo
28a1f3a target/riscv: Set instance_align on RISCVCPU TypeInfo
2bea693 target/ppc: Set instance_align on PowerPCCPU TypeInfo
21154be target/arm: Set instance_align on CPUARM TypeInfo
a7c4b0a qom: Allow objects to be allocated with increased alignment
8f20dae qom: Correct error values in two contracts
e12e839 qom: Clean up object_property_get_enum()'s error value
c57d948 qom: Correct object_class_dynamic_cast_assert() documentation
ceb22c8 sifive: Use DECLARE_*CHECKER* macros
4f27d5d sifive: Move QOM typedefs and add missing includes
5bafd89 sifive_u: Rename memmap enum constants
87c152d sifive_e: Rename memmap enum constants

=== OUTPUT BEGIN ===
1/17 Checking commit 87c152dcf03d (sifive_e: Rename memmap enum constants)
WARNING: line over 80 characters
#86: FILE: hw/riscv/sifive_e.c:114:
+                          memmap[SIFIVE_E_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#131: FILE: hw/riscv/sifive_e.c:229:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_E_DEV_GPIO0].base);

total: 0 errors, 2 warnings, 186 lines checked

Patch 1/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
2/17 Checking commit 5bafd89b66d5 (sifive_u: Rename memmap enum constants)
WARNING: line over 80 characters
#303: FILE: hw/riscv/sifive_u.c:531:
+                          memmap[SIFIVE_U_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#367: FILE: hw/riscv/sifive_u.c:734:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->prci), 0, memmap[SIFIVE_U_DEV_PRCI].base);

WARNING: line over 80 characters
#374: FILE: hw/riscv/sifive_u.c:740:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_U_DEV_GPIO].base);

total: 0 errors, 3 warnings, 412 lines checked

Patch 2/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
3/17 Checking commit 4f27d5da8e4b (sifive: Move QOM typedefs and add missing includes)
4/17 Checking commit ceb22c81179f (sifive: Use DECLARE_*CHECKER* macros)
5/17 Checking commit c57d9480b4b6 (qom: Correct object_class_dynamic_cast_assert() documentation)
6/17 Checking commit e12e839c4ad7 (qom: Clean up object_property_get_enum()'s error value)
7/17 Checking commit 8f20daefe95f (qom: Correct error values in two contracts)
8/17 Checking commit a7c4b0a56a69 (qom: Allow objects to be allocated with increased alignment)
WARNING: architecture specific defines should be avoided
#74: FILE: qom/object.c:694:
+#if __STDC_VERSION__ >= 201112L

total: 0 errors, 1 warnings, 84 lines checked

Patch 8/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
9/17 Checking commit 21154bec67a2 (target/arm: Set instance_align on CPUARM TypeInfo)
10/17 Checking commit 2bea6934f453 (target/ppc: Set instance_align on PowerPCCPU TypeInfo)
11/17 Checking commit 28a1f3afc08d (target/riscv: Set instance_align on RISCVCPU TypeInfo)
12/17 Checking commit f874a90dd3a9 (target/s390x: Set instance_align on S390CPU TypeInfo)
13/17 Checking commit dd1224ac349f (scripts/codeconverter: Update to latest version)
ERROR: line over 90 characters
#26: FILE: scripts/codeconverter/codeconverter/patching.py:8:
+from typing import IO, Match, NamedTuple, Optional, Literal, Iterable, Type, Dict, List, Any, TypeVar, NewType, Tuple, Union

ERROR: line over 90 characters
#78: FILE: scripts/codeconverter/codeconverter/patching.py:184:
+    def group_finditer(self, klass: Type['FileMatch'], group: Union[str, int]) -> Iterable['FileMatch']:

ERROR: line over 90 characters
#85: FILE: scripts/codeconverter/codeconverter/patching.py:191:
+    def try_group_match(self, klass: Type['FileMatch'], group: Union[str, int]) -> Optional['FileMatch']:

WARNING: line over 80 characters
#161: FILE: scripts/codeconverter/codeconverter/patching.py:289:
+    def find_match(self, t: Type[T], name: str, group: str='name') -> Optional[T]:

WARNING: line over 80 characters
#194: FILE: scripts/codeconverter/codeconverter/patching.py:331:
+        matches = [klass(self, m) for m in klass.finditer(self.original_content)]

ERROR: line over 90 characters
#221: FILE: scripts/codeconverter/codeconverter/patching.py:370:
+    def scan_for_matches(self, class_names: Optional[List[str]]=None) -> Iterable[FileMatch]:

WARNING: line over 80 characters
#337: FILE: scripts/codeconverter/codeconverter/qom_macros.py:28:
+    regexp = S(r'^[ \t]*#[ \t]*define', CPP_SPACE, NAMED('name', RE_IDENTIFIER), r'\b')

ERROR: line over 90 characters
#394: FILE: scripts/codeconverter/codeconverter/qom_macros.py:444:
+               r'\s*\(\s*', OR(NAMED('instancetype', RE_IDENTIFIER), RE_TYPE, name='c_type'),

ERROR: line over 90 characters
#457: FILE: scripts/codeconverter/codeconverter/qom_macros.py:513:
+               OR(RE_IDENTIFIER, RE_STRING, RE_MACRO_CONCAT, RE_FUN_CALL, name='typename'), SP,

WARNING: line over 80 characters
#521: FILE: scripts/codeconverter/codeconverter/qom_macros.py:575:
+    """Common base class for code that will look at a set of type declarations"""

ERROR: line over 90 characters
#531: FILE: scripts/codeconverter/codeconverter/qom_macros.py:583:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareInstanceChecker, DeclareInstanceType,

WARNING: line over 80 characters
#532: FILE: scripts/codeconverter/codeconverter/qom_macros.py:584:
+                                                   DeclareClassCheckers, DeclareClassType,

WARNING: line over 80 characters
#550: FILE: scripts/codeconverter/codeconverter/qom_macros.py:602:
+            field_dict = dict((f, v.pop() if v else None) for f,v in fvalues.items())

WARNING: line over 80 characters
#551: FILE: scripts/codeconverter/codeconverter/qom_macros.py:603:
+            yield from self.gen_patches_for_type(uppercase, checkers, field_dict)

WARNING: line over 80 characters
#553: FILE: scripts/codeconverter/codeconverter/qom_macros.py:605:
+    def find_conflicts(self, uppercase: str, checkers: List[TypeDeclaration]) -> bool:

WARNING: line over 80 characters
#554: FILE: scripts/codeconverter/codeconverter/qom_macros.py:606:
+        """Look for conflicting declarations that would make it unsafe to add new ones"""

WARNING: line over 80 characters
#557: FILE: scripts/codeconverter/codeconverter/qom_macros.py:609:
+        conflicting.extend(chain(self.file.find_matches(DefineDirective, uppercase),

ERROR: line over 90 characters
#558: FILE: scripts/codeconverter/codeconverter/qom_macros.py:610:
+                                 self.file.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#559: FILE: scripts/codeconverter/codeconverter/qom_macros.py:611:
+                                 self.file.find_matches(DeclareClassType, uppercase, 'uppercase'),

ERROR: line over 90 characters
#560: FILE: scripts/codeconverter/codeconverter/qom_macros.py:612:
+                                 self.file.find_matches(DeclareInstanceType, uppercase, 'uppercase')))

ERROR: line over 90 characters
#563: FILE: scripts/codeconverter/codeconverter/qom_macros.py:615:
+        conflicting.extend(o for o in chain(self.allfiles.find_matches(DeclareInstanceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#564: FILE: scripts/codeconverter/codeconverter/qom_macros.py:616:
+                                            self.allfiles.find_matches(DeclareClassCheckers, uppercase, 'uppercase'),

ERROR: line over 90 characters
#565: FILE: scripts/codeconverter/codeconverter/qom_macros.py:617:
+                                            self.allfiles.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#566: FILE: scripts/codeconverter/codeconverter/qom_macros.py:618:
+                                            self.allfiles.find_matches(DefineDirective, uppercase))

WARNING: line over 80 characters
#568: FILE: scripts/codeconverter/codeconverter/qom_macros.py:620:
+                               # if both are .c files, there's no conflict at all:

WARNING: line over 80 characters
#585: FILE: scripts/codeconverter/codeconverter/qom_macros.py:637:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#595: FILE: scripts/codeconverter/codeconverter/qom_macros.py:647:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#625: FILE: scripts/codeconverter/codeconverter/qom_macros.py:655:
+            yield first_checker.prepend(f'DECLARE_INSTANCE_TYPE({uppercase}, void)\n')

WARNING: line over 80 characters
#627: FILE: scripts/codeconverter/codeconverter/qom_macros.py:657:
+            yield first_checker.prepend(f'DECLARE_CLASS_TYPE({uppercase}, void)\n')

ERROR: line over 90 characters
#634: FILE: scripts/codeconverter/codeconverter/qom_macros.py:664:
+        #s = (f"DECLARE_OBJ_CHECKERS({final_values['instancetype']}, {final_values['classtype']},\n"+

ERROR: line over 90 characters
#635: FILE: scripts/codeconverter/codeconverter/qom_macros.py:665:
+        #        f"                     {final_values['uppercase']}, {final_values['typename']})\n")

WARNING: line over 80 characters
#645: FILE: scripts/codeconverter/codeconverter/qom_macros.py:675:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

ERROR: line over 90 characters
#719: FILE: scripts/codeconverter/codeconverter/qom_macros.py:754:
+def find_type_checkers(files:FileList, name:str, group:str='uppercase') -> Iterable[TypeCheckerDeclaration]:

ERROR: line over 90 characters
#722: FILE: scripts/codeconverter/codeconverter/qom_macros.py:757:
+    for c in (DeclareInstanceChecker, DeclareClassCheckers, DeclareObjCheckers, ObjectDeclareType, ObjectDeclareSimpleType):

ERROR: line over 90 characters
#738: FILE: scripts/codeconverter/codeconverter/qom_macros.py:794:
+        user_classes = [TypeCheckMacro, DeclareObjCheckers, DeclareInstanceChecker, DeclareClassCheckers, InterfaceCheckMacro]

ERROR: line over 90 characters
#796: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:43:
+        return [m.group('arrayitem') for m in self.group_finditer(ArrayItem, 'arrayitems')]

WARNING: line over 80 characters
#820: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:66:
+    Common base class for type definitions (TypeInfo variables or OBJECT_DEFINE* macros)

WARNING: line over 80 characters
#987: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:245:
+            self.warn("%s class size type (%s) is not *Class?", self.name, classtype)

ERROR: line over 90 characters
#992: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:250:
+        self.debug("searching for simpletype declaration using %s as InstanceType", instancetype)

ERROR: line over 90 characters
#1005: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:263:
+        c = (f'OBJECT_DECLARE_SIMPLE_TYPE({self.group("instancetype")}, {self.group("lowercase")},\n'

WARNING: line over 80 characters
#1012: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:270:
+        # this will just ensure the caches for find_match() and matches_for_type()

ERROR: line over 90 characters
#1047: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:321:
+        #            self.warn("macro/constant type name is required for instance/class type")

WARNING: line over 80 characters
#1066: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:333:
+                self.warn("This will make type validation difficult in the future")

WARNING: line over 80 characters
#1069: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:336:
+        parent_uppercase = find_typename_uppercase(self.allfiles, parent_typename)

ERROR: line over 90 characters
#1071: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:338:
+            self.info("Can't find right uppercase name for parent type (%s)", parent_typename)

ERROR: line over 90 characters
#1073: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:340:
+                self.warn("Can't find right uppercase name for parent type (%s)", parent_typename)

WARNING: line over 80 characters
#1074: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:341:
+                self.warn("This will make type validation difficult in the future")

ERROR: line over 90 characters
#1096: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:346:
+        #checkers: List[TypeCheckerDeclaration] = list(find_type_checkers(self.allfiles, uppercase))

ERROR: line over 90 characters
#1098: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:348:
+        #    c.info("instance type checker declaration (%s) is here", c.group('uppercase'))

ERROR: line over 90 characters
#1102: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:352:
+        #        self.warn("Can't find where type checkers for %s (%s) are declared.  We will need them to validate sizes of %s",

ERROR: line over 90 characters
#1123: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:371:
+        #        self.warn("type at instance_size is %r.  Should instance_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1128: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:376:
+        #        self.warn("instance type checker for %s (%s) not found", typename, instancetype)

ERROR: line over 90 characters
#1142: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:390:
+        #        self.warn("type at class_size is %r.  Should class_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1147: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:395:
+        #        self.warn("class type checker for %s (%s) not found", typename, classtype)

WARNING: line over 80 characters
#1170: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:416:
+        newbegin += f'                            {instancetype}, {classtype},\n'

WARNING: line over 80 characters
#1171: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:417:
+        newbegin += f'                            {uppercase}, {parent_uppercase}'

WARNING: line over 80 characters
#1204: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:450:
+def find_type_definitions(files: FileList, uppercase: str) -> Iterable[TypeDefinition]:

ERROR: line over 90 characters
#1205: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:451:
+    types: List[Type[TypeDefinition]] = [TypeInfoVar, ObjectDefineType, ObjectDefineTypeExtended]

WARNING: line over 80 characters
#1217: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:463:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#1265: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:511:
+        instance_checkers = [c for c in find_type_checkers(self.allfiles, uppercase)

WARNING: line over 80 characters
#1297: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:543:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1302: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:548:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1311: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:557:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1313: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:559:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1329: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:575:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

WARNING: line over 80 characters
#1334: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:580:
+                self.warn("mismatching class type for %s (%s)", uppercase, classtype)

ERROR: line over 90 characters
#1351: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:597:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1377: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:623:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1382: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:628:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1391: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:637:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1393: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:639:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1414: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:660:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

ERROR: line over 90 characters
#1436: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:682:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1457: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:703:
+        #all_defines = [m for m in self.allfiles.matches_of_type(ExpressionDefine)]

ERROR: line over 90 characters
#1487: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:744:
+        if 'instance_size' in values and parent.get_raw_initializer_value('instance_size') != values['instance_size'].raw:

ERROR: line over 90 characters
#1493: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:749:
+        if 'class_size' in values and parent.get_raw_initializer_value('class_size') != values['class_size'].raw:

ERROR: line over 90 characters
#1564: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:871:
+            self.warn("can't identify the function where type_register_static(&%s) is called", self.name)

WARNING: line over 80 characters
#1613: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:912:
+            yield self.group_match('func_name').make_patch('type_register_static')

total: 44 errors, 34 warnings, 1701 lines checked

Patch 13/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

14/17 Checking commit 43d39efe7f8b (qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE)
WARNING: line over 80 characters
#228: FILE: include/qom/object.h:649:
+#define OBJECT_DECLARE_SIMPLE_TYPE(InstanceType, module_obj_name, MODULE_OBJ_NAME) \

WARNING: line over 80 characters
#233: FILE: include/qom/object.h:654:
+    DECLARE_INSTANCE_CHECKER(InstanceType, MODULE_OBJ_NAME, TYPE_##MODULE_OBJ_NAME)

total: 0 errors, 2 warnings, 192 lines checked

Patch 14/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
15/17 Checking commit 5185bc16076a (qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros)
16/17 Checking commit 827213434dea (Use OBJECT_DECLARE_TYPE when possible)
WARNING: line over 80 characters
#153: FILE: hw/arm/vexpress.c:184:
+OBJECT_DECLARE_TYPE(VexpressMachineState, VexpressMachineClass, VEXPRESS_MACHINE)

WARNING: line over 80 characters
#970: FILE: include/hw/s390x/3270-ccw.h:34:
+OBJECT_DECLARE_TYPE(EmulatedCcw3270Device, EmulatedCcw3270Class, EMULATED_CCW_3270)

total: 0 errors, 2 warnings, 902 lines checked

Patch 16/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/17 Checking commit f6c74ddf0414 (Use OBJECT_DECLARE_SIMPLE_TYPE when possible)
WARNING: line over 80 characters
#46: FILE: backends/cryptodev-vhost-user.c:42:
+OBJECT_DECLARE_SIMPLE_TYPE(CryptoDevBackendVhostUser, CRYPTODEV_BACKEND_VHOST_USER)

total: 0 errors, 1 warnings, 6146 lines checked

Patch 17/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20200918204714.27276-1-ehabkost@redhat.com/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PULL 00/17] QOM queue, 2020-09-18
Posted by no-reply@patchew.org 3 years, 7 months ago
Patchew URL: https://patchew.org/QEMU/20200918204714.27276-1-ehabkost@redhat.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Type: series
Message-id: 20200918204714.27276-1-ehabkost@redhat.com
Subject: [PULL 00/17] QOM queue, 2020-09-18

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

From https://github.com/patchew-project/qemu
 - [tag update]      patchew/20200918204714.27276-1-ehabkost@redhat.com -> patchew/20200918204714.27276-1-ehabkost@redhat.com
Switched to a new branch 'test'
6a1f315 Use OBJECT_DECLARE_SIMPLE_TYPE when possible
4afae17 Use OBJECT_DECLARE_TYPE when possible
1ba176a qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros
0a6372b qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE
c8e324b scripts/codeconverter: Update to latest version
1c5c320 target/s390x: Set instance_align on S390CPU TypeInfo
079efc9 target/riscv: Set instance_align on RISCVCPU TypeInfo
95506ca target/ppc: Set instance_align on PowerPCCPU TypeInfo
96327a7 target/arm: Set instance_align on CPUARM TypeInfo
4e58f8e qom: Allow objects to be allocated with increased alignment
9fa6ef3 qom: Correct error values in two contracts
b994450 qom: Clean up object_property_get_enum()'s error value
34235df qom: Correct object_class_dynamic_cast_assert() documentation
8be6b31 sifive: Use DECLARE_*CHECKER* macros
7898f8c sifive: Move QOM typedefs and add missing includes
a9b2fb7 sifive_u: Rename memmap enum constants
3f9ce92 sifive_e: Rename memmap enum constants

=== OUTPUT BEGIN ===
1/17 Checking commit 3f9ce92ef415 (sifive_e: Rename memmap enum constants)
WARNING: line over 80 characters
#86: FILE: hw/riscv/sifive_e.c:114:
+                          memmap[SIFIVE_E_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#131: FILE: hw/riscv/sifive_e.c:229:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_E_DEV_GPIO0].base);

total: 0 errors, 2 warnings, 186 lines checked

Patch 1/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
2/17 Checking commit a9b2fb7c9bd5 (sifive_u: Rename memmap enum constants)
WARNING: line over 80 characters
#303: FILE: hw/riscv/sifive_u.c:531:
+                          memmap[SIFIVE_U_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#367: FILE: hw/riscv/sifive_u.c:734:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->prci), 0, memmap[SIFIVE_U_DEV_PRCI].base);

WARNING: line over 80 characters
#374: FILE: hw/riscv/sifive_u.c:740:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_U_DEV_GPIO].base);

total: 0 errors, 3 warnings, 412 lines checked

Patch 2/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
3/17 Checking commit 7898f8c9bc92 (sifive: Move QOM typedefs and add missing includes)
4/17 Checking commit 8be6b316ddc2 (sifive: Use DECLARE_*CHECKER* macros)
5/17 Checking commit 34235df79ff1 (qom: Correct object_class_dynamic_cast_assert() documentation)
6/17 Checking commit b9944503317e (qom: Clean up object_property_get_enum()'s error value)
7/17 Checking commit 9fa6ef3b7a23 (qom: Correct error values in two contracts)
8/17 Checking commit 4e58f8efc4d9 (qom: Allow objects to be allocated with increased alignment)
WARNING: architecture specific defines should be avoided
#74: FILE: qom/object.c:694:
+#if __STDC_VERSION__ >= 201112L

total: 0 errors, 1 warnings, 84 lines checked

Patch 8/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
9/17 Checking commit 96327a752391 (target/arm: Set instance_align on CPUARM TypeInfo)
10/17 Checking commit 95506caba7ae (target/ppc: Set instance_align on PowerPCCPU TypeInfo)
11/17 Checking commit 079efc944e45 (target/riscv: Set instance_align on RISCVCPU TypeInfo)
12/17 Checking commit 1c5c320d8b17 (target/s390x: Set instance_align on S390CPU TypeInfo)
13/17 Checking commit c8e324bb5e90 (scripts/codeconverter: Update to latest version)
ERROR: line over 90 characters
#26: FILE: scripts/codeconverter/codeconverter/patching.py:8:
+from typing import IO, Match, NamedTuple, Optional, Literal, Iterable, Type, Dict, List, Any, TypeVar, NewType, Tuple, Union

ERROR: line over 90 characters
#78: FILE: scripts/codeconverter/codeconverter/patching.py:184:
+    def group_finditer(self, klass: Type['FileMatch'], group: Union[str, int]) -> Iterable['FileMatch']:

ERROR: line over 90 characters
#85: FILE: scripts/codeconverter/codeconverter/patching.py:191:
+    def try_group_match(self, klass: Type['FileMatch'], group: Union[str, int]) -> Optional['FileMatch']:

WARNING: line over 80 characters
#161: FILE: scripts/codeconverter/codeconverter/patching.py:289:
+    def find_match(self, t: Type[T], name: str, group: str='name') -> Optional[T]:

WARNING: line over 80 characters
#194: FILE: scripts/codeconverter/codeconverter/patching.py:331:
+        matches = [klass(self, m) for m in klass.finditer(self.original_content)]

ERROR: line over 90 characters
#221: FILE: scripts/codeconverter/codeconverter/patching.py:370:
+    def scan_for_matches(self, class_names: Optional[List[str]]=None) -> Iterable[FileMatch]:

WARNING: line over 80 characters
#337: FILE: scripts/codeconverter/codeconverter/qom_macros.py:28:
+    regexp = S(r'^[ \t]*#[ \t]*define', CPP_SPACE, NAMED('name', RE_IDENTIFIER), r'\b')

ERROR: line over 90 characters
#394: FILE: scripts/codeconverter/codeconverter/qom_macros.py:444:
+               r'\s*\(\s*', OR(NAMED('instancetype', RE_IDENTIFIER), RE_TYPE, name='c_type'),

ERROR: line over 90 characters
#457: FILE: scripts/codeconverter/codeconverter/qom_macros.py:513:
+               OR(RE_IDENTIFIER, RE_STRING, RE_MACRO_CONCAT, RE_FUN_CALL, name='typename'), SP,

WARNING: line over 80 characters
#521: FILE: scripts/codeconverter/codeconverter/qom_macros.py:575:
+    """Common base class for code that will look at a set of type declarations"""

ERROR: line over 90 characters
#531: FILE: scripts/codeconverter/codeconverter/qom_macros.py:583:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareInstanceChecker, DeclareInstanceType,

WARNING: line over 80 characters
#532: FILE: scripts/codeconverter/codeconverter/qom_macros.py:584:
+                                                   DeclareClassCheckers, DeclareClassType,

WARNING: line over 80 characters
#550: FILE: scripts/codeconverter/codeconverter/qom_macros.py:602:
+            field_dict = dict((f, v.pop() if v else None) for f,v in fvalues.items())

WARNING: line over 80 characters
#551: FILE: scripts/codeconverter/codeconverter/qom_macros.py:603:
+            yield from self.gen_patches_for_type(uppercase, checkers, field_dict)

WARNING: line over 80 characters
#553: FILE: scripts/codeconverter/codeconverter/qom_macros.py:605:
+    def find_conflicts(self, uppercase: str, checkers: List[TypeDeclaration]) -> bool:

WARNING: line over 80 characters
#554: FILE: scripts/codeconverter/codeconverter/qom_macros.py:606:
+        """Look for conflicting declarations that would make it unsafe to add new ones"""

WARNING: line over 80 characters
#557: FILE: scripts/codeconverter/codeconverter/qom_macros.py:609:
+        conflicting.extend(chain(self.file.find_matches(DefineDirective, uppercase),

ERROR: line over 90 characters
#558: FILE: scripts/codeconverter/codeconverter/qom_macros.py:610:
+                                 self.file.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#559: FILE: scripts/codeconverter/codeconverter/qom_macros.py:611:
+                                 self.file.find_matches(DeclareClassType, uppercase, 'uppercase'),

ERROR: line over 90 characters
#560: FILE: scripts/codeconverter/codeconverter/qom_macros.py:612:
+                                 self.file.find_matches(DeclareInstanceType, uppercase, 'uppercase')))

ERROR: line over 90 characters
#563: FILE: scripts/codeconverter/codeconverter/qom_macros.py:615:
+        conflicting.extend(o for o in chain(self.allfiles.find_matches(DeclareInstanceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#564: FILE: scripts/codeconverter/codeconverter/qom_macros.py:616:
+                                            self.allfiles.find_matches(DeclareClassCheckers, uppercase, 'uppercase'),

ERROR: line over 90 characters
#565: FILE: scripts/codeconverter/codeconverter/qom_macros.py:617:
+                                            self.allfiles.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#566: FILE: scripts/codeconverter/codeconverter/qom_macros.py:618:
+                                            self.allfiles.find_matches(DefineDirective, uppercase))

WARNING: line over 80 characters
#568: FILE: scripts/codeconverter/codeconverter/qom_macros.py:620:
+                               # if both are .c files, there's no conflict at all:

WARNING: line over 80 characters
#585: FILE: scripts/codeconverter/codeconverter/qom_macros.py:637:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#595: FILE: scripts/codeconverter/codeconverter/qom_macros.py:647:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#625: FILE: scripts/codeconverter/codeconverter/qom_macros.py:655:
+            yield first_checker.prepend(f'DECLARE_INSTANCE_TYPE({uppercase}, void)\n')

WARNING: line over 80 characters
#627: FILE: scripts/codeconverter/codeconverter/qom_macros.py:657:
+            yield first_checker.prepend(f'DECLARE_CLASS_TYPE({uppercase}, void)\n')

ERROR: line over 90 characters
#634: FILE: scripts/codeconverter/codeconverter/qom_macros.py:664:
+        #s = (f"DECLARE_OBJ_CHECKERS({final_values['instancetype']}, {final_values['classtype']},\n"+

ERROR: line over 90 characters
#635: FILE: scripts/codeconverter/codeconverter/qom_macros.py:665:
+        #        f"                     {final_values['uppercase']}, {final_values['typename']})\n")

WARNING: line over 80 characters
#645: FILE: scripts/codeconverter/codeconverter/qom_macros.py:675:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

ERROR: line over 90 characters
#719: FILE: scripts/codeconverter/codeconverter/qom_macros.py:754:
+def find_type_checkers(files:FileList, name:str, group:str='uppercase') -> Iterable[TypeCheckerDeclaration]:

ERROR: line over 90 characters
#722: FILE: scripts/codeconverter/codeconverter/qom_macros.py:757:
+    for c in (DeclareInstanceChecker, DeclareClassCheckers, DeclareObjCheckers, ObjectDeclareType, ObjectDeclareSimpleType):

ERROR: line over 90 characters
#738: FILE: scripts/codeconverter/codeconverter/qom_macros.py:794:
+        user_classes = [TypeCheckMacro, DeclareObjCheckers, DeclareInstanceChecker, DeclareClassCheckers, InterfaceCheckMacro]

ERROR: line over 90 characters
#796: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:43:
+        return [m.group('arrayitem') for m in self.group_finditer(ArrayItem, 'arrayitems')]

WARNING: line over 80 characters
#820: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:66:
+    Common base class for type definitions (TypeInfo variables or OBJECT_DEFINE* macros)

WARNING: line over 80 characters
#987: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:245:
+            self.warn("%s class size type (%s) is not *Class?", self.name, classtype)

ERROR: line over 90 characters
#992: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:250:
+        self.debug("searching for simpletype declaration using %s as InstanceType", instancetype)

ERROR: line over 90 characters
#1005: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:263:
+        c = (f'OBJECT_DECLARE_SIMPLE_TYPE({self.group("instancetype")}, {self.group("lowercase")},\n'

WARNING: line over 80 characters
#1012: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:270:
+        # this will just ensure the caches for find_match() and matches_for_type()

ERROR: line over 90 characters
#1047: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:321:
+        #            self.warn("macro/constant type name is required for instance/class type")

WARNING: line over 80 characters
#1066: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:333:
+                self.warn("This will make type validation difficult in the future")

WARNING: line over 80 characters
#1069: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:336:
+        parent_uppercase = find_typename_uppercase(self.allfiles, parent_typename)

ERROR: line over 90 characters
#1071: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:338:
+            self.info("Can't find right uppercase name for parent type (%s)", parent_typename)

ERROR: line over 90 characters
#1073: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:340:
+                self.warn("Can't find right uppercase name for parent type (%s)", parent_typename)

WARNING: line over 80 characters
#1074: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:341:
+                self.warn("This will make type validation difficult in the future")

ERROR: line over 90 characters
#1096: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:346:
+        #checkers: List[TypeCheckerDeclaration] = list(find_type_checkers(self.allfiles, uppercase))

ERROR: line over 90 characters
#1098: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:348:
+        #    c.info("instance type checker declaration (%s) is here", c.group('uppercase'))

ERROR: line over 90 characters
#1102: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:352:
+        #        self.warn("Can't find where type checkers for %s (%s) are declared.  We will need them to validate sizes of %s",

ERROR: line over 90 characters
#1123: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:371:
+        #        self.warn("type at instance_size is %r.  Should instance_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1128: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:376:
+        #        self.warn("instance type checker for %s (%s) not found", typename, instancetype)

ERROR: line over 90 characters
#1142: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:390:
+        #        self.warn("type at class_size is %r.  Should class_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1147: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:395:
+        #        self.warn("class type checker for %s (%s) not found", typename, classtype)

WARNING: line over 80 characters
#1170: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:416:
+        newbegin += f'                            {instancetype}, {classtype},\n'

WARNING: line over 80 characters
#1171: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:417:
+        newbegin += f'                            {uppercase}, {parent_uppercase}'

WARNING: line over 80 characters
#1204: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:450:
+def find_type_definitions(files: FileList, uppercase: str) -> Iterable[TypeDefinition]:

ERROR: line over 90 characters
#1205: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:451:
+    types: List[Type[TypeDefinition]] = [TypeInfoVar, ObjectDefineType, ObjectDefineTypeExtended]

WARNING: line over 80 characters
#1217: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:463:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#1265: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:511:
+        instance_checkers = [c for c in find_type_checkers(self.allfiles, uppercase)

WARNING: line over 80 characters
#1297: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:543:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1302: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:548:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1311: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:557:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1313: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:559:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1329: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:575:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

WARNING: line over 80 characters
#1334: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:580:
+                self.warn("mismatching class type for %s (%s)", uppercase, classtype)

ERROR: line over 90 characters
#1351: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:597:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1377: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:623:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1382: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:628:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1391: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:637:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1393: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:639:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1414: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:660:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

ERROR: line over 90 characters
#1436: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:682:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1457: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:703:
+        #all_defines = [m for m in self.allfiles.matches_of_type(ExpressionDefine)]

ERROR: line over 90 characters
#1487: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:744:
+        if 'instance_size' in values and parent.get_raw_initializer_value('instance_size') != values['instance_size'].raw:

ERROR: line over 90 characters
#1493: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:749:
+        if 'class_size' in values and parent.get_raw_initializer_value('class_size') != values['class_size'].raw:

ERROR: line over 90 characters
#1564: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:871:
+            self.warn("can't identify the function where type_register_static(&%s) is called", self.name)

WARNING: line over 80 characters
#1613: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:912:
+            yield self.group_match('func_name').make_patch('type_register_static')

total: 44 errors, 34 warnings, 1701 lines checked

Patch 13/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

14/17 Checking commit 0a6372b3ca97 (qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE)
WARNING: line over 80 characters
#228: FILE: include/qom/object.h:649:
+#define OBJECT_DECLARE_SIMPLE_TYPE(InstanceType, module_obj_name, MODULE_OBJ_NAME) \

WARNING: line over 80 characters
#233: FILE: include/qom/object.h:654:
+    DECLARE_INSTANCE_CHECKER(InstanceType, MODULE_OBJ_NAME, TYPE_##MODULE_OBJ_NAME)

total: 0 errors, 2 warnings, 192 lines checked

Patch 14/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
15/17 Checking commit 1ba176a84a10 (qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros)
16/17 Checking commit 4afae17cd70e (Use OBJECT_DECLARE_TYPE when possible)
WARNING: line over 80 characters
#153: FILE: hw/arm/vexpress.c:184:
+OBJECT_DECLARE_TYPE(VexpressMachineState, VexpressMachineClass, VEXPRESS_MACHINE)

WARNING: line over 80 characters
#970: FILE: include/hw/s390x/3270-ccw.h:34:
+OBJECT_DECLARE_TYPE(EmulatedCcw3270Device, EmulatedCcw3270Class, EMULATED_CCW_3270)

total: 0 errors, 2 warnings, 902 lines checked

Patch 16/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/17 Checking commit 6a1f31528263 (Use OBJECT_DECLARE_SIMPLE_TYPE when possible)
WARNING: line over 80 characters
#46: FILE: backends/cryptodev-vhost-user.c:42:
+OBJECT_DECLARE_SIMPLE_TYPE(CryptoDevBackendVhostUser, CRYPTODEV_BACKEND_VHOST_USER)

total: 0 errors, 1 warnings, 6146 lines checked

Patch 17/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20200918204714.27276-1-ehabkost@redhat.com/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PULL 00/17] QOM queue, 2020-09-18
Posted by no-reply@patchew.org 3 years, 7 months ago
Patchew URL: https://patchew.org/QEMU/20200918204714.27276-1-ehabkost@redhat.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Type: series
Message-id: 20200918204714.27276-1-ehabkost@redhat.com
Subject: [PULL 00/17] QOM queue, 2020-09-18

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
 - [tag update]      patchew/20200918204714.27276-1-ehabkost@redhat.com -> patchew/20200918204714.27276-1-ehabkost@redhat.com
Switched to a new branch 'test'
1855acd Use OBJECT_DECLARE_SIMPLE_TYPE when possible
1ba9113 Use OBJECT_DECLARE_TYPE when possible
301b924 qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros
b5ba236 qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE
b30e1d1 scripts/codeconverter: Update to latest version
475d6df target/s390x: Set instance_align on S390CPU TypeInfo
fa21af9 target/riscv: Set instance_align on RISCVCPU TypeInfo
e51481b target/ppc: Set instance_align on PowerPCCPU TypeInfo
3511556 target/arm: Set instance_align on CPUARM TypeInfo
4597360 qom: Allow objects to be allocated with increased alignment
ae0b669 qom: Correct error values in two contracts
0cdd391 qom: Clean up object_property_get_enum()'s error value
4516fcf qom: Correct object_class_dynamic_cast_assert() documentation
f3e6e7e sifive: Use DECLARE_*CHECKER* macros
840bcce sifive: Move QOM typedefs and add missing includes
ef8aea0 sifive_u: Rename memmap enum constants
bc295b9 sifive_e: Rename memmap enum constants

=== OUTPUT BEGIN ===
1/17 Checking commit bc295b98441b (sifive_e: Rename memmap enum constants)
WARNING: line over 80 characters
#86: FILE: hw/riscv/sifive_e.c:114:
+                          memmap[SIFIVE_E_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#131: FILE: hw/riscv/sifive_e.c:229:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_E_DEV_GPIO0].base);

total: 0 errors, 2 warnings, 186 lines checked

Patch 1/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
2/17 Checking commit ef8aea032d91 (sifive_u: Rename memmap enum constants)
WARNING: line over 80 characters
#303: FILE: hw/riscv/sifive_u.c:531:
+                          memmap[SIFIVE_U_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#367: FILE: hw/riscv/sifive_u.c:734:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->prci), 0, memmap[SIFIVE_U_DEV_PRCI].base);

WARNING: line over 80 characters
#374: FILE: hw/riscv/sifive_u.c:740:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_U_DEV_GPIO].base);

total: 0 errors, 3 warnings, 412 lines checked

Patch 2/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
3/17 Checking commit 840bcce09a21 (sifive: Move QOM typedefs and add missing includes)
4/17 Checking commit f3e6e7e9b1a5 (sifive: Use DECLARE_*CHECKER* macros)
5/17 Checking commit 4516fcf67041 (qom: Correct object_class_dynamic_cast_assert() documentation)
6/17 Checking commit 0cdd39149527 (qom: Clean up object_property_get_enum()'s error value)
7/17 Checking commit ae0b6696f49e (qom: Correct error values in two contracts)
8/17 Checking commit 459736081014 (qom: Allow objects to be allocated with increased alignment)
WARNING: architecture specific defines should be avoided
#74: FILE: qom/object.c:694:
+#if __STDC_VERSION__ >= 201112L

total: 0 errors, 1 warnings, 84 lines checked

Patch 8/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
9/17 Checking commit 35115568c868 (target/arm: Set instance_align on CPUARM TypeInfo)
10/17 Checking commit e51481bca278 (target/ppc: Set instance_align on PowerPCCPU TypeInfo)
11/17 Checking commit fa21af9f7a84 (target/riscv: Set instance_align on RISCVCPU TypeInfo)
12/17 Checking commit 475d6df70824 (target/s390x: Set instance_align on S390CPU TypeInfo)
13/17 Checking commit b30e1d1be0f8 (scripts/codeconverter: Update to latest version)
ERROR: line over 90 characters
#26: FILE: scripts/codeconverter/codeconverter/patching.py:8:
+from typing import IO, Match, NamedTuple, Optional, Literal, Iterable, Type, Dict, List, Any, TypeVar, NewType, Tuple, Union

ERROR: line over 90 characters
#78: FILE: scripts/codeconverter/codeconverter/patching.py:184:
+    def group_finditer(self, klass: Type['FileMatch'], group: Union[str, int]) -> Iterable['FileMatch']:

ERROR: line over 90 characters
#85: FILE: scripts/codeconverter/codeconverter/patching.py:191:
+    def try_group_match(self, klass: Type['FileMatch'], group: Union[str, int]) -> Optional['FileMatch']:

WARNING: line over 80 characters
#161: FILE: scripts/codeconverter/codeconverter/patching.py:289:
+    def find_match(self, t: Type[T], name: str, group: str='name') -> Optional[T]:

WARNING: line over 80 characters
#194: FILE: scripts/codeconverter/codeconverter/patching.py:331:
+        matches = [klass(self, m) for m in klass.finditer(self.original_content)]

ERROR: line over 90 characters
#221: FILE: scripts/codeconverter/codeconverter/patching.py:370:
+    def scan_for_matches(self, class_names: Optional[List[str]]=None) -> Iterable[FileMatch]:

WARNING: line over 80 characters
#337: FILE: scripts/codeconverter/codeconverter/qom_macros.py:28:
+    regexp = S(r'^[ \t]*#[ \t]*define', CPP_SPACE, NAMED('name', RE_IDENTIFIER), r'\b')

ERROR: line over 90 characters
#394: FILE: scripts/codeconverter/codeconverter/qom_macros.py:444:
+               r'\s*\(\s*', OR(NAMED('instancetype', RE_IDENTIFIER), RE_TYPE, name='c_type'),

ERROR: line over 90 characters
#457: FILE: scripts/codeconverter/codeconverter/qom_macros.py:513:
+               OR(RE_IDENTIFIER, RE_STRING, RE_MACRO_CONCAT, RE_FUN_CALL, name='typename'), SP,

WARNING: line over 80 characters
#521: FILE: scripts/codeconverter/codeconverter/qom_macros.py:575:
+    """Common base class for code that will look at a set of type declarations"""

ERROR: line over 90 characters
#531: FILE: scripts/codeconverter/codeconverter/qom_macros.py:583:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareInstanceChecker, DeclareInstanceType,

WARNING: line over 80 characters
#532: FILE: scripts/codeconverter/codeconverter/qom_macros.py:584:
+                                                   DeclareClassCheckers, DeclareClassType,

WARNING: line over 80 characters
#550: FILE: scripts/codeconverter/codeconverter/qom_macros.py:602:
+            field_dict = dict((f, v.pop() if v else None) for f,v in fvalues.items())

WARNING: line over 80 characters
#551: FILE: scripts/codeconverter/codeconverter/qom_macros.py:603:
+            yield from self.gen_patches_for_type(uppercase, checkers, field_dict)

WARNING: line over 80 characters
#553: FILE: scripts/codeconverter/codeconverter/qom_macros.py:605:
+    def find_conflicts(self, uppercase: str, checkers: List[TypeDeclaration]) -> bool:

WARNING: line over 80 characters
#554: FILE: scripts/codeconverter/codeconverter/qom_macros.py:606:
+        """Look for conflicting declarations that would make it unsafe to add new ones"""

WARNING: line over 80 characters
#557: FILE: scripts/codeconverter/codeconverter/qom_macros.py:609:
+        conflicting.extend(chain(self.file.find_matches(DefineDirective, uppercase),

ERROR: line over 90 characters
#558: FILE: scripts/codeconverter/codeconverter/qom_macros.py:610:
+                                 self.file.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#559: FILE: scripts/codeconverter/codeconverter/qom_macros.py:611:
+                                 self.file.find_matches(DeclareClassType, uppercase, 'uppercase'),

ERROR: line over 90 characters
#560: FILE: scripts/codeconverter/codeconverter/qom_macros.py:612:
+                                 self.file.find_matches(DeclareInstanceType, uppercase, 'uppercase')))

ERROR: line over 90 characters
#563: FILE: scripts/codeconverter/codeconverter/qom_macros.py:615:
+        conflicting.extend(o for o in chain(self.allfiles.find_matches(DeclareInstanceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#564: FILE: scripts/codeconverter/codeconverter/qom_macros.py:616:
+                                            self.allfiles.find_matches(DeclareClassCheckers, uppercase, 'uppercase'),

ERROR: line over 90 characters
#565: FILE: scripts/codeconverter/codeconverter/qom_macros.py:617:
+                                            self.allfiles.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#566: FILE: scripts/codeconverter/codeconverter/qom_macros.py:618:
+                                            self.allfiles.find_matches(DefineDirective, uppercase))

WARNING: line over 80 characters
#568: FILE: scripts/codeconverter/codeconverter/qom_macros.py:620:
+                               # if both are .c files, there's no conflict at all:

WARNING: line over 80 characters
#585: FILE: scripts/codeconverter/codeconverter/qom_macros.py:637:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#595: FILE: scripts/codeconverter/codeconverter/qom_macros.py:647:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#625: FILE: scripts/codeconverter/codeconverter/qom_macros.py:655:
+            yield first_checker.prepend(f'DECLARE_INSTANCE_TYPE({uppercase}, void)\n')

WARNING: line over 80 characters
#627: FILE: scripts/codeconverter/codeconverter/qom_macros.py:657:
+            yield first_checker.prepend(f'DECLARE_CLASS_TYPE({uppercase}, void)\n')

ERROR: line over 90 characters
#634: FILE: scripts/codeconverter/codeconverter/qom_macros.py:664:
+        #s = (f"DECLARE_OBJ_CHECKERS({final_values['instancetype']}, {final_values['classtype']},\n"+

ERROR: line over 90 characters
#635: FILE: scripts/codeconverter/codeconverter/qom_macros.py:665:
+        #        f"                     {final_values['uppercase']}, {final_values['typename']})\n")

WARNING: line over 80 characters
#645: FILE: scripts/codeconverter/codeconverter/qom_macros.py:675:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

ERROR: line over 90 characters
#719: FILE: scripts/codeconverter/codeconverter/qom_macros.py:754:
+def find_type_checkers(files:FileList, name:str, group:str='uppercase') -> Iterable[TypeCheckerDeclaration]:

ERROR: line over 90 characters
#722: FILE: scripts/codeconverter/codeconverter/qom_macros.py:757:
+    for c in (DeclareInstanceChecker, DeclareClassCheckers, DeclareObjCheckers, ObjectDeclareType, ObjectDeclareSimpleType):

ERROR: line over 90 characters
#738: FILE: scripts/codeconverter/codeconverter/qom_macros.py:794:
+        user_classes = [TypeCheckMacro, DeclareObjCheckers, DeclareInstanceChecker, DeclareClassCheckers, InterfaceCheckMacro]

ERROR: line over 90 characters
#796: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:43:
+        return [m.group('arrayitem') for m in self.group_finditer(ArrayItem, 'arrayitems')]

WARNING: line over 80 characters
#820: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:66:
+    Common base class for type definitions (TypeInfo variables or OBJECT_DEFINE* macros)

WARNING: line over 80 characters
#987: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:245:
+            self.warn("%s class size type (%s) is not *Class?", self.name, classtype)

ERROR: line over 90 characters
#992: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:250:
+        self.debug("searching for simpletype declaration using %s as InstanceType", instancetype)

ERROR: line over 90 characters
#1005: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:263:
+        c = (f'OBJECT_DECLARE_SIMPLE_TYPE({self.group("instancetype")}, {self.group("lowercase")},\n'

WARNING: line over 80 characters
#1012: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:270:
+        # this will just ensure the caches for find_match() and matches_for_type()

ERROR: line over 90 characters
#1047: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:321:
+        #            self.warn("macro/constant type name is required for instance/class type")

WARNING: line over 80 characters
#1066: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:333:
+                self.warn("This will make type validation difficult in the future")

WARNING: line over 80 characters
#1069: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:336:
+        parent_uppercase = find_typename_uppercase(self.allfiles, parent_typename)

ERROR: line over 90 characters
#1071: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:338:
+            self.info("Can't find right uppercase name for parent type (%s)", parent_typename)

ERROR: line over 90 characters
#1073: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:340:
+                self.warn("Can't find right uppercase name for parent type (%s)", parent_typename)

WARNING: line over 80 characters
#1074: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:341:
+                self.warn("This will make type validation difficult in the future")

ERROR: line over 90 characters
#1096: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:346:
+        #checkers: List[TypeCheckerDeclaration] = list(find_type_checkers(self.allfiles, uppercase))

ERROR: line over 90 characters
#1098: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:348:
+        #    c.info("instance type checker declaration (%s) is here", c.group('uppercase'))

ERROR: line over 90 characters
#1102: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:352:
+        #        self.warn("Can't find where type checkers for %s (%s) are declared.  We will need them to validate sizes of %s",

ERROR: line over 90 characters
#1123: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:371:
+        #        self.warn("type at instance_size is %r.  Should instance_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1128: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:376:
+        #        self.warn("instance type checker for %s (%s) not found", typename, instancetype)

ERROR: line over 90 characters
#1142: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:390:
+        #        self.warn("type at class_size is %r.  Should class_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1147: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:395:
+        #        self.warn("class type checker for %s (%s) not found", typename, classtype)

WARNING: line over 80 characters
#1170: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:416:
+        newbegin += f'                            {instancetype}, {classtype},\n'

WARNING: line over 80 characters
#1171: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:417:
+        newbegin += f'                            {uppercase}, {parent_uppercase}'

WARNING: line over 80 characters
#1204: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:450:
+def find_type_definitions(files: FileList, uppercase: str) -> Iterable[TypeDefinition]:

ERROR: line over 90 characters
#1205: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:451:
+    types: List[Type[TypeDefinition]] = [TypeInfoVar, ObjectDefineType, ObjectDefineTypeExtended]

WARNING: line over 80 characters
#1217: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:463:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#1265: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:511:
+        instance_checkers = [c for c in find_type_checkers(self.allfiles, uppercase)

WARNING: line over 80 characters
#1297: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:543:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1302: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:548:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1311: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:557:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1313: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:559:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1329: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:575:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

WARNING: line over 80 characters
#1334: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:580:
+                self.warn("mismatching class type for %s (%s)", uppercase, classtype)

ERROR: line over 90 characters
#1351: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:597:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1377: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:623:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1382: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:628:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1391: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:637:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1393: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:639:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1414: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:660:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

ERROR: line over 90 characters
#1436: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:682:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1457: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:703:
+        #all_defines = [m for m in self.allfiles.matches_of_type(ExpressionDefine)]

ERROR: line over 90 characters
#1487: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:744:
+        if 'instance_size' in values and parent.get_raw_initializer_value('instance_size') != values['instance_size'].raw:

ERROR: line over 90 characters
#1493: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:749:
+        if 'class_size' in values and parent.get_raw_initializer_value('class_size') != values['class_size'].raw:

ERROR: line over 90 characters
#1564: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:871:
+            self.warn("can't identify the function where type_register_static(&%s) is called", self.name)

WARNING: line over 80 characters
#1613: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:912:
+            yield self.group_match('func_name').make_patch('type_register_static')

total: 44 errors, 34 warnings, 1701 lines checked

Patch 13/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

14/17 Checking commit b5ba23667cc6 (qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE)
WARNING: line over 80 characters
#228: FILE: include/qom/object.h:649:
+#define OBJECT_DECLARE_SIMPLE_TYPE(InstanceType, module_obj_name, MODULE_OBJ_NAME) \

WARNING: line over 80 characters
#233: FILE: include/qom/object.h:654:
+    DECLARE_INSTANCE_CHECKER(InstanceType, MODULE_OBJ_NAME, TYPE_##MODULE_OBJ_NAME)

total: 0 errors, 2 warnings, 192 lines checked

Patch 14/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
15/17 Checking commit 301b924e711a (qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros)
16/17 Checking commit 1ba9113a0e10 (Use OBJECT_DECLARE_TYPE when possible)
WARNING: line over 80 characters
#153: FILE: hw/arm/vexpress.c:184:
+OBJECT_DECLARE_TYPE(VexpressMachineState, VexpressMachineClass, VEXPRESS_MACHINE)

WARNING: line over 80 characters
#970: FILE: include/hw/s390x/3270-ccw.h:34:
+OBJECT_DECLARE_TYPE(EmulatedCcw3270Device, EmulatedCcw3270Class, EMULATED_CCW_3270)

total: 0 errors, 2 warnings, 902 lines checked

Patch 16/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/17 Checking commit 1855acd29f01 (Use OBJECT_DECLARE_SIMPLE_TYPE when possible)
WARNING: line over 80 characters
#46: FILE: backends/cryptodev-vhost-user.c:42:
+OBJECT_DECLARE_SIMPLE_TYPE(CryptoDevBackendVhostUser, CRYPTODEV_BACKEND_VHOST_USER)

total: 0 errors, 1 warnings, 6146 lines checked

Patch 17/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20200918204714.27276-1-ehabkost@redhat.com/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PULL 00/17] QOM queue, 2020-09-18
Posted by no-reply@patchew.org 3 years, 7 months ago
Patchew URL: https://patchew.org/QEMU/20200918204714.27276-1-ehabkost@redhat.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Type: series
Message-id: 20200918204714.27276-1-ehabkost@redhat.com
Subject: [PULL 00/17] QOM queue, 2020-09-18

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

From https://github.com/patchew-project/qemu
 - [tag update]      patchew/20200918204714.27276-1-ehabkost@redhat.com -> patchew/20200918204714.27276-1-ehabkost@redhat.com
Switched to a new branch 'test'
de22210 Use OBJECT_DECLARE_SIMPLE_TYPE when possible
5cd8580 Use OBJECT_DECLARE_TYPE when possible
e9ae95c qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros
e0fff31 qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE
d0eee32 scripts/codeconverter: Update to latest version
7e2980a target/s390x: Set instance_align on S390CPU TypeInfo
2dd2736 target/riscv: Set instance_align on RISCVCPU TypeInfo
fd958db target/ppc: Set instance_align on PowerPCCPU TypeInfo
6892afc target/arm: Set instance_align on CPUARM TypeInfo
b03358a qom: Allow objects to be allocated with increased alignment
1696bbd qom: Correct error values in two contracts
7031979 qom: Clean up object_property_get_enum()'s error value
a6e5eb1 qom: Correct object_class_dynamic_cast_assert() documentation
1b2ab9b sifive: Use DECLARE_*CHECKER* macros
ef0d4cc sifive: Move QOM typedefs and add missing includes
b2ff8e5 sifive_u: Rename memmap enum constants
90e3b32 sifive_e: Rename memmap enum constants

=== OUTPUT BEGIN ===
1/17 Checking commit 90e3b32b4fcf (sifive_e: Rename memmap enum constants)
WARNING: line over 80 characters
#86: FILE: hw/riscv/sifive_e.c:114:
+                          memmap[SIFIVE_E_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#131: FILE: hw/riscv/sifive_e.c:229:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_E_DEV_GPIO0].base);

total: 0 errors, 2 warnings, 186 lines checked

Patch 1/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
2/17 Checking commit b2ff8e5bae32 (sifive_u: Rename memmap enum constants)
WARNING: line over 80 characters
#303: FILE: hw/riscv/sifive_u.c:531:
+                          memmap[SIFIVE_U_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#367: FILE: hw/riscv/sifive_u.c:734:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->prci), 0, memmap[SIFIVE_U_DEV_PRCI].base);

WARNING: line over 80 characters
#374: FILE: hw/riscv/sifive_u.c:740:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_U_DEV_GPIO].base);

total: 0 errors, 3 warnings, 412 lines checked

Patch 2/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
3/17 Checking commit ef0d4cc9f1b2 (sifive: Move QOM typedefs and add missing includes)
4/17 Checking commit 1b2ab9bd6ac0 (sifive: Use DECLARE_*CHECKER* macros)
5/17 Checking commit a6e5eb1839aa (qom: Correct object_class_dynamic_cast_assert() documentation)
6/17 Checking commit 70319799f550 (qom: Clean up object_property_get_enum()'s error value)
7/17 Checking commit 1696bbde14ec (qom: Correct error values in two contracts)
8/17 Checking commit b03358aba2ce (qom: Allow objects to be allocated with increased alignment)
WARNING: architecture specific defines should be avoided
#74: FILE: qom/object.c:694:
+#if __STDC_VERSION__ >= 201112L

total: 0 errors, 1 warnings, 84 lines checked

Patch 8/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
9/17 Checking commit 6892afc331ae (target/arm: Set instance_align on CPUARM TypeInfo)
10/17 Checking commit fd958db2ab5c (target/ppc: Set instance_align on PowerPCCPU TypeInfo)
11/17 Checking commit 2dd27361c009 (target/riscv: Set instance_align on RISCVCPU TypeInfo)
12/17 Checking commit 7e2980a19686 (target/s390x: Set instance_align on S390CPU TypeInfo)
13/17 Checking commit d0eee32adefb (scripts/codeconverter: Update to latest version)
ERROR: line over 90 characters
#26: FILE: scripts/codeconverter/codeconverter/patching.py:8:
+from typing import IO, Match, NamedTuple, Optional, Literal, Iterable, Type, Dict, List, Any, TypeVar, NewType, Tuple, Union

ERROR: line over 90 characters
#78: FILE: scripts/codeconverter/codeconverter/patching.py:184:
+    def group_finditer(self, klass: Type['FileMatch'], group: Union[str, int]) -> Iterable['FileMatch']:

ERROR: line over 90 characters
#85: FILE: scripts/codeconverter/codeconverter/patching.py:191:
+    def try_group_match(self, klass: Type['FileMatch'], group: Union[str, int]) -> Optional['FileMatch']:

WARNING: line over 80 characters
#161: FILE: scripts/codeconverter/codeconverter/patching.py:289:
+    def find_match(self, t: Type[T], name: str, group: str='name') -> Optional[T]:

WARNING: line over 80 characters
#194: FILE: scripts/codeconverter/codeconverter/patching.py:331:
+        matches = [klass(self, m) for m in klass.finditer(self.original_content)]

ERROR: line over 90 characters
#221: FILE: scripts/codeconverter/codeconverter/patching.py:370:
+    def scan_for_matches(self, class_names: Optional[List[str]]=None) -> Iterable[FileMatch]:

WARNING: line over 80 characters
#337: FILE: scripts/codeconverter/codeconverter/qom_macros.py:28:
+    regexp = S(r'^[ \t]*#[ \t]*define', CPP_SPACE, NAMED('name', RE_IDENTIFIER), r'\b')

ERROR: line over 90 characters
#394: FILE: scripts/codeconverter/codeconverter/qom_macros.py:444:
+               r'\s*\(\s*', OR(NAMED('instancetype', RE_IDENTIFIER), RE_TYPE, name='c_type'),

ERROR: line over 90 characters
#457: FILE: scripts/codeconverter/codeconverter/qom_macros.py:513:
+               OR(RE_IDENTIFIER, RE_STRING, RE_MACRO_CONCAT, RE_FUN_CALL, name='typename'), SP,

WARNING: line over 80 characters
#521: FILE: scripts/codeconverter/codeconverter/qom_macros.py:575:
+    """Common base class for code that will look at a set of type declarations"""

ERROR: line over 90 characters
#531: FILE: scripts/codeconverter/codeconverter/qom_macros.py:583:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareInstanceChecker, DeclareInstanceType,

WARNING: line over 80 characters
#532: FILE: scripts/codeconverter/codeconverter/qom_macros.py:584:
+                                                   DeclareClassCheckers, DeclareClassType,

WARNING: line over 80 characters
#550: FILE: scripts/codeconverter/codeconverter/qom_macros.py:602:
+            field_dict = dict((f, v.pop() if v else None) for f,v in fvalues.items())

WARNING: line over 80 characters
#551: FILE: scripts/codeconverter/codeconverter/qom_macros.py:603:
+            yield from self.gen_patches_for_type(uppercase, checkers, field_dict)

WARNING: line over 80 characters
#553: FILE: scripts/codeconverter/codeconverter/qom_macros.py:605:
+    def find_conflicts(self, uppercase: str, checkers: List[TypeDeclaration]) -> bool:

WARNING: line over 80 characters
#554: FILE: scripts/codeconverter/codeconverter/qom_macros.py:606:
+        """Look for conflicting declarations that would make it unsafe to add new ones"""

WARNING: line over 80 characters
#557: FILE: scripts/codeconverter/codeconverter/qom_macros.py:609:
+        conflicting.extend(chain(self.file.find_matches(DefineDirective, uppercase),

ERROR: line over 90 characters
#558: FILE: scripts/codeconverter/codeconverter/qom_macros.py:610:
+                                 self.file.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#559: FILE: scripts/codeconverter/codeconverter/qom_macros.py:611:
+                                 self.file.find_matches(DeclareClassType, uppercase, 'uppercase'),

ERROR: line over 90 characters
#560: FILE: scripts/codeconverter/codeconverter/qom_macros.py:612:
+                                 self.file.find_matches(DeclareInstanceType, uppercase, 'uppercase')))

ERROR: line over 90 characters
#563: FILE: scripts/codeconverter/codeconverter/qom_macros.py:615:
+        conflicting.extend(o for o in chain(self.allfiles.find_matches(DeclareInstanceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#564: FILE: scripts/codeconverter/codeconverter/qom_macros.py:616:
+                                            self.allfiles.find_matches(DeclareClassCheckers, uppercase, 'uppercase'),

ERROR: line over 90 characters
#565: FILE: scripts/codeconverter/codeconverter/qom_macros.py:617:
+                                            self.allfiles.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#566: FILE: scripts/codeconverter/codeconverter/qom_macros.py:618:
+                                            self.allfiles.find_matches(DefineDirective, uppercase))

WARNING: line over 80 characters
#568: FILE: scripts/codeconverter/codeconverter/qom_macros.py:620:
+                               # if both are .c files, there's no conflict at all:

WARNING: line over 80 characters
#585: FILE: scripts/codeconverter/codeconverter/qom_macros.py:637:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#595: FILE: scripts/codeconverter/codeconverter/qom_macros.py:647:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#625: FILE: scripts/codeconverter/codeconverter/qom_macros.py:655:
+            yield first_checker.prepend(f'DECLARE_INSTANCE_TYPE({uppercase}, void)\n')

WARNING: line over 80 characters
#627: FILE: scripts/codeconverter/codeconverter/qom_macros.py:657:
+            yield first_checker.prepend(f'DECLARE_CLASS_TYPE({uppercase}, void)\n')

ERROR: line over 90 characters
#634: FILE: scripts/codeconverter/codeconverter/qom_macros.py:664:
+        #s = (f"DECLARE_OBJ_CHECKERS({final_values['instancetype']}, {final_values['classtype']},\n"+

ERROR: line over 90 characters
#635: FILE: scripts/codeconverter/codeconverter/qom_macros.py:665:
+        #        f"                     {final_values['uppercase']}, {final_values['typename']})\n")

WARNING: line over 80 characters
#645: FILE: scripts/codeconverter/codeconverter/qom_macros.py:675:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

ERROR: line over 90 characters
#719: FILE: scripts/codeconverter/codeconverter/qom_macros.py:754:
+def find_type_checkers(files:FileList, name:str, group:str='uppercase') -> Iterable[TypeCheckerDeclaration]:

ERROR: line over 90 characters
#722: FILE: scripts/codeconverter/codeconverter/qom_macros.py:757:
+    for c in (DeclareInstanceChecker, DeclareClassCheckers, DeclareObjCheckers, ObjectDeclareType, ObjectDeclareSimpleType):

ERROR: line over 90 characters
#738: FILE: scripts/codeconverter/codeconverter/qom_macros.py:794:
+        user_classes = [TypeCheckMacro, DeclareObjCheckers, DeclareInstanceChecker, DeclareClassCheckers, InterfaceCheckMacro]

ERROR: line over 90 characters
#796: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:43:
+        return [m.group('arrayitem') for m in self.group_finditer(ArrayItem, 'arrayitems')]

WARNING: line over 80 characters
#820: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:66:
+    Common base class for type definitions (TypeInfo variables or OBJECT_DEFINE* macros)

WARNING: line over 80 characters
#987: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:245:
+            self.warn("%s class size type (%s) is not *Class?", self.name, classtype)

ERROR: line over 90 characters
#992: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:250:
+        self.debug("searching for simpletype declaration using %s as InstanceType", instancetype)

ERROR: line over 90 characters
#1005: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:263:
+        c = (f'OBJECT_DECLARE_SIMPLE_TYPE({self.group("instancetype")}, {self.group("lowercase")},\n'

WARNING: line over 80 characters
#1012: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:270:
+        # this will just ensure the caches for find_match() and matches_for_type()

ERROR: line over 90 characters
#1047: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:321:
+        #            self.warn("macro/constant type name is required for instance/class type")

WARNING: line over 80 characters
#1066: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:333:
+                self.warn("This will make type validation difficult in the future")

WARNING: line over 80 characters
#1069: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:336:
+        parent_uppercase = find_typename_uppercase(self.allfiles, parent_typename)

ERROR: line over 90 characters
#1071: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:338:
+            self.info("Can't find right uppercase name for parent type (%s)", parent_typename)

ERROR: line over 90 characters
#1073: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:340:
+                self.warn("Can't find right uppercase name for parent type (%s)", parent_typename)

WARNING: line over 80 characters
#1074: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:341:
+                self.warn("This will make type validation difficult in the future")

ERROR: line over 90 characters
#1096: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:346:
+        #checkers: List[TypeCheckerDeclaration] = list(find_type_checkers(self.allfiles, uppercase))

ERROR: line over 90 characters
#1098: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:348:
+        #    c.info("instance type checker declaration (%s) is here", c.group('uppercase'))

ERROR: line over 90 characters
#1102: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:352:
+        #        self.warn("Can't find where type checkers for %s (%s) are declared.  We will need them to validate sizes of %s",

ERROR: line over 90 characters
#1123: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:371:
+        #        self.warn("type at instance_size is %r.  Should instance_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1128: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:376:
+        #        self.warn("instance type checker for %s (%s) not found", typename, instancetype)

ERROR: line over 90 characters
#1142: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:390:
+        #        self.warn("type at class_size is %r.  Should class_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1147: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:395:
+        #        self.warn("class type checker for %s (%s) not found", typename, classtype)

WARNING: line over 80 characters
#1170: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:416:
+        newbegin += f'                            {instancetype}, {classtype},\n'

WARNING: line over 80 characters
#1171: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:417:
+        newbegin += f'                            {uppercase}, {parent_uppercase}'

WARNING: line over 80 characters
#1204: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:450:
+def find_type_definitions(files: FileList, uppercase: str) -> Iterable[TypeDefinition]:

ERROR: line over 90 characters
#1205: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:451:
+    types: List[Type[TypeDefinition]] = [TypeInfoVar, ObjectDefineType, ObjectDefineTypeExtended]

WARNING: line over 80 characters
#1217: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:463:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#1265: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:511:
+        instance_checkers = [c for c in find_type_checkers(self.allfiles, uppercase)

WARNING: line over 80 characters
#1297: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:543:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1302: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:548:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1311: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:557:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1313: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:559:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1329: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:575:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

WARNING: line over 80 characters
#1334: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:580:
+                self.warn("mismatching class type for %s (%s)", uppercase, classtype)

ERROR: line over 90 characters
#1351: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:597:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1377: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:623:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1382: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:628:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1391: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:637:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1393: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:639:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1414: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:660:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

ERROR: line over 90 characters
#1436: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:682:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1457: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:703:
+        #all_defines = [m for m in self.allfiles.matches_of_type(ExpressionDefine)]

ERROR: line over 90 characters
#1487: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:744:
+        if 'instance_size' in values and parent.get_raw_initializer_value('instance_size') != values['instance_size'].raw:

ERROR: line over 90 characters
#1493: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:749:
+        if 'class_size' in values and parent.get_raw_initializer_value('class_size') != values['class_size'].raw:

ERROR: line over 90 characters
#1564: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:871:
+            self.warn("can't identify the function where type_register_static(&%s) is called", self.name)

WARNING: line over 80 characters
#1613: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:912:
+            yield self.group_match('func_name').make_patch('type_register_static')

total: 44 errors, 34 warnings, 1701 lines checked

Patch 13/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

14/17 Checking commit e0fff314b21b (qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE)
WARNING: line over 80 characters
#228: FILE: include/qom/object.h:649:
+#define OBJECT_DECLARE_SIMPLE_TYPE(InstanceType, module_obj_name, MODULE_OBJ_NAME) \

WARNING: line over 80 characters
#233: FILE: include/qom/object.h:654:
+    DECLARE_INSTANCE_CHECKER(InstanceType, MODULE_OBJ_NAME, TYPE_##MODULE_OBJ_NAME)

total: 0 errors, 2 warnings, 192 lines checked

Patch 14/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
15/17 Checking commit e9ae95c7f51c (qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros)
16/17 Checking commit 5cd8580b3fc2 (Use OBJECT_DECLARE_TYPE when possible)
WARNING: line over 80 characters
#153: FILE: hw/arm/vexpress.c:184:
+OBJECT_DECLARE_TYPE(VexpressMachineState, VexpressMachineClass, VEXPRESS_MACHINE)

WARNING: line over 80 characters
#970: FILE: include/hw/s390x/3270-ccw.h:34:
+OBJECT_DECLARE_TYPE(EmulatedCcw3270Device, EmulatedCcw3270Class, EMULATED_CCW_3270)

total: 0 errors, 2 warnings, 902 lines checked

Patch 16/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/17 Checking commit de22210a7ae9 (Use OBJECT_DECLARE_SIMPLE_TYPE when possible)
WARNING: line over 80 characters
#46: FILE: backends/cryptodev-vhost-user.c:42:
+OBJECT_DECLARE_SIMPLE_TYPE(CryptoDevBackendVhostUser, CRYPTODEV_BACKEND_VHOST_USER)

total: 0 errors, 1 warnings, 6146 lines checked

Patch 17/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20200918204714.27276-1-ehabkost@redhat.com/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PULL 00/17] QOM queue, 2020-09-18
Posted by no-reply@patchew.org 3 years, 7 months ago
Patchew URL: https://patchew.org/QEMU/20200918204714.27276-1-ehabkost@redhat.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Type: series
Message-id: 20200918204714.27276-1-ehabkost@redhat.com
Subject: [PULL 00/17] QOM queue, 2020-09-18

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
 - [tag update]      patchew/20200918204714.27276-1-ehabkost@redhat.com -> patchew/20200918204714.27276-1-ehabkost@redhat.com
Switched to a new branch 'test'
1bcfbb2 Use OBJECT_DECLARE_SIMPLE_TYPE when possible
08e6953 Use OBJECT_DECLARE_TYPE when possible
72fdac0 qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros
2781efa qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE
d38f486 scripts/codeconverter: Update to latest version
33ac565 target/s390x: Set instance_align on S390CPU TypeInfo
15c02b0 target/riscv: Set instance_align on RISCVCPU TypeInfo
0697538 target/ppc: Set instance_align on PowerPCCPU TypeInfo
01e4115 target/arm: Set instance_align on CPUARM TypeInfo
d841c00 qom: Allow objects to be allocated with increased alignment
c0e47ab qom: Correct error values in two contracts
50ff473 qom: Clean up object_property_get_enum()'s error value
1ce9849 qom: Correct object_class_dynamic_cast_assert() documentation
e0cbb86 sifive: Use DECLARE_*CHECKER* macros
fff0e9d sifive: Move QOM typedefs and add missing includes
0e43259 sifive_u: Rename memmap enum constants
6751174 sifive_e: Rename memmap enum constants

=== OUTPUT BEGIN ===
1/17 Checking commit 675117461226 (sifive_e: Rename memmap enum constants)
WARNING: line over 80 characters
#86: FILE: hw/riscv/sifive_e.c:114:
+                          memmap[SIFIVE_E_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#131: FILE: hw/riscv/sifive_e.c:229:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_E_DEV_GPIO0].base);

total: 0 errors, 2 warnings, 186 lines checked

Patch 1/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
2/17 Checking commit 0e432596203a (sifive_u: Rename memmap enum constants)
WARNING: line over 80 characters
#303: FILE: hw/riscv/sifive_u.c:531:
+                          memmap[SIFIVE_U_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#367: FILE: hw/riscv/sifive_u.c:734:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->prci), 0, memmap[SIFIVE_U_DEV_PRCI].base);

WARNING: line over 80 characters
#374: FILE: hw/riscv/sifive_u.c:740:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_U_DEV_GPIO].base);

total: 0 errors, 3 warnings, 412 lines checked

Patch 2/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
3/17 Checking commit fff0e9d3c704 (sifive: Move QOM typedefs and add missing includes)
4/17 Checking commit e0cbb861a0f1 (sifive: Use DECLARE_*CHECKER* macros)
5/17 Checking commit 1ce98491fa0f (qom: Correct object_class_dynamic_cast_assert() documentation)
6/17 Checking commit 50ff47330456 (qom: Clean up object_property_get_enum()'s error value)
7/17 Checking commit c0e47ab69e94 (qom: Correct error values in two contracts)
8/17 Checking commit d841c007973f (qom: Allow objects to be allocated with increased alignment)
WARNING: architecture specific defines should be avoided
#74: FILE: qom/object.c:694:
+#if __STDC_VERSION__ >= 201112L

total: 0 errors, 1 warnings, 84 lines checked

Patch 8/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
9/17 Checking commit 01e41158b462 (target/arm: Set instance_align on CPUARM TypeInfo)
10/17 Checking commit 069753871dfe (target/ppc: Set instance_align on PowerPCCPU TypeInfo)
11/17 Checking commit 15c02b017584 (target/riscv: Set instance_align on RISCVCPU TypeInfo)
12/17 Checking commit 33ac5652f3e9 (target/s390x: Set instance_align on S390CPU TypeInfo)
13/17 Checking commit d38f486f87c3 (scripts/codeconverter: Update to latest version)
ERROR: line over 90 characters
#26: FILE: scripts/codeconverter/codeconverter/patching.py:8:
+from typing import IO, Match, NamedTuple, Optional, Literal, Iterable, Type, Dict, List, Any, TypeVar, NewType, Tuple, Union

ERROR: line over 90 characters
#78: FILE: scripts/codeconverter/codeconverter/patching.py:184:
+    def group_finditer(self, klass: Type['FileMatch'], group: Union[str, int]) -> Iterable['FileMatch']:

ERROR: line over 90 characters
#85: FILE: scripts/codeconverter/codeconverter/patching.py:191:
+    def try_group_match(self, klass: Type['FileMatch'], group: Union[str, int]) -> Optional['FileMatch']:

WARNING: line over 80 characters
#161: FILE: scripts/codeconverter/codeconverter/patching.py:289:
+    def find_match(self, t: Type[T], name: str, group: str='name') -> Optional[T]:

WARNING: line over 80 characters
#194: FILE: scripts/codeconverter/codeconverter/patching.py:331:
+        matches = [klass(self, m) for m in klass.finditer(self.original_content)]

ERROR: line over 90 characters
#221: FILE: scripts/codeconverter/codeconverter/patching.py:370:
+    def scan_for_matches(self, class_names: Optional[List[str]]=None) -> Iterable[FileMatch]:

WARNING: line over 80 characters
#337: FILE: scripts/codeconverter/codeconverter/qom_macros.py:28:
+    regexp = S(r'^[ \t]*#[ \t]*define', CPP_SPACE, NAMED('name', RE_IDENTIFIER), r'\b')

ERROR: line over 90 characters
#394: FILE: scripts/codeconverter/codeconverter/qom_macros.py:444:
+               r'\s*\(\s*', OR(NAMED('instancetype', RE_IDENTIFIER), RE_TYPE, name='c_type'),

ERROR: line over 90 characters
#457: FILE: scripts/codeconverter/codeconverter/qom_macros.py:513:
+               OR(RE_IDENTIFIER, RE_STRING, RE_MACRO_CONCAT, RE_FUN_CALL, name='typename'), SP,

WARNING: line over 80 characters
#521: FILE: scripts/codeconverter/codeconverter/qom_macros.py:575:
+    """Common base class for code that will look at a set of type declarations"""

ERROR: line over 90 characters
#531: FILE: scripts/codeconverter/codeconverter/qom_macros.py:583:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareInstanceChecker, DeclareInstanceType,

WARNING: line over 80 characters
#532: FILE: scripts/codeconverter/codeconverter/qom_macros.py:584:
+                                                   DeclareClassCheckers, DeclareClassType,

WARNING: line over 80 characters
#550: FILE: scripts/codeconverter/codeconverter/qom_macros.py:602:
+            field_dict = dict((f, v.pop() if v else None) for f,v in fvalues.items())

WARNING: line over 80 characters
#551: FILE: scripts/codeconverter/codeconverter/qom_macros.py:603:
+            yield from self.gen_patches_for_type(uppercase, checkers, field_dict)

WARNING: line over 80 characters
#553: FILE: scripts/codeconverter/codeconverter/qom_macros.py:605:
+    def find_conflicts(self, uppercase: str, checkers: List[TypeDeclaration]) -> bool:

WARNING: line over 80 characters
#554: FILE: scripts/codeconverter/codeconverter/qom_macros.py:606:
+        """Look for conflicting declarations that would make it unsafe to add new ones"""

WARNING: line over 80 characters
#557: FILE: scripts/codeconverter/codeconverter/qom_macros.py:609:
+        conflicting.extend(chain(self.file.find_matches(DefineDirective, uppercase),

ERROR: line over 90 characters
#558: FILE: scripts/codeconverter/codeconverter/qom_macros.py:610:
+                                 self.file.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#559: FILE: scripts/codeconverter/codeconverter/qom_macros.py:611:
+                                 self.file.find_matches(DeclareClassType, uppercase, 'uppercase'),

ERROR: line over 90 characters
#560: FILE: scripts/codeconverter/codeconverter/qom_macros.py:612:
+                                 self.file.find_matches(DeclareInstanceType, uppercase, 'uppercase')))

ERROR: line over 90 characters
#563: FILE: scripts/codeconverter/codeconverter/qom_macros.py:615:
+        conflicting.extend(o for o in chain(self.allfiles.find_matches(DeclareInstanceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#564: FILE: scripts/codeconverter/codeconverter/qom_macros.py:616:
+                                            self.allfiles.find_matches(DeclareClassCheckers, uppercase, 'uppercase'),

ERROR: line over 90 characters
#565: FILE: scripts/codeconverter/codeconverter/qom_macros.py:617:
+                                            self.allfiles.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#566: FILE: scripts/codeconverter/codeconverter/qom_macros.py:618:
+                                            self.allfiles.find_matches(DefineDirective, uppercase))

WARNING: line over 80 characters
#568: FILE: scripts/codeconverter/codeconverter/qom_macros.py:620:
+                               # if both are .c files, there's no conflict at all:

WARNING: line over 80 characters
#585: FILE: scripts/codeconverter/codeconverter/qom_macros.py:637:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#595: FILE: scripts/codeconverter/codeconverter/qom_macros.py:647:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#625: FILE: scripts/codeconverter/codeconverter/qom_macros.py:655:
+            yield first_checker.prepend(f'DECLARE_INSTANCE_TYPE({uppercase}, void)\n')

WARNING: line over 80 characters
#627: FILE: scripts/codeconverter/codeconverter/qom_macros.py:657:
+            yield first_checker.prepend(f'DECLARE_CLASS_TYPE({uppercase}, void)\n')

ERROR: line over 90 characters
#634: FILE: scripts/codeconverter/codeconverter/qom_macros.py:664:
+        #s = (f"DECLARE_OBJ_CHECKERS({final_values['instancetype']}, {final_values['classtype']},\n"+

ERROR: line over 90 characters
#635: FILE: scripts/codeconverter/codeconverter/qom_macros.py:665:
+        #        f"                     {final_values['uppercase']}, {final_values['typename']})\n")

WARNING: line over 80 characters
#645: FILE: scripts/codeconverter/codeconverter/qom_macros.py:675:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

ERROR: line over 90 characters
#719: FILE: scripts/codeconverter/codeconverter/qom_macros.py:754:
+def find_type_checkers(files:FileList, name:str, group:str='uppercase') -> Iterable[TypeCheckerDeclaration]:

ERROR: line over 90 characters
#722: FILE: scripts/codeconverter/codeconverter/qom_macros.py:757:
+    for c in (DeclareInstanceChecker, DeclareClassCheckers, DeclareObjCheckers, ObjectDeclareType, ObjectDeclareSimpleType):

ERROR: line over 90 characters
#738: FILE: scripts/codeconverter/codeconverter/qom_macros.py:794:
+        user_classes = [TypeCheckMacro, DeclareObjCheckers, DeclareInstanceChecker, DeclareClassCheckers, InterfaceCheckMacro]

ERROR: line over 90 characters
#796: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:43:
+        return [m.group('arrayitem') for m in self.group_finditer(ArrayItem, 'arrayitems')]

WARNING: line over 80 characters
#820: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:66:
+    Common base class for type definitions (TypeInfo variables or OBJECT_DEFINE* macros)

WARNING: line over 80 characters
#987: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:245:
+            self.warn("%s class size type (%s) is not *Class?", self.name, classtype)

ERROR: line over 90 characters
#992: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:250:
+        self.debug("searching for simpletype declaration using %s as InstanceType", instancetype)

ERROR: line over 90 characters
#1005: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:263:
+        c = (f'OBJECT_DECLARE_SIMPLE_TYPE({self.group("instancetype")}, {self.group("lowercase")},\n'

WARNING: line over 80 characters
#1012: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:270:
+        # this will just ensure the caches for find_match() and matches_for_type()

ERROR: line over 90 characters
#1047: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:321:
+        #            self.warn("macro/constant type name is required for instance/class type")

WARNING: line over 80 characters
#1066: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:333:
+                self.warn("This will make type validation difficult in the future")

WARNING: line over 80 characters
#1069: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:336:
+        parent_uppercase = find_typename_uppercase(self.allfiles, parent_typename)

ERROR: line over 90 characters
#1071: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:338:
+            self.info("Can't find right uppercase name for parent type (%s)", parent_typename)

ERROR: line over 90 characters
#1073: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:340:
+                self.warn("Can't find right uppercase name for parent type (%s)", parent_typename)

WARNING: line over 80 characters
#1074: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:341:
+                self.warn("This will make type validation difficult in the future")

ERROR: line over 90 characters
#1096: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:346:
+        #checkers: List[TypeCheckerDeclaration] = list(find_type_checkers(self.allfiles, uppercase))

ERROR: line over 90 characters
#1098: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:348:
+        #    c.info("instance type checker declaration (%s) is here", c.group('uppercase'))

ERROR: line over 90 characters
#1102: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:352:
+        #        self.warn("Can't find where type checkers for %s (%s) are declared.  We will need them to validate sizes of %s",

ERROR: line over 90 characters
#1123: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:371:
+        #        self.warn("type at instance_size is %r.  Should instance_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1128: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:376:
+        #        self.warn("instance type checker for %s (%s) not found", typename, instancetype)

ERROR: line over 90 characters
#1142: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:390:
+        #        self.warn("type at class_size is %r.  Should class_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1147: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:395:
+        #        self.warn("class type checker for %s (%s) not found", typename, classtype)

WARNING: line over 80 characters
#1170: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:416:
+        newbegin += f'                            {instancetype}, {classtype},\n'

WARNING: line over 80 characters
#1171: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:417:
+        newbegin += f'                            {uppercase}, {parent_uppercase}'

WARNING: line over 80 characters
#1204: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:450:
+def find_type_definitions(files: FileList, uppercase: str) -> Iterable[TypeDefinition]:

ERROR: line over 90 characters
#1205: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:451:
+    types: List[Type[TypeDefinition]] = [TypeInfoVar, ObjectDefineType, ObjectDefineTypeExtended]

WARNING: line over 80 characters
#1217: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:463:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#1265: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:511:
+        instance_checkers = [c for c in find_type_checkers(self.allfiles, uppercase)

WARNING: line over 80 characters
#1297: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:543:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1302: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:548:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1311: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:557:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1313: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:559:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1329: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:575:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

WARNING: line over 80 characters
#1334: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:580:
+                self.warn("mismatching class type for %s (%s)", uppercase, classtype)

ERROR: line over 90 characters
#1351: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:597:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1377: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:623:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1382: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:628:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1391: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:637:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1393: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:639:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1414: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:660:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

ERROR: line over 90 characters
#1436: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:682:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1457: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:703:
+        #all_defines = [m for m in self.allfiles.matches_of_type(ExpressionDefine)]

ERROR: line over 90 characters
#1487: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:744:
+        if 'instance_size' in values and parent.get_raw_initializer_value('instance_size') != values['instance_size'].raw:

ERROR: line over 90 characters
#1493: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:749:
+        if 'class_size' in values and parent.get_raw_initializer_value('class_size') != values['class_size'].raw:

ERROR: line over 90 characters
#1564: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:871:
+            self.warn("can't identify the function where type_register_static(&%s) is called", self.name)

WARNING: line over 80 characters
#1613: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:912:
+            yield self.group_match('func_name').make_patch('type_register_static')

total: 44 errors, 34 warnings, 1701 lines checked

Patch 13/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

14/17 Checking commit 2781efaf60e3 (qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE)
WARNING: line over 80 characters
#228: FILE: include/qom/object.h:649:
+#define OBJECT_DECLARE_SIMPLE_TYPE(InstanceType, module_obj_name, MODULE_OBJ_NAME) \

WARNING: line over 80 characters
#233: FILE: include/qom/object.h:654:
+    DECLARE_INSTANCE_CHECKER(InstanceType, MODULE_OBJ_NAME, TYPE_##MODULE_OBJ_NAME)

total: 0 errors, 2 warnings, 192 lines checked

Patch 14/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
15/17 Checking commit 72fdac039341 (qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros)
16/17 Checking commit 08e69531e848 (Use OBJECT_DECLARE_TYPE when possible)
WARNING: line over 80 characters
#153: FILE: hw/arm/vexpress.c:184:
+OBJECT_DECLARE_TYPE(VexpressMachineState, VexpressMachineClass, VEXPRESS_MACHINE)

WARNING: line over 80 characters
#970: FILE: include/hw/s390x/3270-ccw.h:34:
+OBJECT_DECLARE_TYPE(EmulatedCcw3270Device, EmulatedCcw3270Class, EMULATED_CCW_3270)

total: 0 errors, 2 warnings, 902 lines checked

Patch 16/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/17 Checking commit 1bcfbb274512 (Use OBJECT_DECLARE_SIMPLE_TYPE when possible)
WARNING: line over 80 characters
#46: FILE: backends/cryptodev-vhost-user.c:42:
+OBJECT_DECLARE_SIMPLE_TYPE(CryptoDevBackendVhostUser, CRYPTODEV_BACKEND_VHOST_USER)

total: 0 errors, 1 warnings, 6146 lines checked

Patch 17/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20200918204714.27276-1-ehabkost@redhat.com/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PULL 00/17] QOM queue, 2020-09-18
Posted by no-reply@patchew.org 3 years, 7 months ago
Patchew URL: https://patchew.org/QEMU/20200918204714.27276-1-ehabkost@redhat.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Type: series
Message-id: 20200918204714.27276-1-ehabkost@redhat.com
Subject: [PULL 00/17] QOM queue, 2020-09-18

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
74e8c80 Use OBJECT_DECLARE_SIMPLE_TYPE when possible
15a16fe Use OBJECT_DECLARE_TYPE when possible
145c405 qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros
580edfa qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE
7edd65a scripts/codeconverter: Update to latest version
668fa4d target/s390x: Set instance_align on S390CPU TypeInfo
200d65f target/riscv: Set instance_align on RISCVCPU TypeInfo
0dc3472 target/ppc: Set instance_align on PowerPCCPU TypeInfo
9b1a0bc target/arm: Set instance_align on CPUARM TypeInfo
121003c qom: Allow objects to be allocated with increased alignment
1967925 qom: Correct error values in two contracts
862522d qom: Clean up object_property_get_enum()'s error value
5363814 qom: Correct object_class_dynamic_cast_assert() documentation
c3cbbe1 sifive: Use DECLARE_*CHECKER* macros
bb31b29 sifive: Move QOM typedefs and add missing includes
1bfe9f9 sifive_u: Rename memmap enum constants
20307d4 sifive_e: Rename memmap enum constants

=== OUTPUT BEGIN ===
1/17 Checking commit 20307d4c2db9 (sifive_e: Rename memmap enum constants)
WARNING: line over 80 characters
#86: FILE: hw/riscv/sifive_e.c:114:
+                          memmap[SIFIVE_E_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#131: FILE: hw/riscv/sifive_e.c:229:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_E_DEV_GPIO0].base);

total: 0 errors, 2 warnings, 186 lines checked

Patch 1/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
2/17 Checking commit 1bfe9f9eccb5 (sifive_u: Rename memmap enum constants)
WARNING: line over 80 characters
#303: FILE: hw/riscv/sifive_u.c:531:
+                          memmap[SIFIVE_U_DEV_MROM].base, &address_space_memory);

WARNING: line over 80 characters
#367: FILE: hw/riscv/sifive_u.c:734:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->prci), 0, memmap[SIFIVE_U_DEV_PRCI].base);

WARNING: line over 80 characters
#374: FILE: hw/riscv/sifive_u.c:740:
+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_U_DEV_GPIO].base);

total: 0 errors, 3 warnings, 412 lines checked

Patch 2/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
3/17 Checking commit bb31b295487b (sifive: Move QOM typedefs and add missing includes)
4/17 Checking commit c3cbbe15fbe1 (sifive: Use DECLARE_*CHECKER* macros)
5/17 Checking commit 5363814b4203 (qom: Correct object_class_dynamic_cast_assert() documentation)
6/17 Checking commit 862522d76ecb (qom: Clean up object_property_get_enum()'s error value)
7/17 Checking commit 1967925fb215 (qom: Correct error values in two contracts)
8/17 Checking commit 121003cf6782 (qom: Allow objects to be allocated with increased alignment)
WARNING: architecture specific defines should be avoided
#74: FILE: qom/object.c:694:
+#if __STDC_VERSION__ >= 201112L

total: 0 errors, 1 warnings, 84 lines checked

Patch 8/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
9/17 Checking commit 9b1a0bce035d (target/arm: Set instance_align on CPUARM TypeInfo)
10/17 Checking commit 0dc3472929b0 (target/ppc: Set instance_align on PowerPCCPU TypeInfo)
11/17 Checking commit 200d65fb6653 (target/riscv: Set instance_align on RISCVCPU TypeInfo)
12/17 Checking commit 668fa4dcfc21 (target/s390x: Set instance_align on S390CPU TypeInfo)
13/17 Checking commit 7edd65a82b36 (scripts/codeconverter: Update to latest version)
ERROR: line over 90 characters
#26: FILE: scripts/codeconverter/codeconverter/patching.py:8:
+from typing import IO, Match, NamedTuple, Optional, Literal, Iterable, Type, Dict, List, Any, TypeVar, NewType, Tuple, Union

ERROR: line over 90 characters
#78: FILE: scripts/codeconverter/codeconverter/patching.py:184:
+    def group_finditer(self, klass: Type['FileMatch'], group: Union[str, int]) -> Iterable['FileMatch']:

ERROR: line over 90 characters
#85: FILE: scripts/codeconverter/codeconverter/patching.py:191:
+    def try_group_match(self, klass: Type['FileMatch'], group: Union[str, int]) -> Optional['FileMatch']:

WARNING: line over 80 characters
#161: FILE: scripts/codeconverter/codeconverter/patching.py:289:
+    def find_match(self, t: Type[T], name: str, group: str='name') -> Optional[T]:

WARNING: line over 80 characters
#194: FILE: scripts/codeconverter/codeconverter/patching.py:331:
+        matches = [klass(self, m) for m in klass.finditer(self.original_content)]

ERROR: line over 90 characters
#221: FILE: scripts/codeconverter/codeconverter/patching.py:370:
+    def scan_for_matches(self, class_names: Optional[List[str]]=None) -> Iterable[FileMatch]:

WARNING: line over 80 characters
#337: FILE: scripts/codeconverter/codeconverter/qom_macros.py:28:
+    regexp = S(r'^[ \t]*#[ \t]*define', CPP_SPACE, NAMED('name', RE_IDENTIFIER), r'\b')

ERROR: line over 90 characters
#394: FILE: scripts/codeconverter/codeconverter/qom_macros.py:444:
+               r'\s*\(\s*', OR(NAMED('instancetype', RE_IDENTIFIER), RE_TYPE, name='c_type'),

ERROR: line over 90 characters
#457: FILE: scripts/codeconverter/codeconverter/qom_macros.py:513:
+               OR(RE_IDENTIFIER, RE_STRING, RE_MACRO_CONCAT, RE_FUN_CALL, name='typename'), SP,

WARNING: line over 80 characters
#521: FILE: scripts/codeconverter/codeconverter/qom_macros.py:575:
+    """Common base class for code that will look at a set of type declarations"""

ERROR: line over 90 characters
#531: FILE: scripts/codeconverter/codeconverter/qom_macros.py:583:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareInstanceChecker, DeclareInstanceType,

WARNING: line over 80 characters
#532: FILE: scripts/codeconverter/codeconverter/qom_macros.py:584:
+                                                   DeclareClassCheckers, DeclareClassType,

WARNING: line over 80 characters
#550: FILE: scripts/codeconverter/codeconverter/qom_macros.py:602:
+            field_dict = dict((f, v.pop() if v else None) for f,v in fvalues.items())

WARNING: line over 80 characters
#551: FILE: scripts/codeconverter/codeconverter/qom_macros.py:603:
+            yield from self.gen_patches_for_type(uppercase, checkers, field_dict)

WARNING: line over 80 characters
#553: FILE: scripts/codeconverter/codeconverter/qom_macros.py:605:
+    def find_conflicts(self, uppercase: str, checkers: List[TypeDeclaration]) -> bool:

WARNING: line over 80 characters
#554: FILE: scripts/codeconverter/codeconverter/qom_macros.py:606:
+        """Look for conflicting declarations that would make it unsafe to add new ones"""

WARNING: line over 80 characters
#557: FILE: scripts/codeconverter/codeconverter/qom_macros.py:609:
+        conflicting.extend(chain(self.file.find_matches(DefineDirective, uppercase),

ERROR: line over 90 characters
#558: FILE: scripts/codeconverter/codeconverter/qom_macros.py:610:
+                                 self.file.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#559: FILE: scripts/codeconverter/codeconverter/qom_macros.py:611:
+                                 self.file.find_matches(DeclareClassType, uppercase, 'uppercase'),

ERROR: line over 90 characters
#560: FILE: scripts/codeconverter/codeconverter/qom_macros.py:612:
+                                 self.file.find_matches(DeclareInstanceType, uppercase, 'uppercase')))

ERROR: line over 90 characters
#563: FILE: scripts/codeconverter/codeconverter/qom_macros.py:615:
+        conflicting.extend(o for o in chain(self.allfiles.find_matches(DeclareInstanceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#564: FILE: scripts/codeconverter/codeconverter/qom_macros.py:616:
+                                            self.allfiles.find_matches(DeclareClassCheckers, uppercase, 'uppercase'),

ERROR: line over 90 characters
#565: FILE: scripts/codeconverter/codeconverter/qom_macros.py:617:
+                                            self.allfiles.find_matches(DeclareInterfaceChecker, uppercase, 'uppercase'),

ERROR: line over 90 characters
#566: FILE: scripts/codeconverter/codeconverter/qom_macros.py:618:
+                                            self.allfiles.find_matches(DefineDirective, uppercase))

WARNING: line over 80 characters
#568: FILE: scripts/codeconverter/codeconverter/qom_macros.py:620:
+                               # if both are .c files, there's no conflict at all:

WARNING: line over 80 characters
#585: FILE: scripts/codeconverter/codeconverter/qom_macros.py:637:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#595: FILE: scripts/codeconverter/codeconverter/qom_macros.py:647:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#625: FILE: scripts/codeconverter/codeconverter/qom_macros.py:655:
+            yield first_checker.prepend(f'DECLARE_INSTANCE_TYPE({uppercase}, void)\n')

WARNING: line over 80 characters
#627: FILE: scripts/codeconverter/codeconverter/qom_macros.py:657:
+            yield first_checker.prepend(f'DECLARE_CLASS_TYPE({uppercase}, void)\n')

ERROR: line over 90 characters
#634: FILE: scripts/codeconverter/codeconverter/qom_macros.py:664:
+        #s = (f"DECLARE_OBJ_CHECKERS({final_values['instancetype']}, {final_values['classtype']},\n"+

ERROR: line over 90 characters
#635: FILE: scripts/codeconverter/codeconverter/qom_macros.py:665:
+        #        f"                     {final_values['uppercase']}, {final_values['typename']})\n")

WARNING: line over 80 characters
#645: FILE: scripts/codeconverter/codeconverter/qom_macros.py:675:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

ERROR: line over 90 characters
#719: FILE: scripts/codeconverter/codeconverter/qom_macros.py:754:
+def find_type_checkers(files:FileList, name:str, group:str='uppercase') -> Iterable[TypeCheckerDeclaration]:

ERROR: line over 90 characters
#722: FILE: scripts/codeconverter/codeconverter/qom_macros.py:757:
+    for c in (DeclareInstanceChecker, DeclareClassCheckers, DeclareObjCheckers, ObjectDeclareType, ObjectDeclareSimpleType):

ERROR: line over 90 characters
#738: FILE: scripts/codeconverter/codeconverter/qom_macros.py:794:
+        user_classes = [TypeCheckMacro, DeclareObjCheckers, DeclareInstanceChecker, DeclareClassCheckers, InterfaceCheckMacro]

ERROR: line over 90 characters
#796: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:43:
+        return [m.group('arrayitem') for m in self.group_finditer(ArrayItem, 'arrayitems')]

WARNING: line over 80 characters
#820: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:66:
+    Common base class for type definitions (TypeInfo variables or OBJECT_DEFINE* macros)

WARNING: line over 80 characters
#987: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:245:
+            self.warn("%s class size type (%s) is not *Class?", self.name, classtype)

ERROR: line over 90 characters
#992: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:250:
+        self.debug("searching for simpletype declaration using %s as InstanceType", instancetype)

ERROR: line over 90 characters
#1005: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:263:
+        c = (f'OBJECT_DECLARE_SIMPLE_TYPE({self.group("instancetype")}, {self.group("lowercase")},\n'

WARNING: line over 80 characters
#1012: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:270:
+        # this will just ensure the caches for find_match() and matches_for_type()

ERROR: line over 90 characters
#1047: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:321:
+        #            self.warn("macro/constant type name is required for instance/class type")

WARNING: line over 80 characters
#1066: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:333:
+                self.warn("This will make type validation difficult in the future")

WARNING: line over 80 characters
#1069: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:336:
+        parent_uppercase = find_typename_uppercase(self.allfiles, parent_typename)

ERROR: line over 90 characters
#1071: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:338:
+            self.info("Can't find right uppercase name for parent type (%s)", parent_typename)

ERROR: line over 90 characters
#1073: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:340:
+                self.warn("Can't find right uppercase name for parent type (%s)", parent_typename)

WARNING: line over 80 characters
#1074: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:341:
+                self.warn("This will make type validation difficult in the future")

ERROR: line over 90 characters
#1096: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:346:
+        #checkers: List[TypeCheckerDeclaration] = list(find_type_checkers(self.allfiles, uppercase))

ERROR: line over 90 characters
#1098: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:348:
+        #    c.info("instance type checker declaration (%s) is here", c.group('uppercase'))

ERROR: line over 90 characters
#1102: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:352:
+        #        self.warn("Can't find where type checkers for %s (%s) are declared.  We will need them to validate sizes of %s",

ERROR: line over 90 characters
#1123: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:371:
+        #        self.warn("type at instance_size is %r.  Should instance_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1128: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:376:
+        #        self.warn("instance type checker for %s (%s) not found", typename, instancetype)

ERROR: line over 90 characters
#1142: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:390:
+        #        self.warn("type at class_size is %r.  Should class_size be set to sizeof(%s) ?",

ERROR: line over 90 characters
#1147: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:395:
+        #        self.warn("class type checker for %s (%s) not found", typename, classtype)

WARNING: line over 80 characters
#1170: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:416:
+        newbegin += f'                            {instancetype}, {classtype},\n'

WARNING: line over 80 characters
#1171: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:417:
+        newbegin += f'                            {uppercase}, {parent_uppercase}'

WARNING: line over 80 characters
#1204: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:450:
+def find_type_definitions(files: FileList, uppercase: str) -> Iterable[TypeDefinition]:

ERROR: line over 90 characters
#1205: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:451:
+    types: List[Type[TypeDefinition]] = [TypeInfoVar, ObjectDefineType, ObjectDefineTypeExtended]

WARNING: line over 80 characters
#1217: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:463:
+                             fields: Dict[str, Optional[str]]) -> Iterable[Patch]:

WARNING: line over 80 characters
#1265: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:511:
+        instance_checkers = [c for c in find_type_checkers(self.allfiles, uppercase)

WARNING: line over 80 characters
#1297: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:543:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1302: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:548:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1311: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:557:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1313: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:559:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1329: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:575:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

WARNING: line over 80 characters
#1334: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:580:
+                self.warn("mismatching class type for %s (%s)", uppercase, classtype)

ERROR: line over 90 characters
#1351: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:597:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1377: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:623:
+                    self.warn("typedef mismatch: %s is defined as %s", t, td_type)

ERROR: line over 90 characters
#1382: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:628:
+        other_instance_checkers = [c for c in find_type_checkers(self.allfiles, instancetype, 'instancetype')

ERROR: line over 90 characters
#1391: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:637:
+        decl_types: List[Type[TypeDeclaration]] = [DeclareClassCheckers, DeclareObjCheckers]

WARNING: line over 80 characters
#1393: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:639:
+                       for m in self.allfiles.find_matches(t, uppercase, 'uppercase')]

ERROR: line over 90 characters
#1414: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:660:
+                self.warn("mismatching instance type for %s (%s)", uppercase, instancetype)

ERROR: line over 90 characters
#1436: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:682:
+                elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):

WARNING: line over 80 characters
#1457: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:703:
+        #all_defines = [m for m in self.allfiles.matches_of_type(ExpressionDefine)]

ERROR: line over 90 characters
#1487: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:744:
+        if 'instance_size' in values and parent.get_raw_initializer_value('instance_size') != values['instance_size'].raw:

ERROR: line over 90 characters
#1493: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:749:
+        if 'class_size' in values and parent.get_raw_initializer_value('class_size') != values['class_size'].raw:

ERROR: line over 90 characters
#1564: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:871:
+            self.warn("can't identify the function where type_register_static(&%s) is called", self.name)

WARNING: line over 80 characters
#1613: FILE: scripts/codeconverter/codeconverter/qom_type_info.py:912:
+            yield self.group_match('func_name').make_patch('type_register_static')

total: 44 errors, 34 warnings, 1701 lines checked

Patch 13/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

14/17 Checking commit 580edfa51e34 (qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE)
WARNING: line over 80 characters
#228: FILE: include/qom/object.h:649:
+#define OBJECT_DECLARE_SIMPLE_TYPE(InstanceType, module_obj_name, MODULE_OBJ_NAME) \

WARNING: line over 80 characters
#233: FILE: include/qom/object.h:654:
+    DECLARE_INSTANCE_CHECKER(InstanceType, MODULE_OBJ_NAME, TYPE_##MODULE_OBJ_NAME)

total: 0 errors, 2 warnings, 192 lines checked

Patch 14/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
15/17 Checking commit 145c40532e4a (qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros)
16/17 Checking commit 15a16fe73496 (Use OBJECT_DECLARE_TYPE when possible)
WARNING: line over 80 characters
#153: FILE: hw/arm/vexpress.c:184:
+OBJECT_DECLARE_TYPE(VexpressMachineState, VexpressMachineClass, VEXPRESS_MACHINE)

WARNING: line over 80 characters
#970: FILE: include/hw/s390x/3270-ccw.h:34:
+OBJECT_DECLARE_TYPE(EmulatedCcw3270Device, EmulatedCcw3270Class, EMULATED_CCW_3270)

total: 0 errors, 2 warnings, 902 lines checked

Patch 16/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/17 Checking commit 74e8c804ff31 (Use OBJECT_DECLARE_SIMPLE_TYPE when possible)
WARNING: line over 80 characters
#46: FILE: backends/cryptodev-vhost-user.c:42:
+OBJECT_DECLARE_SIMPLE_TYPE(CryptoDevBackendVhostUser, CRYPTODEV_BACKEND_VHOST_USER)

total: 0 errors, 1 warnings, 6146 lines checked

Patch 17/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20200918204714.27276-1-ehabkost@redhat.com/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com