clean include files to use osdep.h
Subsystems (6)
cover clean include files to use osdep.h
This is a big fat patchset that touches nearly 800 files, but it's all automated use of scripts/clean-includes. This doesn't cover the whole tree, but it does get all of target-* and hw/ and some other bits.
I split the patches up mostly roughly by entries in MAINTAINERS, and also with some more ad-hoc splitting at the end of the series. The final larger patch is the "everything else in hw" bit -- I stopped when I got down to a diffstat that wasn't too stupidly huge and there weren't any more obvious neat carve-outs.
I propose to apply this directly to master in the not too distant future, since the consensus appears to be that that's overall less painful than trying to split it all between maintainer trees for a purely mechanical change.
There will then be another similar series which picks up the remaining stuff.
thanks
-- PMM
Peter Maydell (37):
migration: Clean up includes
crypto: Clean up includes
exec: Clean up includes
lm32: Clean up includes
ppc: Clean up includes
sparc: Clean up includes
s390: Clean up includes
unicore: Clean up includes
linux-user: Clean up includes
x86: Clean up includes
alpha: Clean up includes
arm: Clean up includes
xen: Clean up includes
virtio: Clean up includes
tcg: Clean up includes
ide: Clean up includes
9pfs: Clean up includes
hw/net: Clean up includes
usb: Clean up includes
hw/display: Clean up includes
hw/vfio: Clean up includes
pci: Clean up includes
hw/scsi: Clean up includes
hw/misc: Clean up includes
hw/timer: Clean up includes
hw/intc: Clean up includes
sh4: Clean up includes
xtensa: Clean up includes
openrisc: Clean up includes
m68k: Clean up includes
cris: Clean up includes
moxie: Clean up includes
tricore: Clean up includes
tilegx: Clean up includes
arm devices: Clean up includes
hw/core: Clean up includes
hw: Clean up includes
cpu-exec-common.c | 2 +- cpu-exec.c | 2 +- cpus.c | 2 +- cputlb.c | 2 +- crypto/aes.c | 1 + crypto/cipher-builtin.c | 1 + crypto/cipher-gcrypt.c | 1 + crypto/cipher-nettle.c | 1 + crypto/cipher.c | 1 + crypto/desrfb.c | 1 + crypto/hash.c | 1 + crypto/init.c | 1 + crypto/secret.c | 1 + crypto/tlscreds.c | 1 + crypto/tlscredsanon.c | 1 + crypto/tlscredsx509.c | 1 + crypto/tlssession.c | 1 + disas/alpha.c | 2 +- disas/arm.c | 1 + disas/cris.c | 1 + disas/lm32.c | 2 +- disas/moxie.c | 2 +- disas/ppc.c | 1 + disas/sh4.c | 2 +- exec.c | 4 +--- fsdev/9p-iov-marshal.c | 7 +------ fsdev/9p-marshal.c | 7 +------ fsdev/qemu-fsdev-dummy.c | 3 +-- fsdev/qemu-fsdev-opts.c | 1 + fsdev/qemu-fsdev.c | 4 +--- fsdev/virtfs-proxy-helper.c | 1 + hw/9pfs/9p-handle.c | 2 +- hw/9pfs/9p-local.c | 1 + hw/9pfs/9p-posix-acl.c | 2 +- hw/9pfs/9p-proxy.c | 1 + hw/9pfs/9p-synth.c | 2 +- hw/9pfs/9p-xattr-user.c | 2 +- hw/9pfs/9p-xattr.c | 1 + hw/9pfs/9p.c | 1 + hw/9pfs/codir.c | 1 + hw/9pfs/cofile.c | 1 + hw/9pfs/cofs.c | 1 + hw/9pfs/coth.c | 1 + hw/9pfs/coxattr.c | 1 + hw/9pfs/virtio-9p-device.c | 1 + hw/acpi/acpi_interface.c | 1 + hw/acpi/aml-build.c | 6 +----- hw/acpi/bios-linker-loader.c | 1 + hw/acpi/core.c | 1 + hw/acpi/cpu_hotplug.c | 1 + hw/acpi/cpu_hotplug_acpi_table.c | 1 + hw/acpi/ich9.c | 1 + hw/acpi/memory_hotplug.c | 1 + hw/acpi/memory_hotplug_acpi_table.c | 2 +- hw/acpi/nvdimm.c | 1 + hw/acpi/pcihp.c | 1 + hw/acpi/piix4.c | 1 + hw/acpi/tco.c | 1 + hw/alpha/dp264.c | 1 + hw/alpha/pci.c | 2 +- hw/alpha/typhoon.c | 1 + hw/bt/core.c | 1 + hw/bt/hci-csr.c | 1 + hw/bt/hci.c | 1 + hw/bt/hid.c | 1 + hw/bt/l2cap.c | 1 + hw/bt/sdp.c | 1 + hw/char/cadence_uart.c | 1 + hw/char/debugcon.c | 1 + hw/char/digic-uart.c | 1 + hw/char/escc.c | 1 + hw/char/etraxfs_ser.c | 1 + hw/char/exynos4210_uart.c | 1 + hw/char/grlib_apbuart.c | 1 + hw/char/imx_serial.c | 1 + hw/char/ipoctal232.c | 1 + hw/char/lm32_juart.c | 1 + hw/char/lm32_uart.c | 1 + hw/char/mcf_uart.c | 1 + hw/char/milkymist-uart.c | 1 + hw/char/omap_uart.c | 1 + hw/char/parallel.c | 1 + hw/char/pl011.c | 1 + hw/char/sclpconsole-lm.c | 1 + hw/char/sclpconsole.c | 1 + hw/char/serial-isa.c | 1 + hw/char/serial-pci.c | 1 + hw/char/serial.c | 1 + hw/char/sh_serial.c | 1 + hw/char/spapr_vty.c | 1 + hw/char/stm32f2xx_usart.c | 1 + hw/char/virtio-console.c | 1 + hw/char/virtio-serial-bus.c | 1 + hw/char/xen_console.c | 7 +------ hw/char/xilinx_uartlite.c | 1 + hw/core/empty_slot.c | 1 + hw/core/fw-path-provider.c | 1 + hw/core/hotplug.c | 1 + hw/core/irq.c | 1 + hw/core/loader.c | 1 + hw/core/machine.c | 1 + hw/core/nmi.c | 1 + hw/core/null-machine.c | 1 + hw/core/platform-bus.c | 1 + hw/core/ptimer.c | 1 + hw/core/qdev-properties-system.c | 1 + hw/core/qdev-properties.c | 1 + hw/core/qdev.c | 2 +- hw/core/stream.c | 1 + hw/core/sysbus.c | 1 + hw/cpu/a15mpcore.c | 1 + hw/cpu/a9mpcore.c | 1 + hw/cpu/arm11mpcore.c | 1 + hw/cpu/realview_mpcore.c | 1 + hw/cris/axis_dev88.c | 1 + hw/cris/boot.c | 1 + hw/display/ads7846.c | 1 + hw/display/blizzard.c | 1 + hw/display/cg3.c | 1 + hw/display/cirrus_vga.c | 1 + hw/display/exynos4210_fimd.c | 1 + hw/display/framebuffer.c | 1 + hw/display/g364fb.c | 1 + hw/display/jazz_led.c | 1 + hw/display/milkymist-tmu2.c | 1 + hw/display/milkymist-vgafb.c | 1 + hw/display/omap_dss.c | 1 + hw/display/omap_lcdc.c | 1 + hw/display/pl110.c | 1 + hw/display/pxa2xx_lcd.c | 1 + hw/display/qxl-logger.c | 1 + hw/display/qxl-render.c | 1 + hw/display/qxl.c | 2 +- hw/display/sm501.c | 2 +- hw/display/ssd0303.c | 1 + hw/display/ssd0323.c | 1 + hw/display/tc6393xb.c | 1 + hw/display/tcx.c | 1 + hw/display/vga-isa-mm.c | 1 + hw/display/vga-isa.c | 1 + hw/display/vga-pci.c | 1 + hw/display/vga.c | 1 + hw/display/virtio-gpu-3d.c | 1 + hw/display/virtio-gpu-pci.c | 1 + hw/display/virtio-gpu.c | 1 + hw/display/virtio-vga.c | 1 + hw/display/vmware_vga.c | 1 + hw/display/xenfb.c | 10 +--------- hw/dma/etraxfs_dma.c | 3 +-- hw/dma/i82374.c | 1 + hw/dma/i8257.c | 1 + hw/dma/omap_dma.c | 1 + hw/dma/pl080.c | 1 + hw/dma/pl330.c | 1 + hw/dma/puv3_dma.c | 1 + hw/dma/pxa2xx_dma.c | 1 + hw/dma/rc4030.c | 1 + hw/dma/soc_dma.c | 1 + hw/dma/sparc32_dma.c | 1 + hw/dma/sun4m_iommu.c | 1 + hw/dma/xilinx_axidma.c | 1 + hw/gpio/imx_gpio.c | 1 + hw/gpio/max7310.c | 1 + hw/gpio/mpc8xxx.c | 1 + hw/gpio/omap_gpio.c | 1 + hw/gpio/pl061.c | 1 + hw/gpio/puv3_gpio.c | 1 + hw/gpio/zaurus.c | 1 + hw/i2c/bitbang_i2c.c | 1 + hw/i2c/core.c | 1 + hw/i2c/exynos4210_i2c.c | 1 + hw/i2c/imx_i2c.c | 1 + hw/i2c/omap_i2c.c | 1 + hw/i2c/pm_smbus.c | 1 + hw/i2c/smbus.c | 1 + hw/i2c/smbus_eeprom.c | 1 + hw/i2c/smbus_ich9.c | 1 + hw/i2c/versatile_i2c.c | 1 + hw/i386/acpi-build.c | 3 +-- hw/i386/intel_iommu.c | 1 + hw/i386/kvm/apic.c | 1 + hw/i386/kvm/clock.c | 1 + hw/i386/kvm/i8254.c | 1 + hw/i386/kvm/i8259.c | 1 + hw/i386/kvm/ioapic.c | 1 + hw/i386/kvm/pci-assign.c | 5 +---- hw/i386/kvmvapic.c | 1 + hw/i386/multiboot.c | 1 + hw/i386/pc.c | 1 + hw/i386/pc_piix.c | 1 + hw/i386/pc_q35.c | 1 + hw/i386/pc_sysfw.c | 1 + hw/i386/pci-assign-load-rom.c | 5 +---- hw/i386/xen/xen_apic.c | 1 + hw/i386/xen/xen_platform.c | 1 + hw/i386/xen/xen_pvdevice.c | 1 + hw/ide/ahci.c | 1 + hw/ide/atapi.c | 1 + hw/ide/cmd646.c | 1 + hw/ide/core.c | 1 + hw/ide/ich.c | 1 + hw/ide/isa.c | 1 + hw/ide/macio.c | 1 + hw/ide/microdrive.c | 1 + hw/ide/mmio.c | 1 + hw/ide/pci.c | 1 + hw/ide/piix.c | 1 + hw/ide/qdev.c | 1 + hw/ide/via.c | 1 + hw/input/adb.c | 1 + hw/input/hid.c | 1 + hw/input/lm832x.c | 1 + hw/input/milkymist-softusb.c | 1 + hw/input/pckbd.c | 1 + hw/input/pl050.c | 1 + hw/input/ps2.c | 1 + hw/input/pxa2xx_keypad.c | 1 + hw/input/stellaris_input.c | 1 + hw/input/tsc2005.c | 1 + hw/input/tsc210x.c | 1 + hw/input/virtio-input-hid.c | 1 + hw/input/virtio-input-host.c | 1 + hw/input/virtio-input.c | 1 + hw/input/vmmouse.c | 1 + hw/intc/allwinner-a10-pic.c | 1 + hw/intc/apic.c | 1 + hw/intc/apic_common.c | 1 + hw/intc/arm_gic.c | 1 + hw/intc/arm_gic_common.c | 1 + hw/intc/arm_gic_kvm.c | 1 + hw/intc/arm_gicv2m.c | 1 + hw/intc/arm_gicv3_common.c | 1 + hw/intc/arm_gicv3_kvm.c | 1 + hw/intc/armv7m_nvic.c | 1 + hw/intc/etraxfs_pic.c | 1 + hw/intc/exynos4210_combiner.c | 1 + hw/intc/exynos4210_gic.c | 1 + hw/intc/grlib_irqmp.c | 1 + hw/intc/heathrow_pic.c | 1 + hw/intc/i8259.c | 1 + hw/intc/i8259_common.c | 1 + hw/intc/imx_avic.c | 1 + hw/intc/ioapic.c | 1 + hw/intc/ioapic_common.c | 1 + hw/intc/lm32_pic.c | 2 +- hw/intc/omap_intc.c | 1 + hw/intc/openpic.c | 1 + hw/intc/openpic_kvm.c | 1 + hw/intc/pl190.c | 1 + hw/intc/puv3_intc.c | 1 + hw/intc/realview_gic.c | 1 + hw/intc/s390_flic.c | 1 + hw/intc/s390_flic_kvm.c | 1 + hw/intc/sh_intc.c | 1 + hw/intc/slavio_intctl.c | 1 + hw/intc/xics.c | 1 + hw/intc/xics_kvm.c | 1 + hw/intc/xilinx_intc.c | 1 + hw/ipack/ipack.c | 1 + hw/ipack/tpci200.c | 2 +- hw/ipmi/ipmi.c | 1 + hw/ipmi/ipmi_bmc_extern.c | 2 +- hw/ipmi/ipmi_bmc_sim.c | 4 +--- hw/ipmi/isa_ipmi_bt.c | 1 + hw/ipmi/isa_ipmi_kcs.c | 1 + hw/isa/apm.c | 1 + hw/isa/i82378.c | 1 + hw/isa/isa-bus.c | 1 + hw/isa/lpc_ich9.c | 1 + hw/isa/pc87312.c | 1 + hw/isa/piix4.c | 1 + hw/isa/vt82c686.c | 1 + hw/lm32/lm32_boards.c | 1 + hw/lm32/milkymist.c | 1 + hw/m68k/an5206.c | 1 + hw/m68k/dummy_m68k.c | 1 + hw/m68k/mcf5206.c | 1 + hw/m68k/mcf5208.c | 1 + hw/m68k/mcf_intc.c | 1 + hw/mem/nvdimm.c | 1 + hw/mem/pc-dimm.c | 1 + hw/misc/a9scu.c | 1 + hw/misc/applesmc.c | 1 + hw/misc/arm11scu.c | 1 + hw/misc/arm_integrator_debug.c | 1 + hw/misc/arm_l2x0.c | 1 + hw/misc/arm_sysctl.c | 1 + hw/misc/cbus.c | 1 + hw/misc/debugexit.c | 1 + hw/misc/eccmemctl.c | 1 + hw/misc/edu.c | 1 + hw/misc/exynos4210_pmu.c | 1 + hw/misc/hyperv_testdev.c | 1 + hw/misc/imx25_ccm.c | 1 + hw/misc/imx31_ccm.c | 1 + hw/misc/imx_ccm.c | 1 + hw/misc/ivshmem.c | 3 +-- hw/misc/macio/cuda.c | 1 + hw/misc/macio/mac_dbdma.c | 1 + hw/misc/macio/macio.c | 1 + hw/misc/max111x.c | 1 + hw/misc/milkymist-hpdmc.c | 1 + hw/misc/milkymist-pfpu.c | 1 + hw/misc/mst_fpga.c | 1 + hw/misc/omap_clk.c | 1 + hw/misc/omap_gpmc.c | 1 + hw/misc/omap_l4.c | 1 + hw/misc/omap_sdrc.c | 1 + hw/misc/omap_tap.c | 1 + hw/misc/pc-testdev.c | 2 +- hw/misc/pci-testdev.c | 2 +- hw/misc/puv3_pm.c | 1 + hw/misc/pvpanic.c | 1 + hw/misc/sga.c | 1 + hw/misc/slavio_misc.c | 1 + hw/misc/stm32f2xx_syscfg.c | 1 + hw/misc/tmp105.c | 1 + hw/misc/vmport.c | 1 + hw/misc/zynq-xadc.c | 1 + hw/misc/zynq_slcr.c | 1 + hw/moxie/moxiesim.c | 1 + hw/net/allwinner_emac.c | 1 + hw/net/cadence_gem.c | 1 + hw/net/dp8393x.c | 1 + hw/net/e1000.c | 1 + hw/net/eepro100.c | 2 +- hw/net/etraxfs_eth.c | 2 +- hw/net/fsl_etsec/etsec.c | 1 + hw/net/fsl_etsec/miim.c | 1 + hw/net/fsl_etsec/registers.c | 1 + hw/net/fsl_etsec/rings.c | 1 + hw/net/imx_fec.c | 1 + hw/net/lan9118.c | 1 + hw/net/lance.c | 1 + hw/net/mcf_fec.c | 1 + hw/net/milkymist-minimac2.c | 1 + hw/net/mipsnet.c | 1 + hw/net/ne2000-isa.c | 1 + hw/net/ne2000.c | 1 + hw/net/opencores_eth.c | 1 + hw/net/pcnet-pci.c | 1 + hw/net/pcnet.c | 1 + hw/net/rocker/qmp-norocker.c | 1 + hw/net/rocker/rocker.c | 1 + hw/net/rocker/rocker_desc.c | 1 + hw/net/rocker/rocker_fp.c | 1 + hw/net/rocker/rocker_of_dpa.c | 1 + hw/net/rocker/rocker_world.c | 1 + hw/net/rtl8139.c | 1 + hw/net/smc91c111.c | 1 + hw/net/spapr_llan.c | 1 + hw/net/stellaris_enet.c | 1 + hw/net/vhost_net.c | 4 +--- hw/net/virtio-net.c | 1 + hw/net/vmxnet3.c | 1 + hw/net/vmxnet_rx_pkt.c | 1 + hw/net/vmxnet_tx_pkt.c | 1 + hw/net/xen_nic.c | 11 +---------- hw/net/xgmac.c | 1 + hw/net/xilinx_axienet.c | 1 + hw/net/xilinx_ethlite.c | 1 + hw/nvram/ds1225y.c | 1 + hw/nvram/eeprom93xx.c | 1 + hw/nvram/fw_cfg.c | 1 + hw/nvram/mac_nvram.c | 1 + hw/nvram/spapr_nvram.c | 1 + hw/openrisc/cputimer.c | 1 + hw/openrisc/openrisc_sim.c | 1 + hw/openrisc/pic_cpu.c | 1 + hw/pci-bridge/dec.c | 1 + hw/pci-bridge/i82801b11.c | 1 + hw/pci-bridge/ioh3420.c | 1 + hw/pci-bridge/pci_bridge_dev.c | 1 + hw/pci-bridge/pci_expander_bridge.c | 1 + hw/pci-bridge/xio3130_downstream.c | 1 + hw/pci-bridge/xio3130_upstream.c | 1 + hw/pci-host/apb.c | 1 + hw/pci-host/bonito.c | 2 +- hw/pci-host/gpex.c | 1 + hw/pci-host/grackle.c | 1 + hw/pci-host/pam.c | 1 + hw/pci-host/piix.c | 1 + hw/pci-host/ppce500.c | 1 + hw/pci-host/prep.c | 1 + hw/pci-host/q35.c | 1 + hw/pci-host/uninorth.c | 1 + hw/pci-host/versatile.c | 1 + hw/pci/msi.c | 1 + hw/pci/msix.c | 1 + hw/pci/pci-stub.c | 1 + hw/pci/pci.c | 1 + hw/pci/pci_bridge.c | 1 + hw/pci/pci_host.c | 1 + hw/pci/pcie.c | 1 + hw/pci/pcie_aer.c | 1 + hw/pci/pcie_host.c | 1 + hw/pci/pcie_port.c | 1 + hw/pci/shpc.c | 2 +- hw/pci/slotid_cap.c | 1 + hw/pcmcia/pcmcia.c | 1 + hw/pcmcia/pxa2xx.c | 1 + hw/ppc/e500.c | 2 +- hw/ppc/e500plat.c | 2 +- hw/ppc/mac_newworld.c | 1 + hw/ppc/mac_oldworld.c | 1 + hw/ppc/mpc8544_guts.c | 1 + hw/ppc/mpc8544ds.c | 2 +- hw/ppc/ppc.c | 1 + hw/ppc/ppc405_boards.c | 1 + hw/ppc/ppc405_uc.c | 1 + hw/ppc/ppc440_bamboo.c | 2 +- hw/ppc/ppc4xx_devs.c | 1 + hw/ppc/ppc4xx_pci.c | 1 + hw/ppc/ppc_booke.c | 1 + hw/ppc/ppce500_spin.c | 1 + hw/ppc/prep.c | 1 + hw/ppc/spapr.c | 1 + hw/ppc/spapr_drc.c | 1 + hw/ppc/spapr_events.c | 1 + hw/ppc/spapr_hcall.c | 1 + hw/ppc/spapr_iommu.c | 1 + hw/ppc/spapr_pci.c | 1 + hw/ppc/spapr_pci_vfio.c | 1 + hw/ppc/spapr_rng.c | 1 + hw/ppc/spapr_rtas.c | 1 + hw/ppc/spapr_rtc.c | 1 + hw/ppc/spapr_vio.c | 1 + hw/ppc/virtex_ml507.c | 1 + hw/s390x/css.c | 1 + hw/s390x/event-facility.c | 1 + hw/s390x/ipl.c | 1 + hw/s390x/s390-pci-bus.c | 1 + hw/s390x/s390-pci-inst.c | 1 + hw/s390x/s390-skeys-kvm.c | 1 + hw/s390x/s390-skeys.c | 1 + hw/s390x/s390-virtio-ccw.c | 1 + hw/s390x/s390-virtio-hcall.c | 1 + hw/s390x/s390-virtio.c | 1 + hw/s390x/sclp.c | 1 + hw/s390x/sclpcpu.c | 1 + hw/s390x/sclpquiesce.c | 1 + hw/s390x/virtio-ccw.c | 1 + hw/scsi/esp-pci.c | 1 + hw/scsi/esp.c | 1 + hw/scsi/lsi53c895a.c | 2 +- hw/scsi/megasas.c | 1 + hw/scsi/scsi-bus.c | 1 + hw/scsi/scsi-disk.c | 1 + hw/scsi/scsi-generic.c | 5 +---- hw/scsi/spapr_vscsi.c | 1 + hw/scsi/vhost-scsi.c | 2 +- hw/scsi/virtio-scsi-dataplane.c | 1 + hw/scsi/virtio-scsi.c | 1 + hw/scsi/vmw_pvscsi.c | 1 + hw/sd/milkymist-memcard.c | 1 + hw/sd/omap_mmc.c | 1 + hw/sd/pl181.c | 1 + hw/sd/pxa2xx_mmci.c | 1 + hw/sd/sd.c | 1 + hw/sd/sdhci.c | 2 +- hw/sd/ssi-sd.c | 1 + hw/sh4/r2d.c | 1 + hw/sh4/sh7750.c | 2 +- hw/sh4/sh7750_regnames.c | 1 + hw/sh4/sh_pci.c | 1 + hw/sh4/shix.c | 1 + hw/smbios/smbios.c | 1 + hw/sparc/leon3.c | 1 + hw/sparc/sun4m.c | 1 + hw/sparc64/sun4u.c | 1 + hw/ssi/omap_spi.c | 1 + hw/ssi/pl022.c | 1 + hw/ssi/ssi.c | 1 + hw/ssi/xilinx_spi.c | 1 + hw/ssi/xilinx_spips.c | 1 + hw/timer/a9gtimer.c | 1 + hw/timer/allwinner-a10-pit.c | 1 + hw/timer/arm_mptimer.c | 1 + hw/timer/arm_timer.c | 1 + hw/timer/cadence_ttc.c | 1 + hw/timer/digic-timer.c | 1 + hw/timer/ds1338.c | 1 + hw/timer/etraxfs_timer.c | 1 + hw/timer/exynos4210_mct.c | 1 + hw/timer/exynos4210_pwm.c | 1 + hw/timer/exynos4210_rtc.c | 1 + hw/timer/grlib_gptimer.c | 1 + hw/timer/hpet.c | 1 + hw/timer/i8254.c | 1 + hw/timer/i8254_common.c | 1 + hw/timer/imx_epit.c | 1 + hw/timer/imx_gpt.c | 1 + hw/timer/lm32_timer.c | 1 + hw/timer/m48t59.c | 1 + hw/timer/mc146818rtc.c | 1 + hw/timer/milkymist-sysctl.c | 1 + hw/timer/omap_gptimer.c | 1 + hw/timer/omap_synctimer.c | 1 + hw/timer/pl031.c | 1 + hw/timer/puv3_ost.c | 1 + hw/timer/pxa2xx_timer.c | 1 + hw/timer/sh_timer.c | 1 + hw/timer/slavio_timer.c | 1 + hw/timer/stm32f2xx_timer.c | 1 + hw/timer/tusb6010.c | 1 + hw/timer/twl92230.c | 1 + hw/timer/xilinx_timer.c | 1 + hw/tpm/tpm_passthrough.c | 2 +- hw/tpm/tpm_tis.c | 1 + hw/tpm/tpm_util.c | 1 + hw/tricore/tricore_testboard.c | 1 + hw/unicore32/puv3.c | 1 + hw/usb/bus.c | 1 + hw/usb/ccid-card-emulated.c | 1 + hw/usb/ccid-card-passthru.c | 1 + hw/usb/combined-packet.c | 1 + hw/usb/core.c | 1 + hw/usb/desc-msos.c | 1 + hw/usb/desc.c | 2 +- hw/usb/dev-audio.c | 1 + hw/usb/dev-bluetooth.c | 1 + hw/usb/dev-hid.c | 1 + hw/usb/dev-hub.c | 1 + hw/usb/dev-mtp.c | 3 +-- hw/usb/dev-network.c | 1 + hw/usb/dev-serial.c | 1 + hw/usb/dev-smartcard-reader.c | 1 + hw/usb/dev-storage.c | 1 + hw/usb/dev-uas.c | 1 + hw/usb/dev-wacom.c | 1 + hw/usb/hcd-ehci-pci.c | 1 + hw/usb/hcd-ehci-sysbus.c | 1 + hw/usb/hcd-ehci.c | 1 + hw/usb/hcd-musb.c | 1 + hw/usb/hcd-ohci.c | 1 + hw/usb/hcd-uhci.c | 1 + hw/usb/hcd-xhci.c | 1 + hw/usb/host-legacy.c | 1 + hw/usb/host-libusb.c | 1 + hw/usb/host-stub.c | 1 + hw/usb/libhw.c | 1 + hw/usb/quirks.c | 1 + hw/usb/redirect.c | 1 + hw/vfio/calxeda-xgmac.c | 1 + hw/vfio/common.c | 1 + hw/vfio/pci-quirks.c | 1 + hw/vfio/pci.c | 5 +---- hw/vfio/platform.c | 1 + hw/virtio/dataplane/vring.c | 1 + hw/virtio/vhost-backend.c | 1 + hw/virtio/vhost-user.c | 3 +-- hw/virtio/vhost.c | 1 + hw/virtio/virtio-balloon.c | 1 + hw/virtio/virtio-bus.c | 1 + hw/virtio/virtio-mmio.c | 1 + hw/virtio/virtio-pci.c | 2 +- hw/virtio/virtio-rng.c | 1 + hw/virtio/virtio.c | 2 +- hw/watchdog/watchdog.c | 1 + hw/watchdog/wdt_diag288.c | 1 + hw/watchdog/wdt_i6300esb.c | 2 +- hw/watchdog/wdt_ib700.c | 1 + hw/xen/xen-host-pci-device.c | 1 + hw/xen/xen_backend.c | 10 +--------- hw/xen/xen_devconfig.c | 1 + hw/xen/xen_pt.c | 1 + hw/xen/xen_pt_config_init.c | 1 + hw/xen/xen_pt_graphics.c | 1 + hw/xen/xen_pt_msi.c | 1 + hw/xenpv/xen_domainbuild.c | 2 +- hw/xenpv/xen_machine_pv.c | 1 + hw/xtensa/pic_cpu.c | 1 + hw/xtensa/sim.c | 1 + hw/xtensa/xtfpga.c | 1 + linux-user/arm/nwfpe/double_cpdo.c | 1 + linux-user/arm/nwfpe/extended_cpdo.c | 1 + linux-user/arm/nwfpe/fpa11.c | 2 +- linux-user/arm/nwfpe/fpa11_cpdo.c | 1 + linux-user/arm/nwfpe/fpa11_cpdt.c | 1 + linux-user/arm/nwfpe/fpa11_cprt.c | 1 + linux-user/arm/nwfpe/fpopcode.c | 1 + linux-user/arm/nwfpe/single_cpdo.c | 1 + linux-user/elfload.c | 10 +--------- linux-user/flatload.c | 5 +---- linux-user/linuxload.c | 8 +------- linux-user/m68k-sim.c | 9 +-------- linux-user/main.c | 7 +------ linux-user/mmap.c | 9 +-------- linux-user/signal.c | 7 +------ linux-user/strace.c | 4 +--- linux-user/syscall.c | 14 +------------- linux-user/uaccess.c | 3 +-- linux-user/uname.c | 2 +- linux-user/vm86.c | 7 +------ migration/block.c | 2 +- migration/exec.c | 2 +- migration/fd.c | 1 + migration/migration.c | 1 + migration/postcopy-ram.c | 4 +--- migration/qemu-file-buf.c | 1 + migration/qemu-file-stdio.c | 1 + migration/qemu-file-unix.c | 1 + migration/qemu-file.c | 1 + migration/ram.c | 2 +- migration/rdma.c | 4 +--- migration/savevm.c | 2 +- migration/tcp.c | 2 +- migration/unix.c | 2 +- migration/vmstate.c | 1 + migration/xbzrle.c | 1 + target-alpha/cpu.c | 1 + target-alpha/fpu_helper.c | 1 + target-alpha/gdbstub.c | 2 +- target-alpha/helper.c | 4 +--- target-alpha/int_helper.c | 1 + target-alpha/machine.c | 1 + target-alpha/mem_helper.c | 1 + target-alpha/sys_helper.c | 1 + target-alpha/translate.c | 1 + target-alpha/vax_helper.c | 1 + target-arm/arch_dump.c | 1 + target-cris/cpu.c | 1 + target-cris/gdbstub.c | 2 +- target-cris/helper.c | 1 + target-cris/machine.c | 1 + target-cris/op_helper.c | 1 + target-cris/translate.c | 1 + target-cris/translate_v10.c | 1 + target-i386/arch_dump.c | 1 + target-i386/arch_memory_mapping.c | 1 + target-i386/bpt_helper.c | 1 + target-i386/cc_helper.c | 1 + target-i386/excp_helper.c | 1 + target-i386/fpu_helper.c | 1 + target-i386/gdbstub.c | 2 +- target-i386/helper.c | 1 + target-i386/hyperv.c | 1 + target-i386/int_helper.c | 1 + target-i386/kvm-stub.c | 1 + target-i386/kvm.c | 2 +- target-i386/machine.c | 1 + target-i386/mem_helper.c | 1 + target-i386/misc_helper.c | 1 + target-i386/monitor.c | 1 + target-i386/seg_helper.c | 1 + target-i386/smm_helper.c | 1 + target-i386/svm_helper.c | 1 + target-i386/translate.c | 6 +----- target-lm32/cpu.c | 1 + target-lm32/gdbstub.c | 2 +- target-lm32/helper.c | 1 + target-lm32/lm32-semi.c | 5 +---- target-lm32/machine.c | 1 + target-lm32/op_helper.c | 2 +- target-lm32/translate.c | 1 + target-m68k/cpu.c | 1 + target-m68k/gdbstub.c | 2 +- target-m68k/helper.c | 1 + target-m68k/m68k-semi.c | 10 +--------- target-m68k/op_helper.c | 1 + target-m68k/translate.c | 1 + target-moxie/cpu.c | 1 + target-moxie/helper.c | 4 +--- target-moxie/machine.c | 1 + target-moxie/mmu.c | 5 +---- target-moxie/translate.c | 6 +----- target-openrisc/cpu.c | 1 + target-openrisc/exception.c | 1 + target-openrisc/exception_helper.c | 1 + target-openrisc/fpu_helper.c | 1 + target-openrisc/gdbstub.c | 2 +- target-openrisc/int_helper.c | 1 + target-openrisc/interrupt.c | 1 + target-openrisc/interrupt_helper.c | 1 + target-openrisc/machine.c | 1 + target-openrisc/mmu.c | 1 + target-openrisc/mmu_helper.c | 1 + target-openrisc/sys_helper.c | 1 + target-openrisc/translate.c | 2 +- target-ppc/arch_dump.c | 1 + target-ppc/cpu-models.c | 1 + target-ppc/dfp_helper.c | 1 + target-ppc/excp_helper.c | 1 + target-ppc/fpu_helper.c | 1 + target-ppc/gdbstub.c | 2 +- target-ppc/int_helper.c | 1 + target-ppc/kvm-stub.c | 1 + target-ppc/kvm.c | 2 +- target-ppc/machine.c | 1 + target-ppc/mem_helper.c | 1 + target-ppc/mfrom_table_gen.c | 3 +-- target-ppc/misc_helper.c | 1 + target-ppc/mmu-hash32.c | 1 + target-ppc/mmu-hash64.c | 1 + target-ppc/mmu_helper.c | 1 + target-ppc/monitor.c | 1 + target-ppc/timebase_helper.c | 1 + target-ppc/translate.c | 1 + target-ppc/translate_init.c | 4 +--- target-ppc/user_only_helper.c | 1 + target-s390x/arch_dump.c | 1 + target-s390x/cc_helper.c | 1 + target-s390x/cpu.c | 1 + target-s390x/fpu_helper.c | 1 + target-s390x/gdbstub.c | 2 +- target-s390x/helper.c | 1 + target-s390x/int_helper.c | 1 + target-s390x/interrupt.c | 1 + target-s390x/ioinst.c | 2 +- target-s390x/kvm.c | 2 +- target-s390x/machine.c | 1 + target-s390x/mem_helper.c | 1 + target-s390x/misc_helper.c | 2 +- target-s390x/mmu_helper.c | 1 + target-s390x/translate.c | 1 + target-sh4/cpu.c | 1 + target-sh4/gdbstub.c | 2 +- target-sh4/helper.c | 6 +----- target-sh4/monitor.c | 1 + target-sh4/op_helper.c | 2 +- target-sh4/translate.c | 1 + target-sparc/cc_helper.c | 1 + target-sparc/cpu.c | 1 + target-sparc/fop_helper.c | 1 + target-sparc/gdbstub.c | 2 +- target-sparc/helper.c | 1 + target-sparc/int32_helper.c | 1 + target-sparc/int64_helper.c | 1 + target-sparc/ldst_helper.c | 1 + target-sparc/machine.c | 1 + target-sparc/mmu_helper.c | 1 + target-sparc/monitor.c | 1 + target-sparc/translate.c | 6 +----- target-sparc/vis_helper.c | 1 + target-sparc/win_helper.c | 1 + target-tilegx/cpu.c | 1 + target-tilegx/helper.c | 1 + target-tilegx/simd_helper.c | 1 + target-tilegx/translate.c | 1 + target-tricore/cpu.c | 1 + target-tricore/helper.c | 6 +----- target-tricore/op_helper.c | 2 +- target-tricore/translate.c | 1 + target-unicore32/cpu.c | 1 + target-unicore32/helper.c | 1 + target-unicore32/op_helper.c | 1 + target-unicore32/softmmu.c | 1 + target-unicore32/translate.c | 6 +----- target-unicore32/ucf64_helper.c | 1 + target-xtensa/core-dc232b.c | 1 + target-xtensa/core-dc233c.c | 1 + target-xtensa/core-fsf.c | 1 + target-xtensa/cpu.c | 1 + target-xtensa/gdbstub.c | 2 +- target-xtensa/helper.c | 1 + target-xtensa/monitor.c | 1 + target-xtensa/op_helper.c | 1 + target-xtensa/translate.c | 2 +- target-xtensa/xtensa-semi.c | 5 +---- tcg/aarch64/tcg-target.c | 1 + tcg/arm/tcg-target.c | 1 + tcg/i386/tcg-target.c | 1 + tcg/mips/tcg-target.c | 2 +- tcg/optimize.c | 4 +--- tcg/ppc/tcg-target.c | 8 +------- tcg/s390/tcg-target.c | 1 + tcg/sparc/tcg-target.c | 1 + tcg/tcg-common.c | 1 + tcg/tcg-op.c | 1 + tcg/tcg.c | 2 +- tcg/tci/tcg-target.c | 1 + tests/ahci-test.c | 4 +--- tests/ide-test.c | 4 +--- tests/libqos/ahci.c | 1 + tests/usb-hcd-ehci-test.c | 4 +--- tests/usb-hcd-ohci-test.c | 3 +-- tests/usb-hcd-uhci-test.c | 3 +-- tests/usb-hcd-xhci-test.c | 3 +-- tests/virtio-9p-test.c | 4 +--- translate-all.c | 9 +-------- translate-common.c | 1 + xen-common-stub.c | 1 + xen-common.c | 1 + xen-hvm-stub.c | 1 + xen-hvm.c | 1 + xen-mapcache.c | 2 +- 786 files changed, 786 insertions(+), 339 deletions(-)
Signature · 1 line
1.9.1
PATCH 1/37 migration: Clean up includes
Clean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- migration/block.c | 2 +- migration/exec.c | 2 +- migration/fd.c | 1 + migration/migration.c | 1 + migration/postcopy-ram.c | 4 +--- migration/qemu-file-buf.c | 1 + migration/qemu-file-stdio.c | 1 + migration/qemu-file-unix.c | 1 + migration/qemu-file.c | 1 + migration/ram.c | 2 +- migration/rdma.c | 4 +--- migration/savevm.c | 2 +- migration/tcp.c | 2 +- migration/unix.c | 2 +- migration/vmstate.c | 1 + migration/xbzrle.c | 1 + 16 files changed, 16 insertions(+), 12 deletions(-)
migration/block.c +1 -1
@@ -13,6 +13,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "block/block.h" #include "qemu/error-report.h"
@@ -24,7 +25,6 @@#include "migration/migration.h" #include "sysemu/blockdev.h" #include "sysemu/block-backend.h" -#include <assert.h> #define BLOCK_SIZE (1 << 20)#define BDRV_SECTORS_PER_DIRTY_CHUNK (BLOCK_SIZE >> BDRV_SECTOR_BITS)
migration/exec.c +1 -1
@@ -15,13 +15,13 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/sockets.h" #include "qemu/main-loop.h" #include "migration/migration.h" #include "migration/qemu-file.h" #include "block/block.h" -#include <sys/types.h> #include <sys/wait.h> //#define DEBUG_MIGRATION_EXEC
migration/fd.c +1 -0
@@ -13,6 +13,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/main-loop.h" #include "qemu/sockets.h"
migration/migration.c +1 -0
@@ -13,6 +13,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/main-loop.h"
migration/postcopy-ram.c +1 -3
@@ -16,9 +16,8 @@* source to the destination before all the data has been copied. */ +#include "qemu/osdep.h" #include <glib.h> -#include <stdio.h> -#include <unistd.h> #include "qemu-common.h" #include "migration/migration.h"
@@ -57,7 +56,6 @@ struct PostcopyDiscardState {#include <sys/mman.h> #include <sys/ioctl.h> #include <sys/syscall.h> -#include <sys/types.h> #include <asm/types.h> /* for __u64 */ #endif
migration/qemu-file-buf.c +1 -0
@@ -25,6 +25,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/iov.h"
migration/qemu-file-stdio.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/coroutine.h" #include "migration/qemu-file.h"
migration/qemu-file-unix.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/iov.h"
migration/qemu-file.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include <zlib.h> #include "qemu-common.h" #include "qemu/error-report.h"
migration/ram.c +1 -1
@@ -25,7 +25,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#include <stdint.h> +#include "qemu/osdep.h" #include <zlib.h> #include "qapi-event.h" #include "qemu/bitops.h"
migration/rdma.c +1 -3
@@ -11,6 +11,7 @@* later. See the COPYING file in the top-level directory. * */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "migration/migration.h" #include "migration/qemu-file.h"
@@ -20,12 +21,9 @@#include "qemu/sockets.h" #include "qemu/bitmap.h" #include "qemu/coroutine.h" -#include <stdio.h> -#include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <arpa/inet.h> -#include <string.h> #include <rdma/rdma_cma.h> #include "trace.h"
migration/savevm.c +1 -1
@@ -26,7 +26,7 @@* THE SOFTWARE. */ -#include "config-host.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/boards.h" #include "hw/hw.h"
migration/tcp.c +1 -1
@@ -13,7 +13,7 @@* GNU GPL, version 2 or (at your option) any later version. */ -#include <string.h> +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h"
migration/unix.c +1 -1
@@ -13,7 +13,7 @@* GNU GPL, version 2 or (at your option) any later version. */ -#include <string.h> +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h"
migration/vmstate.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "qemu-common.h" #include "migration/migration.h" #include "migration/qemu-file.h"
migration/xbzrle.c +1 -0
@@ -10,6 +10,7 @@* See the COPYING file in the top-level directory. * */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "include/migration/migration.h"
Signature · 1 line
1.9.1
PATCH 2/37 crypto: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- crypto/aes.c | 1 + crypto/cipher-builtin.c | 1 + crypto/cipher-gcrypt.c | 1 + crypto/cipher-nettle.c | 1 + crypto/cipher.c | 1 + crypto/desrfb.c | 1 + crypto/hash.c | 1 + crypto/init.c | 1 + crypto/secret.c | 1 + crypto/tlscreds.c | 1 + crypto/tlscredsanon.c | 1 + crypto/tlscredsx509.c | 1 + crypto/tlssession.c | 1 + 13 files changed, 13 insertions(+)
crypto/aes.c +1 -0
@@ -27,6 +27,7 @@* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "crypto/aes.h"
crypto/cipher-builtin.c +1 -0
@@ -18,6 +18,7 @@* */ +#include "qemu/osdep.h" #include "crypto/aes.h" #include "crypto/desrfb.h"
crypto/cipher-gcrypt.c +1 -0
@@ -18,6 +18,7 @@* */ +#include "qemu/osdep.h" #include <gcrypt.h>
crypto/cipher-nettle.c +1 -0
@@ -18,6 +18,7 @@* */ +#include "qemu/osdep.h" #include <nettle/nettle-types.h> #include <nettle/aes.h> #include <nettle/des.h>
crypto/cipher.c +1 -0
@@ -18,6 +18,7 @@* */ +#include "qemu/osdep.h" #include "crypto/cipher.h"
crypto/desrfb.c +1 -0
@@ -26,6 +26,7 @@* (GEnie : OUTER; CIS : [71755,204]) Graven Imagery, 1992. */ +#include "qemu/osdep.h" #include "crypto/desrfb.h" static void scrunch (unsigned char *,unsigned long *);
crypto/hash.c +1 -0
@@ -18,6 +18,7 @@* */ +#include "qemu/osdep.h" #include "crypto/hash.h" #ifdef CONFIG_GNUTLS_HASH
crypto/init.c +1 -0
@@ -18,6 +18,7 @@* */ +#include "qemu/osdep.h" #include "crypto/init.h" #include "qemu/thread.h"
crypto/secret.c +1 -0
@@ -18,6 +18,7 @@* */ +#include "qemu/osdep.h" #include "crypto/secret.h" #include "crypto/cipher.h" #include "qom/object_interfaces.h"
crypto/tlscreds.c +1 -0
@@ -18,6 +18,7 @@* */ +#include "qemu/osdep.h" #include "crypto/tlscredspriv.h" #include "trace.h"
crypto/tlscredsanon.c +1 -0
@@ -18,6 +18,7 @@* */ +#include "qemu/osdep.h" #include "crypto/tlscredsanon.h" #include "crypto/tlscredspriv.h" #include "qom/object_interfaces.h"
crypto/tlscredsx509.c +1 -0
@@ -18,6 +18,7 @@* */ +#include "qemu/osdep.h" #include "crypto/tlscredsx509.h" #include "crypto/tlscredspriv.h" #include "crypto/secret.h"
crypto/tlssession.c +1 -0
@@ -18,6 +18,7 @@* */ +#include "qemu/osdep.h" #include "crypto/tlssession.h" #include "crypto/tlscredsanon.h" #include "crypto/tlscredsx509.h"
Signature · 1 line
1.9.1
PATCH 3/37 exec: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- cpu-exec-common.c | 2 +- cpu-exec.c | 2 +- cpus.c | 2 +- cputlb.c | 2 +- exec.c | 4 +--- translate-all.c | 9 +-------- translate-common.c | 1 + 7 files changed, 7 insertions(+), 15 deletions(-)
cpu-exec-common.c +1 -1
@@ -17,7 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "cpu.h" #include "sysemu/cpus.h" #include "exec/memory-internal.h"
cpu-exec.c +1 -1
@@ -16,7 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "cpu.h" #include "trace.h" #include "disas/disas.h"
cpus.c +1 -1
@@ -23,7 +23,7 @@*/ /* Needed early for CONFIG_BSD etc. */ -#include "config-host.h" +#include "qemu/osdep.h" #include "monitor/monitor.h" #include "qapi/qmp/qerror.h"
cputlb.c +1 -1
@@ -17,7 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" #include "exec/memory.h"
exec.c +1 -3
@@ -16,9 +16,8 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #ifndef _WIN32 -#include <sys/types.h> #include <sys/mman.h> #endif
@@ -30,7 +29,6 @@#include "hw/boards.h" #endif #include "hw/qdev.h" -#include "qemu/osdep.h" #include "sysemu/kvm.h" #include "sysemu/sysemu.h" #include "hw/xen/xen.h"
translate-all.c +1 -8
@@ -19,16 +19,10 @@#ifdef _WIN32#include <windows.h> #else -#include <sys/types.h> #include <sys/mman.h> #endif -#include <stdarg.h> -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <inttypes.h> +#include "qemu/osdep.h" -#include "config.h" #include "qemu-common.h" #define NO_CPU_IO_DEFS
@@ -43,7 +37,6 @@#if __FreeBSD_version >=700104 #define HAVE_KINFO_GETVMMAP #define sigqueue sigqueue_freebsd/* avoid redefinition */ -#include <sys/time.h> #include <sys/proc.h> #include <machine/profile.h> #define _KERNEL
translate-common.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qom/cpu.h"
Signature · 1 line
1.9.1
PATCH 4/37 lm32: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- disas/lm32.c | 2 +- hw/char/lm32_juart.c | 1 + hw/char/lm32_uart.c | 1 + hw/char/milkymist-uart.c | 1 + hw/display/milkymist-tmu2.c | 1 + hw/display/milkymist-vgafb.c | 1 + hw/input/milkymist-softusb.c | 1 + hw/intc/lm32_pic.c | 2 +- hw/lm32/lm32_boards.c | 1 + hw/lm32/milkymist.c | 1 + hw/misc/milkymist-hpdmc.c | 1 + hw/misc/milkymist-pfpu.c | 1 + hw/net/milkymist-minimac2.c | 1 + hw/sd/milkymist-memcard.c | 1 + hw/timer/lm32_timer.c | 1 + hw/timer/milkymist-sysctl.c | 1 + target-lm32/cpu.c | 1 + target-lm32/gdbstub.c | 2 +- target-lm32/helper.c | 1 + target-lm32/lm32-semi.c | 5 +---- target-lm32/machine.c | 1 + target-lm32/op_helper.c | 2 +- target-lm32/translate.c | 1 + 23 files changed, 23 insertions(+), 8 deletions(-)
disas/lm32.c +1 -1
@@ -18,7 +18,7 @@* */ -#include <stdio.h> +#include "qemu/osdep.h" #include "disas/bfd.h" typedef enum {
hw/char/lm32_juart.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h"
hw/char/lm32_uart.c +1 -0
@@ -22,6 +22,7 @@*/ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h"
hw/char/milkymist-uart.c +1 -0
@@ -21,6 +21,7 @@* http://www.milkymist.org/socdoc/uart.pdf */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h"
hw/display/milkymist-tmu2.c +1 -0
@@ -24,6 +24,7 @@* */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h"
hw/display/milkymist-vgafb.c +1 -0
@@ -22,6 +22,7 @@* http://www.milkymist.org/socdoc/vgafb.pdf */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h"
hw/input/milkymist-softusb.c +1 -0
@@ -21,6 +21,7 @@* not available yet */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h"
hw/intc/lm32_pic.c +1 -1
@@ -17,7 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include <assert.h> +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h"
hw/lm32/lm32_boards.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "hw/block/flash.h"
hw/lm32/milkymist.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "hw/block/flash.h"
hw/misc/milkymist-hpdmc.c +1 -0
@@ -21,6 +21,7 @@* http://www.milkymist.org/socdoc/hpdmc.pdf */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h"
hw/misc/milkymist-pfpu.c +1 -0
@@ -22,6 +22,7 @@* */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h"
hw/net/milkymist-minimac2.c +1 -0
@@ -22,6 +22,7 @@* */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h"
hw/sd/milkymist-memcard.c +1 -0
@@ -21,6 +21,7 @@* http://www.milkymist.org/socdoc/memcard.pdf */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "sysemu/sysemu.h"
hw/timer/lm32_timer.c +1 -0
@@ -21,6 +21,7 @@* http://www.latticesemi.com/documents/mico32timer.pdf */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h"
hw/timer/milkymist-sysctl.c +1 -0
@@ -21,6 +21,7 @@* http://www.milkymist.org/socdoc/sysctl.pdf */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "sysemu/sysemu.h"
target-lm32/cpu.c +1 -0
@@ -18,6 +18,7 @@* <http://www.gnu.org/licenses/lgpl-2.1.html> */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h"
target-lm32/gdbstub.c +1 -1
@@ -17,7 +17,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/gdbstub.h" #include "hw/lm32/lm32_pic.h"
target-lm32/helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu/host-utils.h" #include "sysemu/sysemu.h"
target-lm32/lm32-semi.c +1 -4
@@ -10,10 +10,7 @@* See the COPYING file in the top-level directory. */ -#include <errno.h> -#include <unistd.h> -#include <string.h> -#include <stddef.h> +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/log.h"
target-lm32/machine.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/boards.h"
target-lm32/op_helper.c +1 -1
@@ -1,4 +1,4 @@ -#include <assert.h> +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h"
target-lm32/translate.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" #include "exec/helper-proto.h"
Signature · 1 line
1.9.1
PATCH 5/37 ppc: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- disas/ppc.c | 1 + hw/char/spapr_vty.c | 1 + hw/intc/xics.c | 1 + hw/intc/xics_kvm.c | 1 + hw/isa/pc87312.c | 1 + hw/misc/macio/cuda.c | 1 + hw/misc/macio/mac_dbdma.c | 1 + hw/misc/macio/macio.c | 1 + hw/net/spapr_llan.c | 1 + hw/nvram/spapr_nvram.c | 1 + hw/pci-bridge/dec.c | 1 + hw/pci-host/grackle.c | 1 + hw/pci-host/prep.c | 1 + hw/pci-host/uninorth.c | 1 + hw/ppc/e500.c | 2 +- hw/ppc/e500plat.c | 2 +- hw/ppc/mac_newworld.c | 1 + hw/ppc/mac_oldworld.c | 1 + hw/ppc/mpc8544_guts.c | 1 + hw/ppc/mpc8544ds.c | 2 +- hw/ppc/ppc.c | 1 + hw/ppc/ppc405_boards.c | 1 + hw/ppc/ppc405_uc.c | 1 + hw/ppc/ppc440_bamboo.c | 2 +- hw/ppc/ppc4xx_devs.c | 1 + hw/ppc/ppc4xx_pci.c | 1 + hw/ppc/ppc_booke.c | 1 + hw/ppc/ppce500_spin.c | 1 + hw/ppc/prep.c | 1 + hw/ppc/spapr.c | 1 + hw/ppc/spapr_drc.c | 1 + hw/ppc/spapr_events.c | 1 + hw/ppc/spapr_hcall.c | 1 + hw/ppc/spapr_iommu.c | 1 + hw/ppc/spapr_pci.c | 1 + hw/ppc/spapr_pci_vfio.c | 1 + hw/ppc/spapr_rng.c | 1 + hw/ppc/spapr_rtas.c | 1 + hw/ppc/spapr_rtc.c | 1 + hw/ppc/spapr_vio.c | 1 + hw/ppc/virtex_ml507.c | 1 + hw/scsi/spapr_vscsi.c | 1 + target-ppc/arch_dump.c | 1 + target-ppc/cpu-models.c | 1 + target-ppc/dfp_helper.c | 1 + target-ppc/excp_helper.c | 1 + target-ppc/fpu_helper.c | 1 + target-ppc/gdbstub.c | 2 +- target-ppc/int_helper.c | 1 + target-ppc/kvm-stub.c | 1 + target-ppc/kvm.c | 2 +- target-ppc/machine.c | 1 + target-ppc/mem_helper.c | 1 + target-ppc/mfrom_table_gen.c | 3 +-- target-ppc/misc_helper.c | 1 + target-ppc/mmu-hash32.c | 1 + target-ppc/mmu-hash64.c | 1 + target-ppc/mmu_helper.c | 1 + target-ppc/monitor.c | 1 + target-ppc/timebase_helper.c | 1 + target-ppc/translate.c | 1 + target-ppc/translate_init.c | 4 +--- target-ppc/user_only_helper.c | 1 + 63 files changed, 63 insertions(+), 11 deletions(-)
disas/ppc.c +1 -0
@@ -18,6 +18,7 @@ the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this file; see the file COPYING. If not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "disas/bfd.h" #define BFD_DEFAULT_TARGET_SIZE 64
hw/char/spapr_vty.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/qdev.h" #include "sysemu/char.h" #include "hw/ppc/spapr.h"
hw/intc/xics.c +1 -0
@@ -25,6 +25,7 @@* */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "trace.h" #include "qemu/timer.h"
hw/intc/xics_kvm.c +1 -0
@@ -25,6 +25,7 @@* */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "trace.h" #include "hw/ppc/spapr.h"
hw/isa/pc87312.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/isa/pc87312.h" #include "qemu/error-report.h" #include "sysemu/block-backend.h"
hw/misc/macio/cuda.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/mac.h" #include "hw/input/adb.h"
hw/misc/macio/mac_dbdma.c +1 -0
@@ -36,6 +36,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/isa/isa.h" #include "hw/ppc/mac_dbdma.h"
hw/misc/macio/macio.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/mac.h" #include "hw/pci/pci.h"
hw/net/spapr_llan.c +1 -0
@@ -24,6 +24,7 @@* THE SOFTWARE. * */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "net/net.h" #include "hw/qdev.h"
hw/nvram/spapr_nvram.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include <libfdt.h> #include "sysemu/block-backend.h"
hw/pci-bridge/dec.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "dec.h" #include "hw/sysbus.h" #include "hw/pci/pci.h"
hw/pci-host/grackle.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/pci/pci_host.h" #include "hw/ppc/mac.h" #include "hw/pci/pci.h"
hw/pci-host/prep.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "hw/pci/pci_bus.h"
hw/pci-host/uninorth.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/mac.h" #include "hw/pci/pci.h"
hw/ppc/e500.c +1 -1
@@ -14,7 +14,7 @@* (at your option) any later version. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "e500.h" #include "e500-ccsr.h"
hw/ppc/e500plat.c +1 -1
@@ -9,7 +9,7 @@* (at your option) any later version. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "e500.h" #include "hw/boards.h"
hw/ppc/mac_newworld.c +1 -0
@@ -46,6 +46,7 @@* 0001:05:0c.0 IDE interface [0101]: Broadcom K2 SATA [1166:0240] * */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/ppc.h" #include "hw/ppc/mac.h"
hw/ppc/mac_oldworld.c +1 -0
@@ -23,6 +23,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/ppc.h" #include "mac.h"
hw/ppc/mpc8544_guts.c +1 -0
@@ -17,6 +17,7 @@* */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "sysemu/sysemu.h" #include "hw/sysbus.h"
hw/ppc/mpc8544ds.c +1 -1
@@ -9,7 +9,7 @@* (at your option) any later version. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "e500.h" #include "hw/boards.h"
hw/ppc/ppc.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/ppc.h" #include "hw/ppc/ppc_e500.h"
hw/ppc/ppc405_boards.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/ppc.h" #include "ppc405.h"
hw/ppc/ppc405_uc.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/ppc.h" #include "hw/boards.h"
hw/ppc/ppc440_bamboo.c +1 -1
@@ -11,7 +11,7 @@* */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "net/net.h" #include "hw/hw.h"
hw/ppc/ppc4xx_devs.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/ppc.h" #include "hw/ppc/ppc4xx.h"
hw/ppc/ppc4xx_pci.c +1 -0
@@ -19,6 +19,7 @@/* This file implements emulation of the 32-bit PCI controller found in some * 4xx SoCs, such as the 440EP. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/ppc.h" #include "hw/ppc/ppc4xx.h"
hw/ppc/ppc_booke.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/ppc.h" #include "qemu/timer.h"
hw/ppc/ppce500_spin.c +1 -0
@@ -27,6 +27,7 @@* */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "sysemu/sysemu.h" #include "hw/sysbus.h"
hw/ppc/prep.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/timer/m48t59.h" #include "hw/i386/pc.h"
hw/ppc/spapr.c +1 -0
@@ -24,6 +24,7 @@* THE SOFTWARE. * */ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "sysemu/numa.h" #include "hw/hw.h"
hw/ppc/spapr_drc.c +1 -0
@@ -10,6 +10,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/ppc/spapr_drc.h" #include "qom/object.h" #include "hw/qdev.h"
hw/ppc/spapr_events.c +1 -0
@@ -24,6 +24,7 @@* THE SOFTWARE. * */ +#include "qemu/osdep.h" #include "cpu.h" #include "sysemu/sysemu.h" #include "sysemu/char.h"
hw/ppc/spapr_hcall.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "cpu.h" #include "helper_regs.h"
hw/ppc/spapr_iommu.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "sysemu/kvm.h" #include "hw/qdev.h"
hw/ppc/spapr_pci.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "hw/pci/pci.h"
hw/ppc/spapr_pci_vfio.c +1 -0
@@ -17,6 +17,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/ppc/spapr.h" #include "hw/pci-host/spapr.h" #include "hw/pci/msix.h"
hw/ppc/spapr_rng.c +1 -0
@@ -17,6 +17,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu/error-report.h" #include "sysemu/sysemu.h" #include "sysemu/device_tree.h"
hw/ppc/spapr_rtas.c +1 -0
@@ -24,6 +24,7 @@* THE SOFTWARE. * */ +#include "qemu/osdep.h" #include "cpu.h" #include "sysemu/sysemu.h" #include "sysemu/char.h"
hw/ppc/spapr_rtc.c +1 -0
@@ -25,6 +25,7 @@* THE SOFTWARE. * */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu/timer.h" #include "sysemu/sysemu.h"
hw/ppc/spapr_vio.c +1 -0
@@ -19,6 +19,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "sysemu/sysemu.h" #include "hw/boards.h"
hw/ppc/virtex_ml507.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "hw/char/serial.h"
hw/scsi/spapr_vscsi.c +1 -0
@@ -31,6 +31,7 @@* - Add indirect descriptors support * - Maybe do autosense (PAPR seems to mandate it, linux doesn't care) */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/scsi/scsi.h" #include "block/scsi.h"
target-ppc/arch_dump.c +1 -0
@@ -12,6 +12,7 @@* */ +#include "qemu/osdep.h" #include "cpu.h" #include "elf.h" #include "exec/cpu-all.h"
target-ppc/cpu-models.c +1 -0
@@ -24,6 +24,7 @@* inside "#if defined(TODO) ... #endif" statements to make tests easier. */ +#include "qemu/osdep.h" #include "cpu.h" #include "cpu-models.h"
target-ppc/dfp_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h"
target-ppc/excp_helper.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h"
target-ppc/fpu_helper.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h"
target-ppc/gdbstub.c +1 -1
@@ -17,7 +17,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/gdbstub.h"
target-ppc/int_helper.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h"
target-ppc/kvm-stub.c +1 -0
@@ -9,6 +9,7 @@* See the COPYING file in the top-level directory. * */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/ppc/openpic.h"
target-ppc/kvm.c +1 -1
@@ -14,8 +14,8 @@* */ +#include "qemu/osdep.h" #include <dirent.h> -#include <sys/types.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/vfs.h>
target-ppc/machine.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/boards.h" #include "sysemu/kvm.h"
target-ppc/mem_helper.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h"
target-ppc/mfrom_table_gen.c +1 -2
@@ -1,6 +1,5 @@#define _GNU_SOURCE -#include <stdint.h> -#include <stdio.h> +#include "qemu/osdep.h" #include <math.h> int main (void )
target-ppc/misc_helper.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h"
target-ppc/mmu-hash32.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "sysemu/kvm.h"
target-ppc/mmu-hash64.c +1 -0
@@ -17,6 +17,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "sysemu/kvm.h"
target-ppc/mmu_helper.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "sysemu/kvm.h"
target-ppc/monitor.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "cpu.h" #include "monitor/monitor.h" #include "monitor/hmp-target.h"
target-ppc/timebase_helper.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h"
target-ppc/translate.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" #include "tcg-op.h"
target-ppc/translate_init.c +1 -3
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "disas/bfd.h" #include "exec/gdbstub.h" #include <sysemu/kvm.h>
@@ -8471,8 +8472,6 @@ static void dump_ppc_sprs (CPUPPCState *env)#endif /*****************************************************************************/ -#include <stdlib.h> -#include <string.h> /* Opcode types */ enum {
@@ -9303,7 +9302,6 @@ static gint ppc_cpu_compare_class_name(gconstpointer a, gconstpointer b)return -1 ; } -#include <ctype.h> static ObjectClass *ppc_cpu_class_by_name (const char *name);
target-ppc/user_only_helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" int ppc_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int rw,
Signature · 1 line
1.9.1
PATCH 6/37 sparc: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/char/grlib_apbuart.c | 1 + hw/intc/grlib_irqmp.c | 1 + hw/sparc/leon3.c | 1 + hw/sparc/sun4m.c | 1 + hw/sparc64/sun4u.c | 1 + hw/timer/grlib_gptimer.c | 1 + target-sparc/cc_helper.c | 1 + target-sparc/cpu.c | 1 + target-sparc/fop_helper.c | 1 + target-sparc/gdbstub.c | 2 +- target-sparc/helper.c | 1 + target-sparc/int32_helper.c | 1 + target-sparc/int64_helper.c | 1 + target-sparc/ldst_helper.c | 1 + target-sparc/machine.c | 1 + target-sparc/mmu_helper.c | 1 + target-sparc/monitor.c | 1 + target-sparc/translate.c | 6 +----- target-sparc/vis_helper.c | 1 + target-sparc/win_helper.c | 1 + 20 files changed, 20 insertions(+), 6 deletions(-)
hw/char/grlib_apbuart.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "sysemu/char.h"
hw/intc/grlib_irqmp.c +1 -0
@@ -24,6 +24,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "cpu.h"
hw/sparc/leon3.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/timer.h" #include "hw/ptimer.h"
hw/sparc/sun4m.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu/error-report.h" #include "qemu/timer.h"
hw/sparc64/sun4u.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "hw/pci-host/apb.h"
hw/timer/grlib_gptimer.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu/timer.h" #include "hw/ptimer.h"
target-sparc/cc_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h"
target-sparc/cpu.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu/error-report.h"
target-sparc/fop_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h"
target-sparc/gdbstub.c +1 -1
@@ -17,7 +17,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/gdbstub.h"
target-sparc/helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h"
target-sparc/int32_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "trace.h" #include "sysemu/sysemu.h"
target-sparc/int64_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "trace.h"
target-sparc/ldst_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h"
target-sparc/machine.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/boards.h" #include "qemu/timer.h"
target-sparc/mmu_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "trace.h" #include "exec/address-spaces.h"
target-sparc/monitor.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "cpu.h" #include "monitor/monitor.h" #include "monitor/hmp-target.h"
target-sparc/translate.c +1 -5
@@ -18,11 +18,7 @@License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdarg.h> -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <inttypes.h> +#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h"
target-sparc/vis_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h"
target-sparc/win_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "trace.h"
Signature · 1 line
1.9.1
PATCH 7/37 s390: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/char/sclpconsole-lm.c | 1 + hw/char/sclpconsole.c | 1 + hw/s390x/css.c | 1 + hw/s390x/event-facility.c | 1 + hw/s390x/ipl.c | 1 + hw/s390x/s390-pci-bus.c | 1 + hw/s390x/s390-pci-inst.c | 1 + hw/s390x/s390-skeys-kvm.c | 1 + hw/s390x/s390-skeys.c | 1 + hw/s390x/s390-virtio-ccw.c | 1 + hw/s390x/s390-virtio-hcall.c | 1 + hw/s390x/s390-virtio.c | 1 + hw/s390x/sclp.c | 1 + hw/s390x/sclpcpu.c | 1 + hw/s390x/sclpquiesce.c | 1 + hw/s390x/virtio-ccw.c | 1 + hw/watchdog/wdt_diag288.c | 1 + target-s390x/arch_dump.c | 1 + target-s390x/cc_helper.c | 1 + target-s390x/cpu.c | 1 + target-s390x/fpu_helper.c | 1 + target-s390x/gdbstub.c | 2 +- target-s390x/helper.c | 1 + target-s390x/int_helper.c | 1 + target-s390x/interrupt.c | 1 + target-s390x/ioinst.c | 2 +- target-s390x/kvm.c | 2 +- target-s390x/machine.c | 1 + target-s390x/mem_helper.c | 1 + target-s390x/misc_helper.c | 2 +- target-s390x/mmu_helper.c | 1 + target-s390x/translate.c | 1 + 32 files changed, 32 insertions(+), 4 deletions(-)
hw/char/sclpconsole-lm.c +1 -0
@@ -13,6 +13,7 @@* */ +#include "qemu/osdep.h" #include "hw/qdev.h" #include "qemu/thread.h" #include "qemu/error-report.h"
hw/char/sclpconsole.c +1 -0
@@ -12,6 +12,7 @@* */ +#include "qemu/osdep.h" #include <hw/qdev.h> #include "qemu/thread.h" #include "qemu/error-report.h"
hw/s390x/css.c +1 -0
@@ -9,6 +9,7 @@* directory. */ +#include "qemu/osdep.h" #include <hw/qdev.h> #include "qemu/bitops.h" #include "exec/address-spaces.h"
hw/s390x/event-facility.c +1 -0
@@ -15,6 +15,7 @@* */ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "hw/s390x/sclp.h"
hw/s390x/ipl.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "cpu.h" #include "elf.h"
hw/s390x/s390-pci-bus.c +1 -0
@@ -11,6 +11,7 @@* directory. */ +#include "qemu/osdep.h" #include "s390-pci-bus.h" #include <hw/pci/pci_bus.h> #include <hw/pci/msi.h>
hw/s390x/s390-pci-inst.c +1 -0
@@ -11,6 +11,7 @@* directory. */ +#include "qemu/osdep.h" #include "s390-pci-inst.h" #include "s390-pci-bus.h" #include <exec/memory-internal.h>
hw/s390x/s390-skeys-kvm.c +1 -0
@@ -9,6 +9,7 @@* directory. */ +#include "qemu/osdep.h" #include "hw/s390x/storage-keys.h" #include "sysemu/kvm.h" #include "qemu/error-report.h"
hw/s390x/s390-skeys.c +1 -0
@@ -9,6 +9,7 @@* directory. */ +#include "qemu/osdep.h" #include "hw/boards.h" #include "qmp-commands.h" #include "migration/qemu-file.h"
hw/s390x/s390-virtio-ccw.c +1 -0
@@ -9,6 +9,7 @@* directory. */ +#include "qemu/osdep.h" #include "hw/boards.h" #include "exec/address-spaces.h" #include "s390-virtio.h"
hw/s390x/s390-virtio-hcall.c +1 -0
@@ -9,6 +9,7 @@* directory. */ +#include "qemu/osdep.h" #include "cpu.h" #include "hw/s390x/s390-virtio.h"
hw/s390x/s390-virtio.c +1 -0
@@ -21,6 +21,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qapi/qmp/qerror.h" #include "qemu/error-report.h"
hw/s390x/sclp.c +1 -0
@@ -12,6 +12,7 @@* */ +#include "qemu/osdep.h" #include "cpu.h" #include "sysemu/kvm.h" #include "exec/memory.h"
hw/s390x/sclpcpu.c +1 -0
@@ -12,6 +12,7 @@* option) any later version. See the COPYING file in the top-level directory. * */ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "hw/s390x/sclp.h" #include "hw/s390x/event-facility.h"
hw/s390x/sclpquiesce.c +1 -0
@@ -11,6 +11,7 @@* option) any later version. See the COPYING file in the top-level directory. * */ +#include "qemu/osdep.h" #include <hw/qdev.h> #include "sysemu/sysemu.h" #include "hw/s390x/sclp.h"
hw/s390x/virtio-ccw.c +1 -0
@@ -10,6 +10,7 @@* directory. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h"
hw/watchdog/wdt_diag288.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "sysemu/watchdog.h" #include "hw/sysbus.h" #include "qemu/timer.h"
target-s390x/arch_dump.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "cpu.h" #include "elf.h" #include "exec/cpu-all.h"
target-s390x/cc_helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h"
target-s390x/cpu.c +1 -0
@@ -23,6 +23,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "qemu/timer.h"
target-s390x/fpu_helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h"
target-s390x/gdbstub.c +1 -1
@@ -17,7 +17,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/gdbstub.h" #include "qemu/bitops.h"
target-s390x/helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/gdbstub.h" #include "qemu/timer.h"
target-s390x/int_helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h"
target-s390x/interrupt.c +1 -0
@@ -7,6 +7,7 @@* option) any later version. See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "cpu.h" #include "sysemu/kvm.h"
target-s390x/ioinst.c +1 -1
@@ -9,7 +9,7 @@* directory. */ -#include <sys/types.h> +#include "qemu/osdep.h" #include "cpu.h" #include "ioinst.h"
target-s390x/kvm.c +1 -1
@@ -21,7 +21,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include <sys/types.h> +#include "qemu/osdep.h" #include <sys/ioctl.h> #include <sys/mman.h>
target-s390x/machine.c +1 -0
@@ -14,6 +14,7 @@* or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "cpu.h" #include "sysemu/kvm.h"
target-s390x/mem_helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h"
target-s390x/misc_helper.c +1 -1
@@ -18,11 +18,11 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/memory.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h" -#include <string.h> #include "sysemu/kvm.h" #include "qemu/timer.h" #include "exec/address-spaces.h"
target-s390x/mmu_helper.c +1 -0
@@ -15,6 +15,7 @@* GNU General Public License for more details. */ +#include "qemu/osdep.h" #include "qemu/error-report.h" #include "exec/address-spaces.h" #include "cpu.h"
target-s390x/translate.c +1 -0
@@ -28,6 +28,7 @@# define LOG_DISAS (...) do { } while (0)#endif +#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" #include "tcg-op.h"
Signature · 1 line
1.9.1
Re: [Qemu-devel] [PATCH 07/37] s390: Clean up includes
Quoted 6 lines · On Tue, 26 Jan 2016 18:17:00 +0000 Peter Maydell <[email protected]>…
Clean up includes so that
osdep.his included first and headers which it implies are not included manually.This commit was created with
scripts/clean-includes.Signed-off-by Peter Maydell <[email protected]>
BTW: Does/should checkpatch look for osdep.h for new files?
Quoted 34 lines
--- hw/char/sclpconsole-lm.c | 1 + hw/char/sclpconsole.c | 1 + hw/s390x/css.c | 1 + hw/s390x/event-facility.c | 1 + hw/s390x/ipl.c | 1 + hw/s390x/s390-pci-bus.c | 1 + hw/s390x/s390-pci-inst.c | 1 + hw/s390x/s390-skeys-kvm.c | 1 + hw/s390x/s390-skeys.c | 1 + hw/s390x/s390-virtio-ccw.c | 1 + hw/s390x/s390-virtio-hcall.c | 1 + hw/s390x/s390-virtio.c | 1 + hw/s390x/sclp.c | 1 + hw/s390x/sclpcpu.c | 1 + hw/s390x/sclpquiesce.c | 1 + hw/s390x/virtio-ccw.c | 1 + hw/watchdog/wdt_diag288.c | 1 + target-s390x/arch_dump.c | 1 + target-s390x/cc_helper.c | 1 + target-s390x/cpu.c | 1 + target-s390x/fpu_helper.c | 1 + target-s390x/gdbstub.c | 2 +- target-s390x/helper.c | 1 + target-s390x/int_helper.c | 1 + target-s390x/interrupt.c | 1 + target-s390x/ioinst.c | 2 +- target-s390x/kvm.c | 2 +- target-s390x/machine.c | 1 + target-s390x/mem_helper.c | 1 + target-s390x/misc_helper.c | 2 +- target-s390x/mmu_helper.c | 1 + target-s390x/translate.c | 1 + 32 files changed, 32 insertions(+), 4 deletions(-)
PATCH 8/37 unicore: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/dma/puv3_dma.c | 1 + hw/gpio/puv3_gpio.c | 1 + hw/intc/puv3_intc.c | 1 + hw/misc/puv3_pm.c | 1 + hw/timer/puv3_ost.c | 1 + hw/unicore32/puv3.c | 1 + target-unicore32/cpu.c | 1 + target-unicore32/helper.c | 1 + target-unicore32/op_helper.c | 1 + target-unicore32/softmmu.c | 1 + target-unicore32/translate.c | 6 +----- target-unicore32/ucf64_helper.c | 1 + 12 files changed, 12 insertions(+), 5 deletions(-)
hw/dma/puv3_dma.c +1 -0
@@ -8,6 +8,7 @@* published by the Free Software Foundation, or any later version. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h"
hw/gpio/puv3_gpio.c +1 -0
@@ -8,6 +8,7 @@* published by the Free Software Foundation, or any later version. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h"
hw/intc/puv3_intc.c +1 -0
@@ -8,6 +8,7 @@* published by the Free Software Foundation, or any later version. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #undef DEBUG_PUV3
hw/misc/puv3_pm.c +1 -0
@@ -8,6 +8,7 @@* published by the Free Software Foundation, or any later version. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h"
hw/timer/puv3_ost.c +1 -0
@@ -8,6 +8,7 @@* published by the Free Software Foundation, or any later version. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/ptimer.h" #include "qemu/main-loop.h"
hw/unicore32/puv3.c +1 -0
@@ -9,6 +9,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" #include "elf.h"
target-unicore32/cpu.c +1 -0
@@ -12,6 +12,7 @@* or (at your option) any later version. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "migration/vmstate.h"
target-unicore32/helper.c +1 -0
@@ -9,6 +9,7 @@* or (at your option) any later version. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/gdbstub.h" #include "exec/helper-proto.h"
target-unicore32/op_helper.c +1 -0
@@ -8,6 +8,7 @@* published by the Free Software Foundation, or (at your option) any * later version. See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h"
target-unicore32/softmmu.c +1 -0
@@ -12,6 +12,7 @@#error This file only exist under softmmu circumstance#endif +#include "qemu/osdep.h" #include <cpu.h> #undef DEBUG_UC32
target-unicore32/translate.c +1 -5
@@ -8,11 +8,7 @@* published by the Free Software Foundation, or (at your option) any * later version. See the COPYING file in the top-level directory. */ -#include <stdarg.h> -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <inttypes.h> +#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h"
target-unicore32/ucf64_helper.c +1 -0
@@ -8,6 +8,7 @@* published by the Free Software Foundation, or any later version. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h"
Signature · 1 line
1.9.1
PATCH 9/37 linux-user: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- linux-user/arm/nwfpe/double_cpdo.c | 1 + linux-user/arm/nwfpe/extended_cpdo.c | 1 + linux-user/arm/nwfpe/fpa11.c | 2 +- linux-user/arm/nwfpe/fpa11_cpdo.c | 1 + linux-user/arm/nwfpe/fpa11_cpdt.c | 1 + linux-user/arm/nwfpe/fpa11_cprt.c | 1 + linux-user/arm/nwfpe/fpopcode.c | 1 + linux-user/arm/nwfpe/single_cpdo.c | 1 + linux-user/elfload.c | 10 +--------- linux-user/flatload.c | 5 +---- linux-user/linuxload.c | 8 +------- linux-user/m68k-sim.c | 9 +-------- linux-user/main.c | 7 +------ linux-user/mmap.c | 9 +-------- linux-user/signal.c | 7 +------ linux-user/strace.c | 4 +--- linux-user/syscall.c | 14 +------------- linux-user/uaccess.c | 3 +-- linux-user/uname.c | 2 +- linux-user/vm86.c | 7 +------ 20 files changed, 20 insertions(+), 74 deletions(-)
linux-user/arm/nwfpe/double_cpdo.c +1 -0
@@ -18,6 +18,7 @@along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "fpa11.h" #include "fpu/softfloat.h" #include "fpopcode.h"
linux-user/arm/nwfpe/extended_cpdo.c +1 -0
@@ -18,6 +18,7 @@along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "fpa11.h" #include "fpu/softfloat.h" #include "fpopcode.h"
linux-user/arm/nwfpe/fpa11.c +1 -1
@@ -18,6 +18,7 @@along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "fpa11.h" #include "fpopcode.h"
@@ -27,7 +28,6 @@//#include <asm/system.h> -#include <stdio.h> FPA11 * qemufpa =NULL ;CPUARMState * user_registers;
linux-user/arm/nwfpe/fpa11_cpdo.c +1 -0
@@ -18,6 +18,7 @@along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "fpa11.h" #include "fpopcode.h"
linux-user/arm/nwfpe/fpa11_cpdt.c +1 -0
@@ -19,6 +19,7 @@along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "fpa11.h" #include "fpu/softfloat.h" #include "fpopcode.h"
linux-user/arm/nwfpe/fpa11_cprt.c +1 -0
@@ -19,6 +19,7 @@along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "fpa11.h" #include "fpu/softfloat.h" #include "fpopcode.h"
linux-user/arm/nwfpe/fpopcode.c +1 -0
@@ -18,6 +18,7 @@along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "fpa11.h" #include "fpu/softfloat.h" #include "fpopcode.h"
linux-user/arm/nwfpe/single_cpdo.c +1 -0
@@ -18,6 +18,7 @@along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "fpa11.h" #include "fpu/softfloat.h" #include "fpopcode.h"
linux-user/elfload.c +1 -9
@@ -1,17 +1,9 @@/* This is the Linux kernel elf-loading code, ported into user space */ -#include <sys/time.h> +#include "qemu/osdep.h" #include <sys/param.h> -#include <stdio.h> -#include <sys/types.h> -#include <fcntl.h> -#include <errno.h> -#include <unistd.h> #include <sys/mman.h> #include <sys/resource.h> -#include <stdlib.h> -#include <string.h> -#include <time.h> #include "qemu.h" #include "disas/disas.h"
linux-user/flatload.c +1 -4
@@ -33,11 +33,8 @@/****************************************************************************/ -#include <stdio.h> -#include <stdlib.h> -#include <errno.h> +#include "qemu/osdep.h" #include <sys/mman.h> -#include <unistd.h> #include "qemu.h" #include "flat.h"
linux-user/linuxload.c +1 -7
@@ -1,12 +1,6 @@/* Code for loading Linux executables. Mostly linux kernel code. */ -#include <sys/types.h> -#include <sys/stat.h> -#include <fcntl.h> -#include <errno.h> -#include <unistd.h> -#include <stdio.h> -#include <stdlib.h> +#include "qemu/osdep.h" #include "qemu.h"
linux-user/m68k-sim.c +1 -8
@@ -17,14 +17,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <sys/types.h> -#include <sys/stat.h> -#include <errno.h> -#include <fcntl.h> -#include <unistd.h> -#include <stdlib.h> -#include <stdio.h> -#include <time.h> +#include "qemu/osdep.h" #include "qemu.h"
linux-user/main.c +1 -6
@@ -16,12 +16,7 @@* You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdlib.h> -#include <stdio.h> -#include <stdarg.h> -#include <string.h> -#include <errno.h> -#include <unistd.h> +#include "qemu/osdep.h" #include <sys/mman.h> #include <sys/syscall.h> #include <sys/resource.h>
linux-user/mmap.c +1 -8
@@ -16,14 +16,7 @@* You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdlib.h> -#include <stdio.h> -#include <stdarg.h> -#include <string.h> -#include <unistd.h> -#include <errno.h> -#include <sys/types.h> -#include <sys/stat.h> +#include "qemu/osdep.h" #include <sys/mman.h> #include <linux/mman.h> #include <linux/unistd.h>
linux-user/signal.c +1 -6
@@ -16,12 +16,7 @@* You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <stdarg.h> -#include <unistd.h> -#include <errno.h> +#include "qemu/osdep.h" #include <sys/ucontext.h> #include <sys/resource.h>
linux-user/strace.c +1 -3
@@ -1,13 +1,11 @@ -#include <stdio.h> +#include "qemu/osdep.h" #include <sys/ipc.h> #include <sys/msg.h> #include <sys/sem.h> #include <sys/shm.h> #include <sys/select.h> -#include <sys/types.h> #include <sys/mount.h> #include <sys/mman.h> -#include <unistd.h> #include <sched.h> #include "qemu.h"
linux-user/syscall.c +1 -13
@@ -17,24 +17,13 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ #define _ATFILE_SOURCE -#include <stdlib.h> -#include <stdio.h> -#include <stdarg.h> -#include <string.h> +#include "qemu/osdep.h" #include <elf.h> #include <endian.h> -#include <errno.h> -#include <unistd.h> -#include <fcntl.h> -#include <time.h> -#include <limits.h> #include <grp.h> -#include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> #include <sys/wait.h> -#include <sys/time.h> -#include <sys/stat.h> #include <sys/mount.h> #include <sys/file.h> #include <sys/fsuid.h>
@@ -44,7 +33,6 @@#include <sys/mman.h> #include <sys/swap.h> #include <linux/capability.h> -#include <signal.h> #include <sched.h> #ifdef __ia64__ int __clone2(int (*fn)(void *), void *child_stack_base,
linux-user/uaccess.c +1 -2
@@ -1,6 +1,5 @@/* User memory access */ -#include <stdio.h> -#include <string.h> +#include "qemu/osdep.h" #include "qemu.h"
linux-user/uname.c +1 -1
@@ -17,7 +17,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdio.h> +#include "qemu/osdep.h" #include "qemu.h" //#include "qemu-common.h"
linux-user/vm86.c +1 -6
@@ -16,12 +16,7 @@* You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdlib.h> -#include <stdio.h> -#include <stdarg.h> -#include <string.h> -#include <errno.h> -#include <unistd.h> +#include "qemu/osdep.h" #include "qemu.h"
Signature · 1 line
1.9.1
PATCH 10/37 x86: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/acpi/acpi_interface.c | 1 + hw/acpi/aml-build.c | 6 +----- hw/acpi/bios-linker-loader.c | 1 + hw/acpi/core.c | 1 + hw/acpi/cpu_hotplug.c | 1 + hw/acpi/cpu_hotplug_acpi_table.c | 1 + hw/acpi/ich9.c | 1 + hw/acpi/memory_hotplug.c | 1 + hw/acpi/memory_hotplug_acpi_table.c | 2 +- hw/acpi/nvdimm.c | 1 + hw/acpi/pcihp.c | 1 + hw/acpi/piix4.c | 1 + hw/acpi/tco.c | 1 + hw/char/debugcon.c | 1 + hw/char/parallel.c | 1 + hw/char/serial-isa.c | 1 + hw/char/serial-pci.c | 1 + hw/char/serial.c | 1 + hw/dma/i8257.c | 1 + hw/i2c/pm_smbus.c | 1 + hw/i2c/smbus_ich9.c | 1 + hw/i386/acpi-build.c | 3 +-- hw/i386/intel_iommu.c | 1 + hw/i386/kvm/apic.c | 1 + hw/i386/kvm/clock.c | 1 + hw/i386/kvm/i8254.c | 1 + hw/i386/kvm/i8259.c | 1 + hw/i386/kvm/ioapic.c | 1 + hw/i386/kvm/pci-assign.c | 5 +---- hw/i386/kvmvapic.c | 1 + hw/i386/multiboot.c | 1 + hw/i386/pc.c | 1 + hw/i386/pc_piix.c | 1 + hw/i386/pc_q35.c | 1 + hw/i386/pc_sysfw.c | 1 + hw/i386/pci-assign-load-rom.c | 5 +---- hw/i386/xen/xen_apic.c | 1 + hw/i386/xen/xen_platform.c | 1 + hw/i386/xen/xen_pvdevice.c | 1 + hw/intc/apic.c | 1 + hw/intc/apic_common.c | 1 + hw/intc/ioapic.c | 1 + hw/intc/ioapic_common.c | 1 + hw/isa/lpc_ich9.c | 1 + hw/isa/piix4.c | 1 + hw/misc/debugexit.c | 1 + hw/misc/pc-testdev.c | 2 +- hw/misc/sga.c | 1 + hw/pci-host/pam.c | 1 + hw/pci-host/piix.c | 1 + hw/pci-host/q35.c | 1 + hw/timer/hpet.c | 1 + hw/timer/i8254.c | 1 + hw/timer/i8254_common.c | 1 + hw/timer/mc146818rtc.c | 1 + target-i386/arch_dump.c | 1 + target-i386/arch_memory_mapping.c | 1 + target-i386/bpt_helper.c | 1 + target-i386/cc_helper.c | 1 + target-i386/excp_helper.c | 1 + target-i386/fpu_helper.c | 1 + target-i386/gdbstub.c | 2 +- target-i386/helper.c | 1 + target-i386/hyperv.c | 1 + target-i386/int_helper.c | 1 + target-i386/kvm-stub.c | 1 + target-i386/kvm.c | 2 +- target-i386/machine.c | 1 + target-i386/mem_helper.c | 1 + target-i386/misc_helper.c | 1 + target-i386/monitor.c | 1 + target-i386/seg_helper.c | 1 + target-i386/smm_helper.c | 1 + target-i386/svm_helper.c | 1 + target-i386/translate.c | 6 +----- 75 files changed, 75 insertions(+), 24 deletions(-)
hw/acpi/acpi_interface.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/acpi/acpi_dev_interface.h" #include "qemu/module.h"
hw/acpi/aml-build.c +1 -5
@@ -19,12 +19,8 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include <glib/gprintf.h> -#include <stdio.h> -#include <stdarg.h> -#include <assert.h> -#include <stdbool.h> -#include <string.h> #include "hw/acpi/aml-build.h" #include "qemu/bswap.h" #include "qemu/bitops.h"
hw/acpi/bios-linker-loader.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/acpi/bios-linker-loader.h" #include "hw/nvram/fw_cfg.h"
hw/acpi/core.c +1 -0
@@ -18,6 +18,7 @@* Contributions after 2012-01-13 are licensed under the terms of the * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "hw/hw.h" #include "hw/i386/pc.h"
hw/acpi/cpu_hotplug.c +1 -0
@@ -9,6 +9,7 @@* This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/acpi/cpu_hotplug.h"
hw/acpi/cpu_hotplug_acpi_table.c +1 -0
@@ -13,6 +13,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/acpi/cpu_hotplug.h" void build_cpu_hotplug_aml (Aml *ctx)
hw/acpi/ich9.c +1 -0
@@ -23,6 +23,7 @@* Contributions after 2012-01-13 are licensed under the terms of the * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qapi/visitor.h" #include "hw/i386/pc.h"
hw/acpi/memory_hotplug.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/acpi/memory_hotplug.h" #include "hw/acpi/pc-hotplug.h" #include "hw/mem/pc-dimm.h"
hw/acpi/memory_hotplug_acpi_table.c +1 -1
@@ -9,7 +9,7 @@* See the COPYING file in the top-level directory. */ -#include <stdbool.h> +#include "qemu/osdep.h" #include "hw/acpi/memory_hotplug.h" #include "include/hw/acpi/pc-hotplug.h" #include "hw/boards.h"
hw/acpi/nvdimm.c +1 -0
@@ -26,6 +26,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/> */ +#include "qemu/osdep.h" #include "hw/acpi/acpi.h" #include "hw/acpi/aml-build.h" #include "hw/mem/nvdimm.h"
hw/acpi/pcihp.c +1 -0
@@ -24,6 +24,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/acpi/pcihp.h" #include "hw/hw.h"
hw/acpi/piix4.c +1 -0
@@ -18,6 +18,7 @@* Contributions after 2012-01-13 are licensed under the terms of the * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/isa/apm.h"
hw/acpi/tco.c +1 -0
@@ -6,6 +6,7 @@* This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "sysemu/watchdog.h" #include "hw/i386/ich9.h"
hw/char/debugcon.c +1 -0
@@ -24,6 +24,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "sysemu/char.h" #include "hw/isa/isa.h"
hw/char/parallel.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "sysemu/char.h" #include "hw/isa/isa.h"
hw/char/serial-isa.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/char/serial.h" #include "hw/isa/isa.h"
hw/char/serial-pci.c +1 -0
@@ -25,6 +25,7 @@/* see docs/specs/pci-serial.txt */ +#include "qemu/osdep.h" #include "hw/char/serial.h" #include "hw/pci/pci.h"
hw/char/serial.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/char/serial.h" #include "sysemu/char.h" #include "qemu/timer.h"
hw/dma/i8257.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/isa/isa.h" #include "qemu/main-loop.h"
hw/i2c/pm_smbus.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see * <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/i2c/pm_smbus.h"
hw/i2c/smbus_ich9.c +1 -0
@@ -24,6 +24,7 @@* GNU GPL, version 2 or (at your option) any later version. * */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/i2c/pm_smbus.h"
hw/i386/acpi-build.c +1 -2
@@ -20,12 +20,11 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "acpi-build.h" -#include <stddef.h> #include <glib.h> #include "qemu-common.h" #include "qemu/bitmap.h" -#include "qemu/osdep.h" #include "qemu/error-report.h" #include "hw/pci/pci.h" #include "qom/cpu.h"
hw/i386/intel_iommu.c +1 -0
@@ -19,6 +19,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "exec/address-spaces.h" #include "intel_iommu_internal.h"
hw/i386/kvm/apic.c +1 -0
@@ -9,6 +9,7 @@* This work is licensed under the terms of the GNU GPL version 2. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/i386/apic_internal.h" #include "hw/pci/msi.h" #include "sysemu/kvm.h"
hw/i386/kvm/clock.c +1 -0
@@ -13,6 +13,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/host-utils.h" #include "sysemu/sysemu.h"
hw/i386/kvm/i8254.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu/timer.h" #include "sysemu/sysemu.h" #include "hw/timer/i8254.h"
hw/i386/kvm/i8259.c +1 -0
@@ -9,6 +9,7 @@* This work is licensed under the terms of the GNU GPL version 2. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/isa/i8259_internal.h" #include "hw/i386/apic_internal.h" #include "sysemu/kvm.h"
hw/i386/kvm/ioapic.c +1 -0
@@ -10,6 +10,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "monitor/monitor.h" #include "hw/i386/pc.h" #include "hw/i386/ioapic_internal.h"
hw/i386/kvm/pci-assign.c +1 -4
@@ -20,11 +20,8 @@* Copyright (C) 2008, Red Hat, Amit Shah ([email protected]) * Copyright (C) 2008, IBM, Muli Ben-Yehuda ([email protected]) */ -#include <stdio.h> -#include <unistd.h> +#include "qemu/osdep.h" #include <sys/mman.h> -#include <sys/types.h> -#include <sys/stat.h> #include "hw/hw.h" #include "hw/i386/pc.h" #include "qemu/error-report.h"
hw/i386/kvmvapic.c +1 -0
@@ -8,6 +8,7 @@* (at your option) any later version. See the COPYING file in the * top-level directory. */ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "sysemu/cpus.h" #include "sysemu/kvm.h"
hw/i386/multiboot.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/nvram/fw_cfg.h" #include "multiboot.h"
hw/i386/pc.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/char/serial.h"
hw/i386/pc_piix.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include <glib.h> #include "hw/hw.h"
hw/i386/pc_q35.c +1 -0
@@ -27,6 +27,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/loader.h" #include "sysemu/arch_init.h"
hw/i386/pc_sysfw.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "sysemu/block-backend.h" #include "qemu/error-report.h" #include "hw/sysbus.h"
hw/i386/pci-assign-load-rom.c +1 -4
@@ -1,10 +1,7 @@/* * This is splited from hw/i386/kvm/pci-assign.c */ -#include <stdio.h> -#include <unistd.h> -#include <sys/types.h> -#include <sys/stat.h> +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "qemu/error-report.h"
hw/i386/xen/xen_apic.c +1 -0
@@ -9,6 +9,7 @@* This work is licensed under the terms of the GNU GPL version 2 or * later. See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/i386/apic_internal.h" #include "hw/pci/msi.h" #include "hw/xen/xen.h"
hw/i386/xen/xen_platform.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/ide.h"
hw/i386/xen/xen_pvdevice.c +1 -0
@@ -29,6 +29,7 @@* SUCH DAMAGE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "trace.h"
hw/intc/apic.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/> */ +#include "qemu/osdep.h" #include "qemu/thread.h" #include "hw/i386/apic_internal.h" #include "hw/i386/apic.h"
hw/intc/apic_common.c +1 -0
@@ -17,6 +17,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/> */ +#include "qemu/osdep.h" #include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "trace.h"
hw/intc/ioapic.c +1 -0
@@ -20,6 +20,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "monitor/monitor.h" #include "hw/hw.h" #include "hw/i386/pc.h"
hw/intc/ioapic_common.c +1 -0
@@ -19,6 +19,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "monitor/monitor.h" #include "hw/i386/ioapic.h" #include "hw/i386/ioapic_internal.h"
hw/isa/lpc_ich9.c +1 -0
@@ -27,6 +27,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/hw.h" #include "qapi/visitor.h"
hw/isa/piix4.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/pci/pci.h"
hw/misc/debugexit.c +1 -0
@@ -7,6 +7,7 @@* (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/isa/isa.h"
hw/misc/pc-testdev.c +1 -1
@@ -35,7 +35,7 @@* git://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git */ -#include "config-host.h" +#include "qemu/osdep.h" #if defined(CONFIG_POSIX )#include <sys/mman.h> #endif
hw/misc/sga.c +1 -0
@@ -24,6 +24,7 @@* sgabios code originally available at code.google.com/p/sgabios * */ +#include "qemu/osdep.h" #include "hw/pci/pci.h" #include "hw/i386/pc.h" #include "hw/loader.h"
hw/pci-host/pam.c +1 -0
@@ -27,6 +27,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qom/object.h" #include "sysemu/sysemu.h" #include "hw/pci-host/pam.h"
hw/pci-host/piix.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/pci/pci.h"
hw/pci-host/q35.c +1 -0
@@ -27,6 +27,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci-host/q35.h" #include "qapi/visitor.h"
hw/timer/hpet.c +1 -0
@@ -24,6 +24,7 @@* This driver attempts to emulate an HPET device in software. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "ui/console.h"
hw/timer/i8254.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/isa/isa.h"
hw/timer/i8254_common.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/isa/isa.h"
hw/timer/mc146818rtc.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/timer.h" #include "sysemu/sysemu.h"
target-i386/arch_dump.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/cpu-all.h" #include "sysemu/dump.h"
target-i386/arch_memory_mapping.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/cpu-all.h" #include "sysemu/memory_mapping.h"
target-i386/bpt_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h"
target-i386/cc_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h"
target-i386/excp_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu/log.h" #include "sysemu/sysemu.h"
target-i386/fpu_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include <math.h> #include "cpu.h" #include "exec/helper-proto.h"
target-i386/gdbstub.c +1 -1
@@ -17,7 +17,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/gdbstub.h"
target-i386/helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "sysemu/kvm.h" #include "kvm_i386.h"
target-i386/hyperv.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "hyperv.h" #include "standard-headers/asm-x86/hyperv.h"
target-i386/int_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h"
target-i386/kvm-stub.c +1 -0
@@ -9,6 +9,7 @@* See the COPYING file in the top-level directory. * */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "kvm_i386.h"
target-i386/kvm.c +1 -1
@@ -12,7 +12,7 @@* */ -#include <sys/types.h> +#include "qemu/osdep.h" #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/utsname.h>
target-i386/machine.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/boards.h" #include "hw/i386/pc.h"
target-i386/mem_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h"
target-i386/misc_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h"
target-i386/monitor.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "cpu.h" #include "monitor/monitor.h" #include "monitor/hmp-target.h"
target-i386/seg_helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu/log.h" #include "exec/helper-proto.h"
target-i386/smm_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h"
target-i386/svm_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/cpu-all.h" #include "exec/helper-proto.h"
target-i386/translate.c +1 -5
@@ -16,11 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdarg.h> -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <inttypes.h> +#include "qemu/osdep.h" #include "qemu/host-utils.h" #include "cpu.h"
Signature · 1 line
1.9.1
PATCH 11/37 alpha: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- disas/alpha.c | 2 +- hw/alpha/dp264.c | 1 + hw/alpha/pci.c | 2 +- hw/alpha/typhoon.c | 1 + target-alpha/cpu.c | 1 + target-alpha/fpu_helper.c | 1 + target-alpha/gdbstub.c | 2 +- target-alpha/helper.c | 4 +--- target-alpha/int_helper.c | 1 + target-alpha/machine.c | 1 + target-alpha/mem_helper.c | 1 + target-alpha/sys_helper.c | 1 + target-alpha/translate.c | 1 + target-alpha/vax_helper.c | 1 + 14 files changed, 14 insertions(+), 6 deletions(-)
disas/alpha.c +1 -1
@@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License along with this file; see the file COPYING. If not, see <http://www.gnu.org/licenses/>. */ -#include <stdio.h> +#include "qemu/osdep.h" #include "disas/bfd.h" /* MAX is redefined below, so remove any previous definition. */
hw/alpha/dp264.c +1 -0
@@ -6,6 +6,7 @@* that we need to emulate as well. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "elf.h" #include "hw/loader.h"
hw/alpha/pci.c +1 -1
@@ -6,7 +6,7 @@* ??? Sparse memory access not implemented. */ -#include "config.h" +#include "qemu/osdep.h" #include "alpha_sys.h" #include "qemu/log.h" #include "sysemu/sysemu.h"
hw/alpha/typhoon.c +1 -0
@@ -6,6 +6,7 @@* This work is licensed under the GNU GPL license version 2 or later. */ +#include "qemu/osdep.h" #include "cpu.h" #include "hw/hw.h" #include "hw/devices.h"
target-alpha/cpu.c +1 -0
@@ -19,6 +19,7 @@* <http://www.gnu.org/licenses/lgpl-2.1.html> */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "migration/vmstate.h"
target-alpha/fpu_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h"
target-alpha/gdbstub.c +1 -1
@@ -17,7 +17,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/gdbstub.h"
target-alpha/helper.c +1 -3
@@ -17,9 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdint.h> -#include <stdlib.h> -#include <stdio.h> +#include "qemu/osdep.h" #include "cpu.h" #include "fpu/softfloat.h"
target-alpha/int_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h"
target-alpha/machine.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/boards.h"
target-alpha/mem_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h"
target-alpha/sys_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "sysemu/sysemu.h"
target-alpha/translate.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" #include "qemu/host-utils.h"
target-alpha/vax_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h"
Signature · 1 line
1.9.1
Re: [Qemu-devel] [PATCH 11/37] alpha: Clean up includes
Quoted 6 lines · Peter Maydell
Clean up includes so that
osdep.his included first and headers which it implies are not included manually.This commit was created with
scripts/clean-includes.Signed-off-by Peter Maydell<[email protected]>
Quoted 16 lines
--- disas/alpha.c | 2 +- hw/alpha/dp264.c | 1 + hw/alpha/pci.c | 2 +- hw/alpha/typhoon.c | 1 + target-alpha/cpu.c | 1 + target-alpha/fpu_helper.c | 1 + target-alpha/gdbstub.c | 2 +- target-alpha/helper.c | 4 +--- target-alpha/int_helper.c | 1 + target-alpha/machine.c | 1 + target-alpha/mem_helper.c | 1 + target-alpha/sys_helper.c | 1 + target-alpha/translate.c | 1 + target-alpha/vax_helper.c | 1 + 14 files changed, 14 insertions(+), 6 deletions(-)
r~
PATCH 12/37 arm: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- disas/arm.c | 1 + hw/char/cadence_uart.c | 1 + hw/char/digic-uart.c | 1 + hw/char/exynos4210_uart.c | 1 + hw/char/imx_serial.c | 1 + hw/char/pl011.c | 1 + hw/display/exynos4210_fimd.c | 1 + hw/display/pl110.c | 1 + hw/display/pxa2xx_lcd.c | 1 + hw/dma/pl080.c | 1 + hw/dma/pl330.c | 1 + hw/dma/pxa2xx_dma.c | 1 + hw/gpio/imx_gpio.c | 1 + hw/gpio/pl061.c | 1 + hw/i2c/exynos4210_i2c.c | 1 + hw/i2c/imx_i2c.c | 1 + hw/i2c/versatile_i2c.c | 1 + hw/input/pl050.c | 1 + hw/input/pxa2xx_keypad.c | 1 + hw/input/stellaris_input.c | 1 + hw/intc/allwinner-a10-pic.c | 1 + hw/intc/arm_gic.c | 1 + hw/intc/arm_gic_common.c | 1 + hw/intc/arm_gic_kvm.c | 1 + hw/intc/arm_gicv2m.c | 1 + hw/intc/arm_gicv3_common.c | 1 + hw/intc/arm_gicv3_kvm.c | 1 + hw/intc/armv7m_nvic.c | 1 + hw/intc/exynos4210_combiner.c | 1 + hw/intc/exynos4210_gic.c | 1 + hw/intc/imx_avic.c | 1 + hw/intc/pl190.c | 1 + hw/intc/realview_gic.c | 1 + hw/misc/a9scu.c | 1 + hw/misc/arm11scu.c | 1 + hw/misc/exynos4210_pmu.c | 1 + hw/misc/imx25_ccm.c | 1 + hw/misc/imx31_ccm.c | 1 + hw/misc/imx_ccm.c | 1 + hw/misc/zynq_slcr.c | 1 + hw/net/allwinner_emac.c | 1 + hw/net/cadence_gem.c | 1 + hw/net/imx_fec.c | 1 + hw/net/stellaris_enet.c | 1 + hw/net/xgmac.c | 1 + hw/pci-host/versatile.c | 1 + hw/pcmcia/pxa2xx.c | 1 + hw/sd/pl181.c | 1 + hw/sd/pxa2xx_mmci.c | 1 + hw/ssi/xilinx_spi.c | 1 + hw/ssi/xilinx_spips.c | 1 + hw/timer/a9gtimer.c | 1 + hw/timer/allwinner-a10-pit.c | 1 + hw/timer/arm_mptimer.c | 1 + hw/timer/arm_timer.c | 1 + hw/timer/cadence_ttc.c | 1 + hw/timer/digic-timer.c | 1 + hw/timer/exynos4210_mct.c | 1 + hw/timer/exynos4210_pwm.c | 1 + hw/timer/exynos4210_rtc.c | 1 + hw/timer/imx_epit.c | 1 + hw/timer/imx_gpt.c | 1 + hw/timer/pl031.c | 1 + hw/timer/pxa2xx_timer.c | 1 + target-arm/arch_dump.c | 1 + 65 files changed, 65 insertions(+)
disas/arm.c +1 -0
@@ -22,6 +22,7 @@/* Start of qemu specific additions. Mostly this is stub definitions for things we don't care about. */ +#include "qemu/osdep.h" #include "disas/bfd.h" #define ATTRIBUTE_UNUSED __attribute__((unused))#define ISSPACE (x) ((x) == ' ' || (x) == '\t' || (x) == '\n')
hw/char/cadence_uart.c +1 -0
@@ -16,6 +16,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/char/cadence_uart.h" #ifdef CADENCE_UART_ERR_DEBUG
hw/char/digic-uart.c +1 -0
@@ -26,6 +26,7 @@* */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "sysemu/char.h"
hw/char/exynos4210_uart.c +1 -0
@@ -19,6 +19,7 @@* */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu/error-report.h" #include "sysemu/sysemu.h"
hw/char/imx_serial.c +1 -0
@@ -18,6 +18,7 @@* is a real serial device. */ +#include "qemu/osdep.h" #include "hw/char/imx_serial.h" #include "sysemu/sysemu.h" #include "sysemu/char.h"
hw/char/pl011.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "sysemu/char.h"
hw/display/exynos4210_fimd.c +1 -0
@@ -22,6 +22,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/sysbus.h" #include "ui/console.h"
hw/display/pl110.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the GNU LGPL */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "ui/console.h" #include "framebuffer.h"
hw/display/pxa2xx_lcd.c +1 -0
@@ -10,6 +10,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "ui/console.h" #include "hw/arm/pxa.h"
hw/dma/pl080.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "exec/address-spaces.h"
hw/dma/pl330.c +1 -0
@@ -14,6 +14,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu/timer.h" #include "sysemu/dma.h"
hw/dma/pxa2xx_dma.c +1 -0
@@ -8,6 +8,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/arm/pxa.h" #include "hw/sysbus.h"
hw/gpio/imx_gpio.c +1 -0
@@ -17,6 +17,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/gpio/imx_gpio.h" #ifndef DEBUG_IMX_GPIO
hw/gpio/pl061.c +1 -0
@@ -8,6 +8,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" //#define DEBUG_PL061 1
hw/i2c/exynos4210_i2c.c +1 -0
@@ -20,6 +20,7 @@* */ +#include "qemu/osdep.h" #include "qemu/timer.h" #include "hw/sysbus.h" #include "hw/i2c/i2c.h"
hw/i2c/imx_i2c.c +1 -0
@@ -18,6 +18,7 @@* */ +#include "qemu/osdep.h" #include "hw/i2c/imx_i2c.h" #include "hw/i2c/i2c.h"
hw/i2c/versatile_i2c.c +1 -0
@@ -21,6 +21,7 @@* */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "bitbang_i2c.h"
hw/input/pl050.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/input/ps2.h"
hw/input/pxa2xx_keypad.c +1 -0
@@ -11,6 +11,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/arm/pxa.h" #include "ui/console.h"
hw/input/stellaris_input.c +1 -0
@@ -6,6 +6,7 @@* * This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/devices.h" #include "ui/console.h"
hw/intc/allwinner-a10-pic.c +1 -0
@@ -15,6 +15,7 @@* for more details. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/devices.h" #include "sysemu/sysemu.h"
hw/intc/arm_gic.c +1 -0
@@ -18,6 +18,7 @@* armv7m_nvic device. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "gic_internal.h" #include "qom/cpu.h"
hw/intc/arm_gic_common.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "gic_internal.h" #include "hw/arm/linux-boot-if.h"
hw/intc/arm_gic_kvm.c +1 -0
@@ -19,6 +19,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "migration/migration.h" #include "sysemu/kvm.h"
hw/intc/arm_gicv2m.c +1 -0
@@ -25,6 +25,7 @@* identification registers and with a single non-secure MSI register frame. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/pci/msi.h"
hw/intc/arm_gicv3_common.c +1 -0
@@ -20,6 +20,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/intc/arm_gicv3_common.h" static void gicv3_pre_save (void *opaque)
hw/intc/arm_gicv3_kvm.c +1 -0
@@ -19,6 +19,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/intc/arm_gicv3_common.h" #include "hw/sysbus.h" #include "sysemu/kvm.h"
hw/intc/armv7m_nvic.c +1 -0
@@ -10,6 +10,7 @@* NVIC. Much of that is also implemented here. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu/timer.h" #include "hw/arm/arm.h"
hw/intc/exynos4210_combiner.c +1 -0
@@ -27,6 +27,7 @@* IRQs are passed to GIC through Combiner. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/arm/exynos4210.h"
hw/intc/exynos4210_gic.c +1 -0
@@ -20,6 +20,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu-common.h" #include "hw/irq.h"
hw/intc/imx_avic.c +1 -0
@@ -15,6 +15,7 @@* TODO: implement vectors. */ +#include "qemu/osdep.h" #include "hw/intc/imx_avic.h" #ifndef DEBUG_IMX_AVIC
hw/intc/pl190.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" /* The number of virtual priority levels. 16 user vectors plus the
hw/intc/realview_gic.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/intc/realview_gic.h" static void realview_gic_set_irq (void *opaque,int irq,int level)
hw/misc/a9scu.c +1 -0
@@ -8,6 +8,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/misc/a9scu.h" static uint64_t a9_scu_read(void *opaque, hwaddr offset,
hw/misc/arm11scu.c +1 -0
@@ -8,6 +8,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/misc/arm11scu.h" static uint64_t mpcore_scu_read(void *opaque, hwaddr offset,
hw/misc/exynos4210_pmu.c +1 -0
@@ -24,6 +24,7 @@* uses PMU INFORM5 register as a holding pen. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #ifndef DEBUG_PMU
hw/misc/imx25_ccm.c +1 -0
@@ -11,6 +11,7 @@* the CCM. */ +#include "qemu/osdep.h" #include "hw/misc/imx25_ccm.h" #ifndef DEBUG_IMX25_CCM
hw/misc/imx31_ccm.c +1 -0
@@ -11,6 +11,7 @@* the i.MX31 CCM. */ +#include "qemu/osdep.h" #include "hw/misc/imx31_ccm.h" #define CKIH_FREQ 26000000/* 26MHz crystal input */
hw/misc/imx_ccm.c +1 -0
@@ -11,6 +11,7 @@* retrieve the CCM frequencies from the various i.MX SOC. */ +#include "qemu/osdep.h" #include "hw/misc/imx_ccm.h" #ifndef DEBUG_IMX_CCM
hw/misc/zynq_slcr.c +1 -0
@@ -14,6 +14,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/timer.h" #include "hw/sysbus.h"
hw/net/allwinner_emac.c +1 -0
@@ -16,6 +16,7 @@* GNU General Public License for more details. * */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "net/net.h" #include "qemu/fifo8.h"
hw/net/cadence_gem.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include <zlib.h> /* For crc32 */ #include "hw/net/cadence_gem.h"
hw/net/imx_fec.c +1 -0
@@ -21,6 +21,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/net/imx_fec.h" #include "sysemu/dma.h"
hw/net/stellaris_enet.c +1 -0
@@ -6,6 +6,7 @@* * This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "net/net.h" #include <zlib.h>
hw/net/xgmac.c +1 -0
@@ -24,6 +24,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "sysemu/char.h" #include "qemu/log.h"
hw/pci-host/versatile.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the LGPL. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/pci/pci.h" #include "hw/pci/pci_bus.h"
hw/pcmcia/pxa2xx.c +1 -0
@@ -10,6 +10,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "hw/pcmcia.h"
hw/sd/pl181.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h" #include "hw/sysbus.h"
hw/sd/pxa2xx_mmci.c +1 -0
@@ -10,6 +10,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/arm/pxa.h" #include "hw/sd/sd.h"
hw/ssi/xilinx_spi.c +1 -0
@@ -24,6 +24,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "sysemu/sysemu.h" #include "qemu/log.h"
hw/ssi/xilinx_spips.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "sysemu/sysemu.h" #include "hw/ptimer.h"
hw/timer/a9gtimer.c +1 -0
@@ -20,6 +20,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/timer/a9gtimer.h" #include "qemu/timer.h" #include "qemu/bitops.h"
hw/timer/allwinner-a10-pit.c +1 -0
@@ -15,6 +15,7 @@* for more details. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "sysemu/sysemu.h" #include "hw/timer/allwinner-a10-pit.h"
hw/timer/arm_mptimer.c +1 -0
@@ -19,6 +19,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/timer/arm_mptimer.h" #include "qemu/timer.h" #include "qom/cpu.h"
hw/timer/arm_timer.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu/timer.h" #include "qemu-common.h"
hw/timer/cadence_ttc.c +1 -0
@@ -16,6 +16,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu/timer.h"
hw/timer/digic-timer.c +1 -0
@@ -26,6 +26,7 @@* */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/ptimer.h" #include "qemu/main-loop.h"
hw/timer/exynos4210_mct.c +1 -0
@@ -52,6 +52,7 @@* there is no way to avoid frequently events). */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu/timer.h" #include "qemu/main-loop.h"
hw/timer/exynos4210_pwm.c +1 -0
@@ -20,6 +20,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu/timer.h" #include "qemu-common.h"
hw/timer/exynos4210_rtc.c +1 -0
@@ -25,6 +25,7 @@* CLKOUTEN Bit[9] not used */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu/timer.h" #include "qemu-common.h"
hw/timer/imx_epit.c +1 -0
@@ -12,6 +12,7 @@* */ +#include "qemu/osdep.h" #include "hw/timer/imx_epit.h" #include "hw/misc/imx_ccm.h" #include "qemu/main-loop.h"
hw/timer/imx_gpt.c +1 -0
@@ -12,6 +12,7 @@* */ +#include "qemu/osdep.h" #include "hw/timer/imx_gpt.h" #include "hw/misc/imx_ccm.h" #include "qemu/main-loop.h"
hw/timer/pl031.c +1 -0
@@ -11,6 +11,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu/timer.h" #include "sysemu/sysemu.h"
hw/timer/pxa2xx_timer.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/timer.h" #include "sysemu/sysemu.h"
target-arm/arch_dump.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "elf.h" #include "sysemu/dump.h"
Signature · 1 line
1.9.1
PATCH 13/37 xen: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/char/xen_console.c | 7 +------ hw/display/xenfb.c | 10 +--------- hw/net/xen_nic.c | 11 +---------- hw/xen/xen-host-pci-device.c | 1 + hw/xen/xen_backend.c | 10 +--------- hw/xen/xen_devconfig.c | 1 + hw/xen/xen_pt.c | 1 + hw/xen/xen_pt_config_init.c | 1 + hw/xen/xen_pt_graphics.c | 1 + hw/xen/xen_pt_msi.c | 1 + hw/xenpv/xen_domainbuild.c | 2 +- hw/xenpv/xen_machine_pv.c | 1 + xen-common-stub.c | 1 + xen-common.c | 1 + xen-hvm-stub.c | 1 + xen-hvm.c | 1 + xen-mapcache.c | 2 +- 17 files changed, 17 insertions(+), 36 deletions(-)
hw/char/xen_console.c +1 -6
@@ -19,14 +19,9 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdlib.h> -#include <errno.h> -#include <string.h> +#include "qemu/osdep.h" #include <sys/select.h> -#include <fcntl.h> -#include <unistd.h> #include <termios.h> -#include <stdarg.h> #include <sys/mman.h> #include "hw/hw.h"
hw/display/xenfb.c +1 -9
@@ -24,16 +24,8 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdarg.h> -#include <stdlib.h> -#include <sys/types.h> -#include <fcntl.h> -#include <unistd.h> +#include "qemu/osdep.h" #include <sys/mman.h> -#include <errno.h> -#include <stdio.h> -#include <string.h> -#include <time.h> #include "hw/hw.h" #include "ui/console.h"
hw/net/xen_nic.c +1 -10
@@ -19,18 +19,9 @@* GNU GPL, version 2 or (at your option) any later version. */ -#include <stdio.h> -#include <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <unistd.h> -#include <inttypes.h> -#include <fcntl.h> -#include <errno.h> +#include "qemu/osdep.h" #include <sys/socket.h> #include <sys/ioctl.h> -#include <sys/types.h> -#include <sys/stat.h> #include <sys/mman.h> #include <sys/wait.h>
hw/xen/xen-host-pci-device.c +1 -0
@@ -6,6 +6,7 @@* */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "xen-host-pci-device.h"
hw/xen/xen_backend.c +1 -9
@@ -22,15 +22,7 @@* TODO: add some xenbus / xenstore concepts overview here. */ -#include <stdio.h> -#include <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <unistd.h> -#include <fcntl.h> -#include <inttypes.h> -#include <sys/types.h> -#include <sys/stat.h> +#include "qemu/osdep.h" #include <sys/mman.h> #include <sys/signal.h>
hw/xen/xen_devconfig.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/xen/xen_backend.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h"
hw/xen/xen_pt.c +1 -0
@@ -52,6 +52,7 @@* - Set entry->pirq to '-1'. */ +#include "qemu/osdep.h" #include <sys/ioctl.h> #include "hw/pci/pci.h"
hw/xen/xen_pt_config_init.c +1 -0
@@ -12,6 +12,7 @@* This file implements direct PCI assignment to a HVM guest */ +#include "qemu/osdep.h" #include "qemu/timer.h" #include "hw/xen/xen_backend.h" #include "xen_pt.h"
hw/xen/xen_pt_graphics.c +1 -0
@@ -1,6 +1,7 @@/* * graphics passthrough */ +#include "qemu/osdep.h" #include "xen_pt.h" #include "xen-host-pci-device.h" #include "hw/xen/xen_backend.h"
hw/xen/xen_pt_msi.c +1 -0
@@ -9,6 +9,7 @@* This file implements direct PCI assignment to a HVM guest */ +#include "qemu/osdep.h" #include <sys/mman.h> #include "hw/xen/xen_backend.h"
hw/xenpv/xen_domainbuild.c +1 -1
@@ -1,4 +1,4 @@ -#include <signal.h> +#include "qemu/osdep.h" #include "hw/xen/xen_backend.h" #include "xen_domainbuild.h" #include "qemu/timer.h"
hw/xenpv/xen_machine_pv.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/boards.h" #include "hw/xen/xen_backend.h"
xen-common-stub.c +1 -0
@@ -5,6 +5,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/xen/xen.h"
xen-common.c +1 -0
@@ -8,6 +8,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/xen/xen_backend.h" #include "qmp-commands.h" #include "sysemu/char.h"
xen-hvm-stub.c +1 -0
@@ -8,6 +8,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/xen/xen.h" #include "exec/memory.h"
xen-hvm.c +1 -0
@@ -8,6 +8,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include <sys/mman.h> #include "hw/pci/pci.h"
xen-mapcache.c +1 -1
@@ -8,7 +8,7 @@* GNU GPL, version 2 or (at your option) any later version. */ -#include "config.h" +#include "qemu/osdep.h" #include <sys/resource.h>
Signature · 1 line
1.9.1
PATCH 14/37 virtio: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/9pfs/virtio-9p-device.c | 1 + hw/char/virtio-console.c | 1 + hw/char/virtio-serial-bus.c | 1 + hw/display/virtio-gpu-3d.c | 1 + hw/display/virtio-gpu-pci.c | 1 + hw/display/virtio-gpu.c | 1 + hw/display/virtio-vga.c | 1 + hw/input/virtio-input-hid.c | 1 + hw/input/virtio-input-host.c | 1 + hw/input/virtio-input.c | 1 + hw/net/virtio-net.c | 1 + hw/scsi/virtio-scsi-dataplane.c | 1 + hw/scsi/virtio-scsi.c | 1 + hw/virtio/dataplane/vring.c | 1 + hw/virtio/vhost-backend.c | 1 + hw/virtio/vhost-user.c | 3 +-- hw/virtio/vhost.c | 1 + hw/virtio/virtio-balloon.c | 1 + hw/virtio/virtio-bus.c | 1 + hw/virtio/virtio-mmio.c | 1 + hw/virtio/virtio-pci.c | 2 +- hw/virtio/virtio-rng.c | 1 + hw/virtio/virtio.c | 2 +- 23 files changed, 23 insertions(+), 4 deletions(-)
hw/9pfs/virtio-9p-device.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "hw/virtio/virtio.h" #include "hw/i386/pc.h" #include "qemu/sockets.h"
hw/char/virtio-console.c +1 -0
@@ -10,6 +10,7 @@* the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "sysemu/char.h" #include "qemu/error-report.h" #include "trace.h"
hw/char/virtio-serial-bus.c +1 -0
@@ -18,6 +18,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "qemu/iov.h" #include "monitor/monitor.h" #include "qemu/error-report.h"
hw/display/virtio-gpu-3d.c +1 -0
@@ -11,6 +11,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/iov.h" #include "trace.h"
hw/display/virtio-gpu-pci.c +1 -0
@@ -10,6 +10,7 @@* See the COPYING file in the top-level directory. * */ +#include "qemu/osdep.h" #include "hw/pci/pci.h" #include "hw/virtio/virtio.h" #include "hw/virtio/virtio-bus.h"
hw/display/virtio-gpu.c +1 -0
@@ -11,6 +11,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/iov.h" #include "ui/console.h"
hw/display/virtio-vga.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "ui/console.h"
hw/input/virtio-input-hid.c +1 -0
@@ -4,6 +4,7 @@* top-level directory. */ +#include "qemu/osdep.h" #include "qemu/iov.h" #include "hw/qdev.h"
hw/input/virtio-input-host.c +1 -0
@@ -4,6 +4,7 @@* top-level directory. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/sockets.h"
hw/input/virtio-input.c +1 -0
@@ -4,6 +4,7 @@* top-level directory. */ +#include "qemu/osdep.h" #include "qemu/iov.h" #include "hw/qdev.h"
hw/net/virtio-net.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "qemu/iov.h" #include "hw/virtio/virtio.h" #include "net/net.h"
hw/scsi/virtio-scsi-dataplane.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "hw/virtio/virtio-scsi.h" #include "qemu/error-report.h" #include "sysemu/block-backend.h"
hw/scsi/virtio-scsi.c +1 -0
@@ -13,6 +13,7 @@* */ +#include "qemu/osdep.h" #include "standard-headers/linux/virtio_ids.h" #include "hw/virtio/virtio-scsi.h" #include "qemu/error-report.h"
hw/virtio/dataplane/vring.c +1 -0
@@ -14,6 +14,7 @@* This work is licensed under the terms of the GNU GPL, version 2. */ +#include "qemu/osdep.h" #include "trace.h" #include "hw/hw.h" #include "exec/memory.h"
hw/virtio/vhost-backend.c +1 -0
@@ -8,6 +8,7 @@* */ +#include "qemu/osdep.h" #include "hw/virtio/vhost.h" #include "hw/virtio/vhost-backend.h" #include "qemu/error-report.h"
hw/virtio/vhost-user.c +1 -2
@@ -8,6 +8,7 @@* */ +#include "qemu/osdep.h" #include "hw/virtio/vhost.h" #include "hw/virtio/vhost-backend.h" #include "hw/virtio/virtio-net.h"
@@ -18,8 +19,6 @@#include "exec/ram_addr.h" #include "migration/migration.h" -#include <fcntl.h> -#include <unistd.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <sys/un.h>
hw/virtio/vhost.c +1 -0
@@ -13,6 +13,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/virtio/vhost.h" #include "hw/hw.h" #include "qemu/atomic.h"
hw/virtio/virtio-balloon.c +1 -0
@@ -13,6 +13,7 @@* */ +#include "qemu/osdep.h" #include "qemu/iov.h" #include "qemu/timer.h" #include "qemu-common.h"
hw/virtio/virtio-bus.c +1 -0
@@ -22,6 +22,7 @@* */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/error-report.h" #include "hw/qdev.h"
hw/virtio/virtio-mmio.c +1 -0
@@ -19,6 +19,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/virtio/virtio.h" #include "qemu/host-utils.h"
hw/virtio/virtio-pci.c +1 -1
@@ -15,7 +15,7 @@* GNU GPL, version 2 or (at your option) any later version. */ -#include <inttypes.h> +#include "qemu/osdep.h" #include "standard-headers/linux/virtio_pci.h" #include "hw/virtio/virtio.h"
hw/virtio/virtio-rng.c +1 -0
@@ -9,6 +9,7 @@* top-level directory. */ +#include "qemu/osdep.h" #include "qemu/iov.h" #include "hw/qdev.h" #include "hw/virtio/virtio.h"
hw/virtio/virtio.c +1 -1
@@ -11,7 +11,7 @@* */ -#include <inttypes.h> +#include "qemu/osdep.h" #include "trace.h" #include "exec/address-spaces.h"
Signature · 1 line
1.9.1
PATCH 15/37 tcg: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- tcg/aarch64/tcg-target.c | 1 + tcg/arm/tcg-target.c | 1 + tcg/i386/tcg-target.c | 1 + tcg/mips/tcg-target.c | 2 +- tcg/optimize.c | 4 +--- tcg/ppc/tcg-target.c | 8 +------- tcg/s390/tcg-target.c | 1 + tcg/sparc/tcg-target.c | 1 + tcg/tcg-common.c | 1 + tcg/tcg-op.c | 1 + tcg/tcg.c | 2 +- tcg/tci/tcg-target.c | 1 + 12 files changed, 12 insertions(+), 12 deletions(-)
tcg/aarch64/tcg-target.c +1 -0
@@ -10,6 +10,7 @@* See the COPYING file in the top-level directory for details. */ +#include "qemu/osdep.h" #include "tcg-be-ldst.h" #include "qemu/bitops.h"
tcg/arm/tcg-target.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "elf.h" #include "tcg-be-ldst.h"
tcg/i386/tcg-target.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "tcg-be-ldst.h" #ifndef NDEBUG
tcg/mips/tcg-target.c +1 -1
@@ -24,6 +24,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "tcg-be-ldst.h" #ifdef HOST_WORDS_BIGENDIAN
@@ -1735,7 +1736,6 @@ static int tcg_target_callee_save_regs[] = {/* The Linux kernel doesn't provide any information about the available instruction set. Probe it using a signal handler. */ -#include <signal.h> #ifndef use_movnz_instructionsbool use_movnz_instructions = false;
tcg/optimize.c +1 -3
@@ -23,10 +23,8 @@* THE SOFTWARE. */ -#include "config.h" +#include "qemu/osdep.h" -#include <stdlib.h> -#include <stdio.h> #include "qemu-common.h" #include "tcg-op.h"
tcg/ppc/tcg-target.c +1 -7
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "tcg-be-ldst.h" #if defined _CALL_DARWIN || defined __APPLE__
@@ -2725,8 +2726,6 @@ static void __attribute__((constructor)) tcg_cache_init(void) }#elif defined __APPLE__ -#include <stdio.h> -#include <sys/types.h> #include <sys/sysctl.h> static void __attribute__((constructor))tcg_cache_init (void )
@@ -2745,11 +2744,6 @@ static void __attribute__((constructor)) tcg_cache_init(void) }#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) -#include <errno.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <sys/types.h> #include <sys/sysctl.h> static void __attribute__((constructor))tcg_cache_init (void )
tcg/s390/tcg-target.c +1 -0
@@ -24,6 +24,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "tcg-be-ldst.h" /* We only support generating code for 64-bit mode. */
tcg/sparc/tcg-target.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "tcg-be-null.h" #ifndef NDEBUG
tcg/tcg-common.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "tcg/tcg.h" #if defined(CONFIG_TCG_INTERPRETER )
tcg/tcg-op.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "tcg.h" #include "tcg-op.h"
tcg/tcg.c +1 -1
@@ -26,7 +26,7 @@#define USE_LIVENESS_ANALYSIS #define USE_TCG_OPTIMIZATIONS -#include "config.h" +#include "qemu/osdep.h" /* Define to jump the ELF file used to communicate with GDB. */ #undef DEBUG_JIT
tcg/tci/tcg-target.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "tcg-be-null.h" /* TODO list:
Signature · 1 line
1.9.1
Re: [Qemu-devel] [PATCH 15/37] tcg: Clean up includes
Quoted 29 lines · Peter Maydell
tcg/aarch64/tcg-target.c +1
-0@@ -10,6 +10,7 @@* See the COPYING file in the top-level directory for details. */ +#include "qemu/osdep.h" #include "tcg-be-ldst.h" #include "qemu/bitops.h" tcg/arm/tcg-target.c +1
-0@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "elf.h" #include "tcg-be-ldst.h" tcg/i386/tcg-target.c +0
-0
tcg/i386/tcg-target.c line 28
Quoted 7 lines
tcg/i386/tcg-target.c +1
-0@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "tcg-be-ldst.h" #ifndef NDEBUG
Nack to these, and the others like them.
These files are not standalone, they are
included into tcg.c, so we ought not be
re-including qemu/osdep.h here.
tcg/mips/tcg-target.c static int tcg_target_callee_save_regs[] = { · line 1741
Quoted 12 lines
tcg/mips/tcg-target.c +0
-1@@ -1735,7 +1736,6 @@ static int tcg_target_callee_save_regs[] = {/* The Linux kernel doesn't provide any information about the available instruction set. Probe it using a signal handler. */ -#include <signal.h> #ifndef use_movnz_instructionsbool use_movnz_instructions = false;
But this is good.
Quoted 15 lines
tcg/ppc/tcg-target.c +0
-2@@ -2725,8 +2726,6 @@ static void __attribute__((constructor)) tcg_cache_init(void) }#elif defined __APPLE__ -#include <stdio.h> -#include <sys/types.h> #include <sys/sysctl.h> static void __attribute__((constructor))tcg_cache_init (void )@@ -2745,11 +2744,6 @@ static void __attribute__((constructor)) tcg_cache_init(void) }
tcg/ppc/tcg-target.c static void __attribute__((constructor)) tcg_cache_init(void) · line 2749
Quoted 10 lines
tcg/ppc/tcg-target.c +0
-5#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) -#include <errno.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <sys/types.h> #include <sys/sysctl.h> static void __attribute__((constructor))tcg_cache_init (void )
And this.
r~
Re: [Qemu-devel] [PATCH 15/37] tcg: Clean up includes
Quoted 12 lines · Richard Henderson
Quoted 11 lines · Peter Maydell
tcg/i386/tcg-target.c +1
-0@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "tcg-be-ldst.h"
Quoted 7 lines
tcg/i386/tcg-target.c line 28
Quoted 1 line
tcg/i386/tcg-target.c +0
-0#ifndef NDEBUG Nack to these, and the others like them.
These files are not standalone, they are
included intotcg.c, so we ought not be
re-includingqemu/osdep.hhere.
Mmm, but I preferred to retain the invariant that "all .c files include osdep.h first" rather than special casing these; the re-include is harmless.
Alternatively we could rename these tcg-target.c files to some other extension that makes it clearer that they're not standalone source files.
(This is commit 757e725b58c57 in master now, so I'll write a patch that fixes things up.)
thanks
-- PMM
Re: [Qemu-devel] [PATCH 15/37] tcg: Clean up includes
Quoted 3 lines · Peter Maydell
Alternatively we could rename these
tcg-target.cfiles to some other extension that makes it clearer that they're not standalone source files.
Maybe for next cycle I can get around my goal of changing this around to be more md-file-like. Which would allow more compile-time validation, instead of the collection of start-time asserts (which don't even run without --enable-debug-tcg).
r~
Re: [Qemu-devel] [PATCH 15/37] tcg: Clean up includes
In reply to Peter MaydellQuoted 21 lines · Peter Maydell
Quoted 12 lines · Richard Henderson
Quoted 11 lines · Peter Maydell
tcg/i386/tcg-target.c +1
-0@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "tcg-be-ldst.h" Quoted 7 lines
tcg/i386/tcg-target.c line 28
Quoted 1 line
tcg/i386/tcg-target.c +0
-0#ifndef NDEBUG Nack to these, and the others like them.
These files are not standalone, they are
included intotcg.c, so we ought not be
re-includingqemu/osdep.hhere.
Quoted 7 lines
Mmm, but I preferred to retain the invariant that "all .c files include
osdep.hfirst" rather than special casing these; the re-include is harmless.Alternatively we could rename these
tcg-target.cfiles to some other extension that makes it clearer that they're not standalone source files.
How do you feel about renaming the tcg-target.c files to tcg-target.inc.c ? Then I can make clean-includes know that *.inc.c are not to have the cleaning rules applied to them.
thanks
-- PMM
Re: [Qemu-devel] [PATCH 15/37] tcg: Clean up includes
Quoted 26 lines · Peter Maydell
Quoted 25 lines · Peter Maydell
Quoted 12 lines · Richard Henderson
Quoted 11 lines · Peter Maydell
tcg/i386/tcg-target.c +1
-0@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "tcg-be-ldst.h" Quoted 7 lines
tcg/i386/tcg-target.c line 28
Quoted 1 line
tcg/i386/tcg-target.c +0
-0#ifndef NDEBUG Nack to these, and the others like them.
These files are not standalone, they are
included intotcg.c, so we ought not be
re-includingqemu/osdep.hhere.Mmm, but I preferred to retain the invariant that "all .c files include
osdep.hfirst" rather than special casing these; the re-include is harmless.
Quoted 7 lines
Quoted 3 lines
Alternatively we could rename these
tcg-target.cfiles to some other extension that makes it clearer that they're not standalone source files.How do you feel about renaming the
tcg-target.cfiles totcg-target.inc.c? Then I can make clean-includes know that *.inc.c are not to have the cleaning rules applied to them.
I suppose. Though is the pattern "*.inc.c" really any better than "tcg-target.c"?
r~
Re: [Qemu-devel] [PATCH 15/37] tcg: Clean up includes
Quoted 7 lines · Richard Henderson
Quoted 3 lines · Peter Maydell
How do you feel about renaming the
tcg-target.cfiles totcg-target.inc.c? Then I can make clean-includes know that *.inc.c are not to have the cleaning rules applied to them.I suppose. Though is the pattern "*.inc.c" really any better than "
tcg-target.c"?
I think it's kind of confusing that tcg-target.c isn't a standalone C file, so giving it a clearer name is nicer for humans too.
-- PMM
Re: [Qemu-devel] [PATCH 15/37] tcg: Clean up includes
Quoted 6 lines · Peter Maydell
Quoted 5 lines · Richard Henderson
Quoted 3 lines · Peter Maydell
How do you feel about renaming the
tcg-target.cfiles totcg-target.inc.c? Then I can make clean-includes know that *.inc.c are not to have the cleaning rules applied to them.
Quoted 6 lines
Quoted 2 lines
I suppose. Though is the pattern "*.inc.c" really any better than "
tcg-target.c"?I think it's kind of confusing that
tcg-target.cisn't a standalone C file, so giving it a clearer name is nicer for humans too.
No objection then.
r~
PATCH 16/37 ide: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/ide/ahci.c | 1 + hw/ide/atapi.c | 1 + hw/ide/cmd646.c | 1 + hw/ide/core.c | 1 + hw/ide/ich.c | 1 + hw/ide/isa.c | 1 + hw/ide/macio.c | 1 + hw/ide/microdrive.c | 1 + hw/ide/mmio.c | 1 + hw/ide/pci.c | 1 + hw/ide/piix.c | 1 + hw/ide/qdev.c | 1 + hw/ide/via.c | 1 + tests/ahci-test.c | 4 +--- tests/ide-test.c | 4 +--- tests/libqos/ahci.c | 1 + 16 files changed, 16 insertions(+), 6 deletions(-)
hw/ide/ahci.c +1 -0
@@ -21,6 +21,7 @@* */ +#include "qemu/osdep.h" #include <hw/hw.h> #include <hw/pci/msi.h> #include <hw/i386/pc.h>
hw/ide/atapi.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/ide/internal.h" #include "hw/scsi/scsi.h" #include "sysemu/block-backend.h"
hw/ide/cmd646.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include <hw/hw.h> #include <hw/i386/pc.h> #include <hw/pci/pci.h>
hw/ide/core.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include <hw/hw.h> #include <hw/i386/pc.h> #include <hw/pci/pci.h>
hw/ide/ich.c +1 -0
@@ -60,6 +60,7 @@* */ +#include "qemu/osdep.h" #include <hw/hw.h> #include <hw/pci/msi.h> #include <hw/i386/pc.h>
hw/ide/isa.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include <hw/hw.h> #include <hw/i386/pc.h> #include <hw/isa/isa.h>
hw/ide/macio.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/mac.h" #include "hw/ppc/mac_dbdma.h"
hw/ide/microdrive.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include <hw/hw.h> #include <hw/i386/pc.h> #include <hw/pcmcia.h>
hw/ide/mmio.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "sysemu/block-backend.h"
hw/ide/pci.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include <hw/hw.h> #include <hw/i386/pc.h> #include <hw/pci/pci.h>
hw/ide/piix.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include <hw/hw.h> #include <hw/i386/pc.h> #include <hw/pci/pci.h>
hw/ide/qdev.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include <hw/hw.h> #include "sysemu/dma.h" #include "qemu/error-report.h"
hw/ide/via.c +1 -0
@@ -23,6 +23,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include <hw/hw.h> #include <hw/i386/pc.h> #include <hw/pci/pci.h>
tests/ahci-test.c +1 -3
@@ -22,9 +22,7 @@* THE SOFTWARE. */ -#include <stdint.h> -#include <string.h> -#include <stdio.h> +#include "qemu/osdep.h" #include <getopt.h> #include <glib.h>
tests/ide-test.c +1 -3
@@ -22,9 +22,7 @@* THE SOFTWARE. */ -#include <stdint.h> -#include <string.h> -#include <stdio.h> +#include "qemu/osdep.h" #include <glib.h>
tests/libqos/ahci.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include <glib.h> #include "libqtest.h"
Signature · 1 line
1.9.1
PATCH 17/37 9pfs: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- fsdev/9p-iov-marshal.c | 7 +------ fsdev/9p-marshal.c | 7 +------ fsdev/qemu-fsdev-dummy.c | 3 +-- fsdev/qemu-fsdev-opts.c | 1 + fsdev/qemu-fsdev.c | 4 +--- fsdev/virtfs-proxy-helper.c | 1 + hw/9pfs/9p-handle.c | 2 +- hw/9pfs/9p-local.c | 1 + hw/9pfs/9p-posix-acl.c | 2 +- hw/9pfs/9p-proxy.c | 1 + hw/9pfs/9p-synth.c | 2 +- hw/9pfs/9p-xattr-user.c | 2 +- hw/9pfs/9p-xattr.c | 1 + hw/9pfs/9p.c | 1 + hw/9pfs/codir.c | 1 + hw/9pfs/cofile.c | 1 + hw/9pfs/cofs.c | 1 + hw/9pfs/coth.c | 1 + hw/9pfs/coxattr.c | 1 + tests/virtio-9p-test.c | 4 +--- 20 files changed, 20 insertions(+), 24 deletions(-)
fsdev/9p-iov-marshal.c +1 -6
@@ -11,17 +11,12 @@* */ +#include "qemu/osdep.h" #include <glib.h> #include <glib/gprintf.h> -#include <sys/types.h> -#include <sys/time.h> #include <utime.h> #include <sys/uio.h> -#include <string.h> -#include <stdint.h> -#include <errno.h> -#include "qemu/compiler.h" #include "9p-iov-marshal.h" #include "qemu/bswap.h"
fsdev/9p-marshal.c +1 -6
@@ -11,18 +11,13 @@* */ +#include "qemu/osdep.h" #include <glib.h> #include <glib/gprintf.h> -#include <sys/types.h> #include <dirent.h> -#include <sys/time.h> #include <utime.h> #include <sys/uio.h> -#include <string.h> -#include <stdint.h> -#include <errno.h> -#include "qemu/compiler.h" #include "9p-marshal.h" void v9fs_string_free (V9fsString *str)
fsdev/qemu-fsdev-dummy.c +1 -2
@@ -10,8 +10,7 @@* the COPYING file in the top-level directory. * */ -#include <stdio.h> -#include <string.h> +#include "qemu/osdep.h" #include "qemu-fsdev.h" #include "qemu/config-file.h" #include "qemu/module.h"
fsdev/qemu-fsdev-opts.c +1 -0
@@ -5,6 +5,7 @@* later. See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "qemu/config-file.h" #include "qemu/option.h" #include "qemu/module.h"
fsdev/qemu-fsdev.c +1 -3
@@ -10,11 +10,9 @@* the COPYING file in the top-level directory. * */ -#include <stdio.h> -#include <string.h> +#include "qemu/osdep.h" #include "qemu-fsdev.h" #include "qemu/queue.h" -#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/config-file.h" #include "qemu/error-report.h"
fsdev/virtfs-proxy-helper.c +1 -0
@@ -9,6 +9,7 @@* the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include <sys/resource.h> #include <getopt.h> #include <syslog.h>
hw/9pfs/9p-handle.c +1 -1
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "9p.h" #include "9p-xattr.h" #include <arpa/inet.h>
@@ -20,7 +21,6 @@#include <sys/un.h> #include "qemu/xattr.h" #include "qemu/error-report.h" -#include <unistd.h> #include <linux/fs.h> #ifdef CONFIG_LINUX_MAGIC_H #include <linux/magic.h>
hw/9pfs/9p-local.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "9p.h" #include "9p-xattr.h" #include "fsdev/qemu-fsdev.h" /* local_ops */
hw/9pfs/9p-posix-acl.c +1 -1
@@ -11,7 +11,7 @@* */ -#include <sys/types.h> +#include "qemu/osdep.h" #include "qemu/xattr.h" #include "9p.h" #include "fsdev/file-op-9p.h"
hw/9pfs/9p-proxy.c +1 -0
@@ -9,6 +9,7 @@* This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include <sys/socket.h> #include <sys/un.h> #include "9p.h"
hw/9pfs/9p-synth.c +1 -1
@@ -12,6 +12,7 @@* */ +#include "qemu/osdep.h" #include "hw/virtio/virtio.h" #include "9p.h" #include "9p-xattr.h"
@@ -19,7 +20,6 @@#include "9p-synth.h" #include "qemu/rcu.h" #include "qemu/rcu_queue.h" -#include <sys/stat.h> /* Root node for synth file system */ static V9fsSynthNode v9fs_synth_root = {
hw/9pfs/9p-xattr-user.c +1 -1
@@ -11,7 +11,7 @@* */ -#include <sys/types.h> +#include "qemu/osdep.h" #include "9p.h" #include "fsdev/file-op-9p.h" #include "9p-xattr.h"
hw/9pfs/9p-xattr.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "9p.h" #include "fsdev/file-op-9p.h" #include "9p-xattr.h"
hw/9pfs/9p.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "hw/virtio/virtio.h" #include "hw/i386/pc.h" #include "qemu/error-report.h"
hw/9pfs/codir.c +1 -0
@@ -12,6 +12,7 @@* */ +#include "qemu/osdep.h" #include "fsdev/qemu-fsdev.h" #include "qemu/thread.h" #include "qemu/coroutine.h"
hw/9pfs/cofile.c +1 -0
@@ -12,6 +12,7 @@* */ +#include "qemu/osdep.h" #include "fsdev/qemu-fsdev.h" #include "qemu/thread.h" #include "qemu/coroutine.h"
hw/9pfs/cofs.c +1 -0
@@ -12,6 +12,7 @@* */ +#include "qemu/osdep.h" #include "fsdev/qemu-fsdev.h" #include "qemu/thread.h" #include "qemu/coroutine.h"
hw/9pfs/coth.c +1 -0
@@ -12,6 +12,7 @@* */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "block/thread-pool.h" #include "qemu/coroutine.h"
hw/9pfs/coxattr.c +1 -0
@@ -12,6 +12,7 @@* */ +#include "qemu/osdep.h" #include "fsdev/qemu-fsdev.h" #include "qemu/thread.h" #include "qemu/coroutine.h"
tests/virtio-9p-test.c +1 -3
@@ -7,12 +7,10 @@* See the COPYING file in the top-level directory. */ -#include <stdlib.h> -#include <string.h> +#include "qemu/osdep.h" #include <glib.h> #include "libqtest.h" #include "qemu-common.h" -#include "qemu/osdep.h" /* Tests only initialization so far. TODO: Replace with functional tests */ static void pci_nop (void )
Signature · 1 line
1.9.1
PATCH 18/37 hw/net: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/net/dp8393x.c | 1 + hw/net/e1000.c | 1 + hw/net/eepro100.c | 2 +- hw/net/etraxfs_eth.c | 2 +- hw/net/fsl_etsec/etsec.c | 1 + hw/net/fsl_etsec/miim.c | 1 + hw/net/fsl_etsec/registers.c | 1 + hw/net/fsl_etsec/rings.c | 1 + hw/net/lan9118.c | 1 + hw/net/lance.c | 1 + hw/net/mcf_fec.c | 1 + hw/net/mipsnet.c | 1 + hw/net/ne2000-isa.c | 1 + hw/net/ne2000.c | 1 + hw/net/opencores_eth.c | 1 + hw/net/pcnet-pci.c | 1 + hw/net/pcnet.c | 1 + hw/net/rocker/qmp-norocker.c | 1 + hw/net/rocker/rocker.c | 1 + hw/net/rocker/rocker_desc.c | 1 + hw/net/rocker/rocker_fp.c | 1 + hw/net/rocker/rocker_of_dpa.c | 1 + hw/net/rocker/rocker_world.c | 1 + hw/net/rtl8139.c | 1 + hw/net/smc91c111.c | 1 + hw/net/vhost_net.c | 4 +--- hw/net/vmxnet3.c | 1 + hw/net/vmxnet_rx_pkt.c | 1 + hw/net/vmxnet_tx_pkt.c | 1 + hw/net/xilinx_axienet.c | 1 + hw/net/xilinx_ethlite.c | 1 + 31 files changed, 31 insertions(+), 5 deletions(-)
hw/net/dp8393x.c +1 -0
@@ -17,6 +17,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/devices.h" #include "net/net.h"
hw/net/e1000.c +1 -0
@@ -25,6 +25,7 @@*/ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "net/net.h"
hw/net/eepro100.c +1 -1
@@ -40,7 +40,7 @@* * Wake-on-LAN is not implemented. */ -#include <stddef.h> /* offsetof */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "net/net.h"
hw/net/etraxfs_eth.c +1 -1
@@ -22,7 +22,7 @@* THE SOFTWARE. */ -#include <stdio.h> +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "net/net.h" #include "hw/cris/etraxfs.h"
hw/net/fsl_etsec/etsec.c +1 -0
@@ -26,6 +26,7 @@* This implementation doesn't include ring priority, TCP/IP Off-Load, QoS. */ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "hw/sysbus.h" #include "trace.h"
hw/net/fsl_etsec/miim.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "etsec.h" #include "registers.h"
hw/net/fsl_etsec/registers.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "registers.h" const eTSEC_Register_Definition eTSEC_registers_def[] = {
hw/net/fsl_etsec/rings.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "net/checksum.h" #include "etsec.h"
hw/net/lan9118.c +1 -0
@@ -10,6 +10,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "net/net.h" #include "hw/devices.h"
hw/net/lance.c +1 -0
@@ -35,6 +35,7 @@* http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR92C990.txt */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "net/net.h" #include "qemu/timer.h"
hw/net/mcf_fec.c +1 -0
@@ -5,6 +5,7 @@* * This code is licensed under the GPL */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "net/net.h" #include "hw/m68k/mcf.h"
hw/net/mipsnet.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/hw.h" #include "net/net.h" #include "trace.h"
hw/net/ne2000-isa.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/isa/isa.h"
hw/net/ne2000.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "net/net.h"
hw/net/opencores_eth.c +1 -0
@@ -31,6 +31,7 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "net/net.h"
hw/net/pcnet-pci.c +1 -0
@@ -27,6 +27,7 @@* AMD Publication# 19436 Rev:E Amendment/0 Issue Date: June 2000 */ +#include "qemu/osdep.h" #include "hw/pci/pci.h" #include "net/net.h" #include "hw/loader.h"
hw/net/pcnet.c +1 -0
@@ -35,6 +35,7 @@* http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR92C990.txt */ +#include "qemu/osdep.h" #include "hw/qdev.h" #include "net/net.h" #include "qemu/timer.h"
hw/net/rocker/qmp-norocker.c +1 -0
@@ -15,6 +15,7 @@* GNU General Public License for more details. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qmp-commands.h" #include "qapi/qmp/qerror.h"
hw/net/rocker/rocker.c +1 -0
@@ -15,6 +15,7 @@* GNU General Public License for more details. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "hw/pci/msix.h"
hw/net/rocker/rocker_desc.c +1 -0
@@ -14,6 +14,7 @@* GNU General Public License for more details. */ +#include "qemu/osdep.h" #include "net/net.h" #include "hw/hw.h" #include "hw/pci/pci.h"
hw/net/rocker/rocker_fp.c +1 -0
@@ -14,6 +14,7 @@* GNU General Public License for more details. */ +#include "qemu/osdep.h" #include "net/clients.h" #include "rocker.h"
hw/net/rocker/rocker_of_dpa.c +1 -0
@@ -14,6 +14,7 @@* GNU General Public License for more details. */ +#include "qemu/osdep.h" #include "net/eth.h" #include "qemu/iov.h" #include "qemu/timer.h"
hw/net/rocker/rocker_world.c +1 -0
@@ -14,6 +14,7 @@* GNU General Public License for more details. */ +#include "qemu/osdep.h" #include "qemu/iov.h" #include "rocker.h"
hw/net/rtl8139.c +1 -0
@@ -49,6 +49,7 @@*/ /* For crc32 */ +#include "qemu/osdep.h" #include <zlib.h> #include "hw/hw.h"
hw/net/smc91c111.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the GPL */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "net/net.h" #include "hw/devices.h"
hw/net/vhost_net.c +1 -3
@@ -13,6 +13,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "net/net.h" #include "net/tap.h" #include "net/vhost-user.h"
@@ -21,19 +22,16 @@#include "net/vhost_net.h" #include "qemu/error-report.h" -#include "config.h" #ifdef CONFIG_VHOST_NET #include <linux/vhost.h> #include <sys/socket.h> #include <linux/kvm.h> -#include <fcntl.h> #include <netpacket/packet.h> #include <net/ethernet.h> #include <net/if.h> #include <netinet/in.h> -#include <stdio.h> #include "standard-headers/linux/virtio_ring.h" #include "hw/virtio/vhost.h"
hw/net/vmxnet3.c +1 -0
@@ -15,6 +15,7 @@* */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "net/net.h"
hw/net/vmxnet_rx_pkt.c +1 -0
@@ -15,6 +15,7 @@* */ +#include "qemu/osdep.h" #include "vmxnet_rx_pkt.h" #include "net/eth.h" #include "qemu-common.h"
hw/net/vmxnet_tx_pkt.c +1 -0
@@ -15,6 +15,7 @@* */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "vmxnet_tx_pkt.h" #include "net/eth.h"
hw/net/xilinx_axienet.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu/log.h" #include "net/net.h"
hw/net/xilinx_ethlite.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "net/net.h"
Signature · 1 line
1.9.1
PATCH 19/37 usb: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/usb/bus.c | 1 + hw/usb/ccid-card-emulated.c | 1 + hw/usb/ccid-card-passthru.c | 1 + hw/usb/combined-packet.c | 1 + hw/usb/core.c | 1 + hw/usb/desc-msos.c | 1 + hw/usb/desc.c | 2 +- hw/usb/dev-audio.c | 1 + hw/usb/dev-bluetooth.c | 1 + hw/usb/dev-hid.c | 1 + hw/usb/dev-hub.c | 1 + hw/usb/dev-mtp.c | 3 +-- hw/usb/dev-network.c | 1 + hw/usb/dev-serial.c | 1 + hw/usb/dev-smartcard-reader.c | 1 + hw/usb/dev-storage.c | 1 + hw/usb/dev-uas.c | 1 + hw/usb/dev-wacom.c | 1 + hw/usb/hcd-ehci-pci.c | 1 + hw/usb/hcd-ehci-sysbus.c | 1 + hw/usb/hcd-ehci.c | 1 + hw/usb/hcd-musb.c | 1 + hw/usb/hcd-ohci.c | 1 + hw/usb/hcd-uhci.c | 1 + hw/usb/hcd-xhci.c | 1 + hw/usb/host-legacy.c | 1 + hw/usb/host-libusb.c | 1 + hw/usb/host-stub.c | 1 + hw/usb/libhw.c | 1 + hw/usb/quirks.c | 1 + hw/usb/redirect.c | 1 + tests/usb-hcd-ehci-test.c | 4 +--- tests/usb-hcd-ohci-test.c | 3 +-- tests/usb-hcd-uhci-test.c | 3 +-- tests/usb-hcd-xhci-test.c | 3 +-- 35 files changed, 35 insertions(+), 12 deletions(-)
hw/usb/bus.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/usb.h" #include "hw/qdev.h"
hw/usb/ccid-card-emulated.c +1 -0
@@ -26,6 +26,7 @@* the db parameter. */ +#include "qemu/osdep.h" #include <eventt.h> #include <vevent.h> #include <vreader.h>
hw/usb/ccid-card-passthru.c +1 -0
@@ -8,6 +8,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "sysemu/char.h" #include "qemu/error-report.h" #include "qemu/sockets.h"
hw/usb/combined-packet.c +1 -0
@@ -19,6 +19,7 @@* You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/usb.h" #include "qemu/iov.h"
hw/usb/core.c +1 -0
@@ -23,6 +23,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/usb.h" #include "qemu/iov.h"
hw/usb/desc-msos.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/usb.h" #include "hw/usb/desc.h"
hw/usb/desc.c +1 -1
@@ -1,4 +1,4 @@ -#include <ctype.h> +#include "qemu/osdep.h" #include "hw/usb.h" #include "hw/usb/desc.h"
hw/usb/dev-audio.c +1 -0
@@ -29,6 +29,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/usb.h" #include "hw/usb/desc.h"
hw/usb/dev-bluetooth.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "hw/usb.h"
hw/usb/dev-hid.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "ui/console.h" #include "hw/usb.h"
hw/usb/dev-hub.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "trace.h" #include "hw/usb.h"
hw/usb/dev-mtp.c +1 -2
@@ -9,11 +9,10 @@* This code is licensed under the GPL v2 or later. */ +#include "qemu/osdep.h" #include <wchar.h> #include <dirent.h> -#include <unistd.h> -#include <sys/stat.h> #include <sys/statvfs.h> #ifdef __linux__#include <sys/inotify.h>
hw/usb/dev-network.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/usb.h" #include "hw/usb/desc.h"
hw/usb/dev-serial.c +1 -0
@@ -8,6 +8,7 @@* This code is licensed under the LGPL. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "hw/usb.h"
hw/usb/dev-smartcard-reader.c +1 -0
@@ -34,6 +34,7 @@* Not sure which messages trigger this. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "hw/usb.h"
hw/usb/dev-storage.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the LGPL. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/option.h"
hw/usb/dev-uas.c +1 -0
@@ -9,6 +9,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/option.h" #include "qemu/config-file.h"
hw/usb/dev-wacom.c +1 -0
@@ -25,6 +25,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "ui/console.h" #include "hw/usb.h"
hw/usb/hcd-ehci-pci.c +1 -0
@@ -15,6 +15,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/usb/hcd-ehci.h" #include "qemu/range.h"
hw/usb/hcd-ehci-sysbus.c +1 -0
@@ -15,6 +15,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/usb/hcd-ehci.h" static const VMStateDescription vmstate_ehci_sysbus = {
hw/usb/hcd-ehci.c +1 -0
@@ -27,6 +27,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/usb/ehci-regs.h" #include "hw/usb/hcd-ehci.h" #include "trace.h"
hw/usb/hcd-musb.c +1 -0
@@ -20,6 +20,7 @@* * Only host-mode and non-DMA accesses are currently supported. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/timer.h" #include "hw/usb.h"
hw/usb/hcd-ohci.c +1 -0
@@ -25,6 +25,7 @@* o BIOS work to boot from USB storage */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/timer.h" #include "hw/usb.h"
hw/usb/hcd-uhci.c +1 -0
@@ -25,6 +25,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/usb.h" #include "hw/usb/uhci-regs.h"
hw/usb/hcd-xhci.c +1 -0
@@ -18,6 +18,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/timer.h" #include "hw/usb.h"
hw/usb/host-legacy.c +1 -0
@@ -30,6 +30,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/usb.h" #include "hw/usb/host.h"
hw/usb/host-libusb.c +1 -0
@@ -33,6 +33,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include <poll.h> #include <libusb.h>
hw/usb/host-stub.c +1 -0
@@ -30,6 +30,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" #include "hw/usb.h"
hw/usb/libhw.c +1 -0
@@ -19,6 +19,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/hw.h" #include "hw/usb.h"
hw/usb/quirks.c +1 -0
@@ -12,6 +12,7 @@* (at your option) any later version. */ +#include "qemu/osdep.h" #include "quirks.h" #include "hw/usb.h"
hw/usb/redirect.c +1 -0
@@ -25,6 +25,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/timer.h" #include "sysemu/sysemu.h"
tests/usb-hcd-ehci-test.c +1 -3
@@ -7,12 +7,10 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include <glib.h> -#include <string.h> -#include <stdio.h> #include "libqtest.h" #include "libqos/pci-pc.h" -#include "qemu/osdep.h" #include "hw/usb/uhci-regs.h" #include "hw/usb/ehci-regs.h" #include "libqos/usb.h"
tests/usb-hcd-ohci-test.c +1 -2
@@ -7,10 +7,9 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include <glib.h> -#include <string.h> #include "libqtest.h" -#include "qemu/osdep.h" #include "libqos/usb.h"
tests/usb-hcd-uhci-test.c +1 -2
@@ -7,10 +7,9 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include <glib.h> -#include <string.h> #include "libqtest.h" -#include "qemu/osdep.h" #include "libqos/usb.h" #include "hw/usb/uhci-regs.h"
tests/usb-hcd-xhci-test.c +1 -2
@@ -7,10 +7,9 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include <glib.h> -#include <string.h> #include "libqtest.h" -#include "qemu/osdep.h" #include "libqos/usb.h"
Signature · 1 line
1.9.1
PATCH 20/37 hw/display: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/display/ads7846.c | 1 + hw/display/blizzard.c | 1 + hw/display/cg3.c | 1 + hw/display/cirrus_vga.c | 1 + hw/display/framebuffer.c | 1 + hw/display/g364fb.c | 1 + hw/display/jazz_led.c | 1 + hw/display/omap_dss.c | 1 + hw/display/omap_lcdc.c | 1 + hw/display/qxl-logger.c | 1 + hw/display/qxl-render.c | 1 + hw/display/qxl.c | 2 +- hw/display/sm501.c | 2 +- hw/display/ssd0303.c | 1 + hw/display/ssd0323.c | 1 + hw/display/tc6393xb.c | 1 + hw/display/tcx.c | 1 + hw/display/vga-isa-mm.c | 1 + hw/display/vga-isa.c | 1 + hw/display/vga-pci.c | 1 + hw/display/vga.c | 1 + hw/display/vmware_vga.c | 1 + 22 files changed, 22 insertions(+), 2 deletions(-)
hw/display/ads7846.c +1 -0
@@ -10,6 +10,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/ssi/ssi.h" #include "ui/console.h"
hw/display/blizzard.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" #include "hw/devices.h"
hw/display/cg3.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "ui/console.h"
hw/display/cirrus_vga.c +1 -0
@@ -26,6 +26,7 @@* Reference: Finn Thogersons' VGADOC4b * available at http://home.worldonline.dk/~finth/ */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "ui/console.h"
hw/display/framebuffer.c +1 -0
@@ -17,6 +17,7 @@- Remove all DisplayState knowledge from devices. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "ui/console.h" #include "framebuffer.h"
hw/display/g364fb.c +1 -0
@@ -17,6 +17,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/error-report.h" #include "ui/console.h"
hw/display/jazz_led.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" #include "ui/pixel_ops.h"
hw/display/omap_dss.c +1 -0
@@ -17,6 +17,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "ui/console.h" #include "hw/arm/omap.h"
hw/display/omap_lcdc.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "ui/console.h" #include "hw/arm/omap.h"
hw/display/qxl-logger.c +1 -0
@@ -19,6 +19,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu/timer.h" #include "qxl.h"
hw/display/qxl-render.c +1 -0
@@ -19,6 +19,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qxl.h" #include "trace.h"
hw/display/qxl.c +1 -1
@@ -18,8 +18,8 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include <zlib.h> -#include <stdint.h> #include "qemu-common.h" #include "qemu/timer.h"
hw/display/sm501.c +1 -1
@@ -22,7 +22,7 @@* THE SOFTWARE. */ -#include <stdio.h> +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/char/serial.h" #include "ui/console.h"
hw/display/ssd0303.c +1 -0
@@ -10,6 +10,7 @@/* The controller can support a variety of different displays, but we only implement one. Most of the commends relating to brightness and geometry setup are ignored. */ +#include "qemu/osdep.h" #include "hw/i2c/i2c.h" #include "ui/console.h"
hw/display/ssd0323.c +1 -0
@@ -10,6 +10,7 @@/* The controller can support a variety of different displays, but we only implement one. Most of the commends relating to brightness and geometry setup are ignored. */ +#include "qemu/osdep.h" #include "hw/ssi/ssi.h" #include "ui/console.h"
hw/display/tc6393xb.c +1 -0
@@ -10,6 +10,7 @@* Contributions after 2012-01-13 are licensed under the terms of the * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/devices.h" #include "hw/block/flash.h"
hw/display/tcx.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" #include "ui/pixel_ops.h"
hw/display/vga-isa-mm.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "ui/console.h" #include "hw/i386/pc.h"
hw/display/vga-isa.c +1 -0
@@ -23,6 +23,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "ui/console.h" #include "hw/i386/pc.h"
hw/display/vga-pci.c +1 -0
@@ -23,6 +23,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "ui/console.h" #include "hw/pci/pci.h"
hw/display/vga.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "vga.h" #include "ui/console.h"
hw/display/vmware_vga.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/loader.h" #include "trace.h"
Signature · 1 line
1.9.1
PATCH 21/37 hw/vfio: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/vfio/calxeda-xgmac.c | 1 + hw/vfio/common.c | 1 + hw/vfio/pci-quirks.c | 1 + hw/vfio/pci.c | 5 +---- hw/vfio/platform.c | 1 + 5 files changed, 5 insertions(+), 4 deletions(-)
hw/vfio/calxeda-xgmac.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "hw/vfio/vfio-calxeda-xgmac.h" static void calxeda_xgmac_realize (DeviceState *dev,Error **errp)
hw/vfio/common.c +1 -0
@@ -18,6 +18,7 @@* Copyright (C) 2008, IBM, Muli Ben-Yehuda ([email protected]) */ +#include "qemu/osdep.h" #include <sys/ioctl.h> #include <sys/mman.h> #include <linux/vfio.h>
hw/vfio/pci-quirks.c +1 -0
@@ -10,6 +10,7 @@* the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "pci.h" #include "trace.h" #include "qemu/range.h"
hw/vfio/pci.c +1 -4
@@ -18,14 +18,11 @@* Copyright (C) 2008, IBM, Muli Ben-Yehuda ([email protected]) */ +#include "qemu/osdep.h" #include <linux/vfio.h> #include <sys/ioctl.h> #include <sys/mman.h> -#include <sys/stat.h> -#include <sys/types.h> -#include <unistd.h> -#include "config.h" #include "hw/pci/msi.h" #include "hw/pci/msix.h" #include "hw/pci/pci_bridge.h"
hw/vfio/platform.c +1 -0
@@ -14,6 +14,7 @@* Copyright Red Hat, Inc. 2012 */ +#include "qemu/osdep.h" #include <sys/ioctl.h> #include <linux/vfio.h>
Signature · 1 line
1.9.1
PATCH 22/37 pci: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/misc/pci-testdev.c | 2 +- hw/pci-bridge/i82801b11.c | 1 + hw/pci-bridge/ioh3420.c | 1 + hw/pci-bridge/pci_bridge_dev.c | 1 + hw/pci-bridge/pci_expander_bridge.c | 1 + hw/pci-bridge/xio3130_downstream.c | 1 + hw/pci-bridge/xio3130_upstream.c | 1 + hw/pci-host/apb.c | 1 + hw/pci-host/bonito.c | 2 +- hw/pci-host/gpex.c | 1 + hw/pci-host/ppce500.c | 1 + hw/pci/msi.c | 1 + hw/pci/msix.c | 1 + hw/pci/pci-stub.c | 1 + hw/pci/pci.c | 1 + hw/pci/pci_bridge.c | 1 + hw/pci/pci_host.c | 1 + hw/pci/pcie.c | 1 + hw/pci/pcie_aer.c | 1 + hw/pci/pcie_host.c | 1 + hw/pci/pcie_port.c | 1 + hw/pci/shpc.c | 2 +- hw/pci/slotid_cap.c | 1 + 23 files changed, 23 insertions(+), 3 deletions(-)
hw/misc/pci-testdev.c +1 -1
@@ -17,10 +17,10 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "qemu/event_notifier.h" -#include "qemu/osdep.h" typedef struct PCITestDevHdr { uint8_t test;
hw/pci-bridge/i82801b11.c +1 -0
@@ -41,6 +41,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/> */ +#include "qemu/osdep.h" #include "hw/pci/pci.h" #include "hw/i386/ich9.h"
hw/pci-bridge/ioh3420.c +1 -0
@@ -20,6 +20,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/pci/pci_ids.h" #include "hw/pci/msi.h" #include "hw/pci/pcie.h"
hw/pci-bridge/pci_bridge_dev.c +1 -0
@@ -19,6 +19,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/pci/pci_bridge.h" #include "hw/pci/pci_ids.h" #include "hw/pci/msi.h"
hw/pci-bridge/pci_expander_bridge.c +1 -0
@@ -10,6 +10,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/pci/pci.h" #include "hw/pci/pci_bus.h" #include "hw/pci/pci_host.h"
hw/pci-bridge/xio3130_downstream.c +1 -0
@@ -19,6 +19,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/pci/pci_ids.h" #include "hw/pci/msi.h" #include "hw/pci/pcie.h"
hw/pci-bridge/xio3130_upstream.c +1 -0
@@ -19,6 +19,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/pci/pci_ids.h" #include "hw/pci/msi.h" #include "hw/pci/pcie.h"
hw/pci-host/apb.c +1 -0
@@ -27,6 +27,7 @@Ultrasparc PCI host is called the PCI Bus Module (PBM). The APB is the secondary PCI bridge. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/pci/pci.h" #include "hw/pci/pci_host.h"
hw/pci-host/bonito.c +1 -1
@@ -37,7 +37,7 @@* north bridge address to pci address. */ -#include <assert.h> +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h"
hw/pci-host/gpex.c +1 -0
@@ -28,6 +28,7 @@* http://www.kernel.org/doc/Documentation/devicetree/bindings/pci/host-generic-pci.txt * http://www.firmware.org/1275/practice/imap/imap0_9d.pdf */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci-host/gpex.h"
hw/pci-host/ppce500.c +1 -0
@@ -14,6 +14,7 @@* (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/e500-ccsr.h" #include "hw/pci/pci.h"
hw/pci/msi.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/pci/msi.h" #include "qemu/range.h"
hw/pci/msix.c +1 -0
@@ -14,6 +14,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/msi.h" #include "hw/pci/msix.h"
hw/pci/pci-stub.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "monitor/monitor.h" #include "qapi/qmp/qerror.h"
hw/pci/pci.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "hw/pci/pci_bridge.h"
hw/pci/pci_bridge.c +1 -0
@@ -29,6 +29,7 @@* VA Linux Systems Japan K.K. */ +#include "qemu/osdep.h" #include "hw/pci/pci_bridge.h" #include "hw/pci/pci_bus.h" #include "qemu/range.h"
hw/pci/pci_host.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/pci/pci.h" #include "hw/pci/pci_host.h" #include "hw/pci/pci_bus.h"
hw/pci/pcie.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/pci/pci_bridge.h" #include "hw/pci/pcie.h"
hw/pci/pcie_aer.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "qapi/qmp/types.h" #include "monitor/monitor.h"
hw/pci/pcie_host.c +1 -0
@@ -19,6 +19,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "hw/pci/pcie_host.h"
hw/pci/pcie_port.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/pci/pcie_port.h" #include "hw/hotplug.h"
hw/pci/shpc.c +1 -1
@@ -1,5 +1,5 @@ +#include "qemu/osdep.h" #include "qemu-common.h" -#include <stdint.h> #include "qemu/range.h" #include "qemu/error-report.h" #include "hw/pci/shpc.h"
hw/pci/slotid_cap.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/pci/slotid_cap.h" #include "hw/pci/pci.h" #include "qemu/error-report.h"
Signature · 1 line
1.9.1
PATCH 23/37 hw/scsi: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/scsi/esp-pci.c | 1 + hw/scsi/esp.c | 1 + hw/scsi/lsi53c895a.c | 2 +- hw/scsi/megasas.c | 1 + hw/scsi/scsi-bus.c | 1 + hw/scsi/scsi-disk.c | 1 + hw/scsi/scsi-generic.c | 5 +---- hw/scsi/vhost-scsi.c | 2 +- hw/scsi/vmw_pvscsi.c | 1 + 9 files changed, 9 insertions(+), 6 deletions(-)
hw/scsi/esp-pci.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/pci/pci.h" #include "hw/nvram/eeprom93xx.h" #include "hw/scsi/esp.h"
hw/scsi/esp.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/scsi/esp.h" #include "trace.h"
hw/scsi/lsi53c895a.c +1 -1
@@ -13,7 +13,7 @@* as well-behaved operating systems will not try to use them. */ -#include <assert.h> +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h"
hw/scsi/megasas.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "sysemu/dma.h"
hw/scsi/scsi-bus.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/error-report.h" #include "hw/scsi/scsi.h"
hw/scsi/scsi-disk.c +1 -0
@@ -28,6 +28,7 @@ do { printf("scsi-disk: " fmt , ## __VA_ARGS__); } while (0)#define DPRINTF (fmt, ...) do {} while(0)#endif +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "hw/scsi/scsi.h"
hw/scsi/scsi-generic.c +1 -4
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "hw/scsi/scsi.h"
@@ -31,10 +32,6 @@ do { printf("scsi-generic: " fmt , ## __VA_ARGS__); } while (0)#define BADF (fmt, ...) \ do { fprintf(stderr, "scsi-generic: " fmt , ## __VA_ARGS__); } while (0) -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> #include <scsi/sg.h> #include "block/scsi.h"
hw/scsi/vhost-scsi.c +1 -1
@@ -14,8 +14,8 @@* */ +#include "qemu/osdep.h" #include <sys/ioctl.h> -#include "config.h" #include "qemu/error-report.h" #include "qemu/queue.h" #include "monitor/monitor.h"
hw/scsi/vmw_pvscsi.c +1 -0
@@ -25,6 +25,7 @@* */ +#include "qemu/osdep.h" #include "hw/scsi/scsi.h" #include <block/scsi.h> #include "hw/pci/msi.h"
Signature · 1 line
1.9.1
PATCH 24/37 hw/misc: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/misc/applesmc.c | 1 + hw/misc/arm_integrator_debug.c | 1 + hw/misc/arm_l2x0.c | 1 + hw/misc/arm_sysctl.c | 1 + hw/misc/cbus.c | 1 + hw/misc/eccmemctl.c | 1 + hw/misc/edu.c | 1 + hw/misc/hyperv_testdev.c | 1 + hw/misc/ivshmem.c | 3 +-- hw/misc/max111x.c | 1 + hw/misc/mst_fpga.c | 1 + hw/misc/omap_clk.c | 1 + hw/misc/omap_gpmc.c | 1 + hw/misc/omap_l4.c | 1 + hw/misc/omap_sdrc.c | 1 + hw/misc/omap_tap.c | 1 + hw/misc/pvpanic.c | 1 + hw/misc/slavio_misc.c | 1 + hw/misc/stm32f2xx_syscfg.c | 1 + hw/misc/tmp105.c | 1 + hw/misc/vmport.c | 1 + hw/misc/zynq-xadc.c | 1 + 22 files changed, 22 insertions(+), 2 deletions(-)
hw/misc/applesmc.c +1 -0
@@ -30,6 +30,7 @@* */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/isa/isa.h" #include "ui/console.h"
hw/misc/arm_integrator_debug.c +1 -0
@@ -14,6 +14,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "exec/address-spaces.h"
hw/misc/arm_l2x0.c +1 -0
@@ -18,6 +18,7 @@* */ +#include "qemu/osdep.h" #include "hw/sysbus.h" /* L2C-310 r3p2 */
hw/misc/arm_sysctl.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/timer.h" #include "qemu/bitops.h"
hw/misc/cbus.c +1 -0
@@ -20,6 +20,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/irq.h" #include "hw/devices.h"
hw/misc/eccmemctl.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "trace.h"
hw/misc/edu.c +1 -0
@@ -22,6 +22,7 @@* DEALINGS IN THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/pci/pci.h" #include "qemu/timer.h" #include "qemu/main-loop.h" /* iothread mutex */
hw/misc/hyperv_testdev.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/qdev.h" #include "hw/isa/isa.h"
hw/misc/ivshmem.c +1 -2
@@ -16,6 +16,7 @@* Contributions after 2012-01-13 are licensed under the terms of the * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/pci/pci.h"
@@ -34,8 +35,6 @@#include "hw/misc/ivshmem.h" #include <sys/mman.h> -#include <sys/types.h> -#include <limits.h> #define PCI_VENDOR_ID_IVSHMEM PCI_VENDOR_ID_REDHAT_QUMRANET#define PCI_DEVICE_ID_IVSHMEM 0x1110
hw/misc/max111x.c +1 -0
@@ -10,6 +10,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/ssi/ssi.h" typedef struct {
hw/misc/mst_fpga.c +1 -0
@@ -10,6 +10,7 @@* Contributions after 2012-01-13 are licensed under the terms of the * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h"
hw/misc/omap_clk.c +1 -0
@@ -18,6 +18,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/arm/omap.h"
hw/misc/omap_gpmc.c +1 -0
@@ -18,6 +18,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/block/flash.h" #include "hw/arm/omap.h"
hw/misc/omap_l4.c +1 -0
@@ -17,6 +17,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/arm/omap.h"
hw/misc/omap_sdrc.c +1 -0
@@ -17,6 +17,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/arm/omap.h"
hw/misc/omap_tap.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/arm/omap.h"
hw/misc/pvpanic.c +1 -0
@@ -12,6 +12,7 @@* */ +#include "qemu/osdep.h" #include "qapi/qmp/qobject.h" #include "qapi/qmp/qjson.h" #include "sysemu/sysemu.h"
hw/misc/slavio_misc.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "hw/sysbus.h" #include "trace.h"
hw/misc/stm32f2xx_syscfg.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/misc/stm32f2xx_syscfg.h" #ifndef STM_SYSCFG_ERR_DEBUG
hw/misc/tmp105.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i2c/i2c.h" #include "tmp105.h"
hw/misc/vmport.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/isa/isa.h" #include "hw/i386/pc.h"
hw/misc/zynq-xadc.c +1 -0
@@ -13,6 +13,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/misc/zynq-xadc.h" #include "qemu/timer.h"
Signature · 1 line
1.9.1
PATCH 25/37 hw/timer: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/timer/ds1338.c | 1 + hw/timer/etraxfs_timer.c | 1 + hw/timer/m48t59.c | 1 + hw/timer/omap_gptimer.c | 1 + hw/timer/omap_synctimer.c | 1 + hw/timer/sh_timer.c | 1 + hw/timer/slavio_timer.c | 1 + hw/timer/stm32f2xx_timer.c | 1 + hw/timer/tusb6010.c | 1 + hw/timer/twl92230.c | 1 + hw/timer/xilinx_timer.c | 1 + 11 files changed, 11 insertions(+)
hw/timer/ds1338.c +1 -0
@@ -10,6 +10,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/i2c/i2c.h" /* Size of NVRAM including both the user-accessible area and the
hw/timer/etraxfs_timer.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "sysemu/sysemu.h" #include "qemu/timer.h"
hw/timer/m48t59.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/timer/m48t59.h" #include "qemu/timer.h"
hw/timer/omap_gptimer.c +1 -0
@@ -17,6 +17,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/timer.h" #include "hw/arm/omap.h"
hw/timer/omap_synctimer.c +1 -0
@@ -17,6 +17,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/timer.h" #include "hw/arm/omap.h"
hw/timer/sh_timer.c +1 -0
@@ -8,6 +8,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sh4/sh.h" #include "qemu/timer.h"
hw/timer/slavio_timer.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sparc/sun4m.h" #include "qemu/timer.h" #include "hw/ptimer.h"
hw/timer/stm32f2xx_timer.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/timer/stm32f2xx_timer.h" #ifndef STM_TIMER_ERR_DEBUG
hw/timer/tusb6010.c +1 -0
@@ -18,6 +18,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/timer.h" #include "hw/usb.h"
hw/timer/twl92230.c +1 -0
@@ -19,6 +19,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/timer.h" #include "hw/i2c/i2c.h"
hw/timer/xilinx_timer.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/ptimer.h" #include "qemu/log.h"
Signature · 1 line
1.9.1
PATCH 26/37 hw/intc: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/intc/etraxfs_pic.c | 1 + hw/intc/heathrow_pic.c | 1 + hw/intc/i8259.c | 1 + hw/intc/i8259_common.c | 1 + hw/intc/omap_intc.c | 1 + hw/intc/openpic.c | 1 + hw/intc/openpic_kvm.c | 1 + hw/intc/s390_flic.c | 1 + hw/intc/s390_flic_kvm.c | 1 + hw/intc/sh_intc.c | 1 + hw/intc/slavio_intctl.c | 1 + hw/intc/xilinx_intc.c | 1 + 12 files changed, 12 insertions(+)
hw/intc/etraxfs_pic.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/hw.h" //#include "pc.h"
hw/intc/heathrow_pic.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/mac.h"
hw/intc/i8259.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/isa/isa.h"
hw/intc/i8259_common.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/i386/pc.h" #include "hw/isa/i8259_internal.h"
hw/intc/omap_intc.c +1 -0
@@ -17,6 +17,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/arm/omap.h" #include "hw/sysbus.h"
hw/intc/openpic.c +1 -0
@@ -33,6 +33,7 @@* Serial interrupts, as implemented in Raven chipset are not supported yet. * */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ppc/mac.h" #include "hw/pci/pci.h"
hw/intc/openpic_kvm.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include <sys/ioctl.h> #include "exec/address-spaces.h" #include "hw/hw.h"
hw/intc/s390_flic.c +1 -0
@@ -10,6 +10,7 @@* directory. */ +#include "qemu/osdep.h" #include "qemu/error-report.h" #include "hw/sysbus.h" #include "migration/qemu-file.h"
hw/intc/s390_flic_kvm.c +1 -0
@@ -10,6 +10,7 @@* directory. */ +#include "qemu/osdep.h" #include <sys/ioctl.h> #include "qemu/error-report.h" #include "hw/sysbus.h"
hw/intc/sh_intc.c +1 -0
@@ -8,6 +8,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/sh4/sh_intc.h" #include "hw/hw.h" #include "hw/sh4/sh.h"
hw/intc/slavio_intctl.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sparc/sun4m.h" #include "monitor/monitor.h" #include "hw/sysbus.h"
hw/intc/xilinx_intc.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/hw.h"
Signature · 1 line
1.9.1
PATCH 27/37 sh4: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- disas/sh4.c | 2 +- hw/sh4/r2d.c | 1 + hw/sh4/sh7750.c | 2 +- hw/sh4/sh7750_regnames.c | 1 + hw/sh4/sh_pci.c | 1 + hw/sh4/shix.c | 1 + target-sh4/cpu.c | 1 + target-sh4/gdbstub.c | 2 +- target-sh4/helper.c | 6 +----- target-sh4/monitor.c | 1 + target-sh4/op_helper.c | 2 +- target-sh4/translate.c | 1 + 12 files changed, 12 insertions(+), 9 deletions(-)
disas/sh4.c +1 -1
@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdio.h> +#include "qemu/osdep.h" #include "disas/bfd.h" #define DEFINE_TABLE
hw/sh4/r2d.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "hw/sh4/sh.h"
hw/sh4/sh7750.c +1 -1
@@ -22,7 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#include <stdio.h> +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sh4/sh.h" #include "sysemu/sysemu.h"
hw/sh4/sh7750_regnames.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sh4/sh.h" #include "sh7750_regs.h"
hw/sh4/sh_pci.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/sh4/sh.h" #include "hw/pci/pci.h"
hw/sh4/shix.c +1 -0
@@ -27,6 +27,7 @@More information in target-sh4/README.sh4 */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sh4/sh.h" #include "sysemu/sysemu.h"
target-sh4/cpu.c +1 -0
@@ -19,6 +19,7 @@* <http://www.gnu.org/licenses/lgpl-2.1.html> */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "migration/vmstate.h"
target-sh4/gdbstub.c +1 -1
@@ -17,7 +17,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/gdbstub.h"
target-sh4/helper.c +1 -5
@@ -16,11 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdarg.h> -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <inttypes.h> +#include "qemu/osdep.h" #include "cpu.h"
target-sh4/monitor.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "cpu.h" #include "monitor/monitor.h" #include "monitor/hmp-target.h"
target-sh4/op_helper.c +1 -1
@@ -16,7 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdlib.h> +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h"
target-sh4/translate.c +1 -0
@@ -19,6 +19,7 @@#define DEBUG_DISAS +#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" #include "tcg-op.h"
Signature · 1 line
1.9.1
PATCH 28/37 xtensa: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/xtensa/pic_cpu.c | 1 + hw/xtensa/sim.c | 1 + hw/xtensa/xtfpga.c | 1 + target-xtensa/core-dc232b.c | 1 + target-xtensa/core-dc233c.c | 1 + target-xtensa/core-fsf.c | 1 + target-xtensa/cpu.c | 1 + target-xtensa/gdbstub.c | 2 +- target-xtensa/helper.c | 1 + target-xtensa/monitor.c | 1 + target-xtensa/op_helper.c | 1 + target-xtensa/translate.c | 2 +- target-xtensa/xtensa-semi.c | 5 +---- 13 files changed, 13 insertions(+), 6 deletions(-)
hw/xtensa/pic_cpu.c +1 -0
@@ -25,6 +25,7 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/log.h" #include "qemu/timer.h"
hw/xtensa/sim.c +1 -0
@@ -25,6 +25,7 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "hw/boards.h" #include "hw/loader.h"
hw/xtensa/xtfpga.c +1 -0
@@ -25,6 +25,7 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "hw/boards.h" #include "hw/loader.h"
target-xtensa/core-dc232b.c +1 -0
@@ -25,6 +25,7 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" #include "exec/gdbstub.h"
target-xtensa/core-dc233c.c +1 -0
@@ -25,6 +25,7 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" #include "exec/gdbstub.h"
target-xtensa/core-fsf.c +1 -0
@@ -25,6 +25,7 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" #include "exec/gdbstub.h"
target-xtensa/cpu.c +1 -0
@@ -28,6 +28,7 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "migration/vmstate.h"
target-xtensa/gdbstub.c +1 -1
@@ -17,7 +17,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/gdbstub.h"
target-xtensa/helper.c +1 -0
@@ -25,6 +25,7 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" #include "exec/gdbstub.h"
target-xtensa/monitor.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "cpu.h" #include "monitor/monitor.h" #include "monitor/hmp-target.h"
target-xtensa/op_helper.c +1 -0
@@ -25,6 +25,7 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h"
target-xtensa/translate.c +1 -1
@@ -28,7 +28,7 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <stdio.h> +#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h"
target-xtensa/xtensa-semi.c +1 -4
@@ -25,10 +25,7 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <errno.h> -#include <unistd.h> -#include <string.h> -#include <stddef.h> +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/log.h"
Signature · 1 line
1.9.1
PATCH 29/37 openrisc: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/openrisc/cputimer.c | 1 + hw/openrisc/openrisc_sim.c | 1 + hw/openrisc/pic_cpu.c | 1 + target-openrisc/cpu.c | 1 + target-openrisc/exception.c | 1 + target-openrisc/exception_helper.c | 1 + target-openrisc/fpu_helper.c | 1 + target-openrisc/gdbstub.c | 2 +- target-openrisc/int_helper.c | 1 + target-openrisc/interrupt.c | 1 + target-openrisc/interrupt_helper.c | 1 + target-openrisc/machine.c | 1 + target-openrisc/mmu.c | 1 + target-openrisc/mmu_helper.c | 1 + target-openrisc/sys_helper.c | 1 + target-openrisc/translate.c | 2 +- 16 files changed, 16 insertions(+), 2 deletions(-)
hw/openrisc/cputimer.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "hw/hw.h" #include "qemu/timer.h"
hw/openrisc/openrisc_sim.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/boards.h" #include "elf.h"
hw/openrisc/pic_cpu.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "cpu.h"
target-openrisc/cpu.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h"
target-openrisc/exception.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exception.h"
target-openrisc/exception_helper.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exception.h"
target-openrisc/fpu_helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exception.h"
target-openrisc/gdbstub.c +1 -1
@@ -17,7 +17,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/gdbstub.h"
target-openrisc/int_helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exception.h"
target-openrisc/interrupt.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "exec/gdbstub.h"
target-openrisc/interrupt_helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h"
target-openrisc/machine.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/boards.h"
target-openrisc/mmu.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "exec/gdbstub.h"
target-openrisc/mmu_helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/cpu_ldst.h"
target-openrisc/sys_helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h"
target-openrisc/translate.c +1 -1
@@ -18,13 +18,13 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" #include "disas/disas.h" #include "tcg-op.h" #include "qemu-common.h" #include "qemu/log.h" -#include "config.h" #include "qemu/bitops.h" #include "exec/cpu_ldst.h"
Signature · 1 line
1.9.1
PATCH 30/37 m68k: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/m68k/an5206.c | 1 + hw/m68k/dummy_m68k.c | 1 + hw/m68k/mcf5206.c | 1 + hw/m68k/mcf5208.c | 1 + hw/m68k/mcf_intc.c | 1 + target-m68k/cpu.c | 1 + target-m68k/gdbstub.c | 2 +- target-m68k/helper.c | 1 + target-m68k/m68k-semi.c | 10 +--------- target-m68k/op_helper.c | 1 + target-m68k/translate.c | 1 + 11 files changed, 11 insertions(+), 10 deletions(-)
hw/m68k/an5206.c +1 -0
@@ -6,6 +6,7 @@* This code is licensed under the GPL */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/m68k/mcf.h" #include "hw/boards.h"
hw/m68k/dummy_m68k.c +1 -0
@@ -6,6 +6,7 @@* This code is licensed under the GPL */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/boards.h" #include "hw/loader.h"
hw/m68k/mcf5206.c +1 -0
@@ -5,6 +5,7 @@* * This code is licensed under the GPL */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/m68k/mcf.h" #include "qemu/timer.h"
hw/m68k/mcf5208.c +1 -0
@@ -5,6 +5,7 @@* * This code is licensed under the GPL */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/m68k/mcf.h" #include "qemu/timer.h"
hw/m68k/mcf_intc.c +1 -0
@@ -5,6 +5,7 @@* * This code is licensed under the GPL */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/m68k/mcf.h" #include "exec/address-spaces.h"
target-m68k/cpu.c +1 -0
@@ -18,6 +18,7 @@* <http://www.gnu.org/licenses/lgpl-2.1.html> */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "migration/vmstate.h"
target-m68k/gdbstub.c +1 -1
@@ -17,7 +17,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/gdbstub.h"
target-m68k/helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/gdbstub.h"
target-m68k/m68k-semi.c +1 -9
@@ -17,15 +17,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <sys/types.h> -#include <sys/stat.h> -#include <errno.h> -#include <fcntl.h> -#include <unistd.h> -#include <stdlib.h> -#include <stdio.h> -#include <sys/time.h> -#include <time.h> +#include "qemu/osdep.h" #include "cpu.h" #if defined(CONFIG_USER_ONLY )
target-m68k/op_helper.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h"
target-m68k/translate.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" #include "tcg-op.h"
Signature · 1 line
1.9.1
PATCH 31/37 cris: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- disas/cris.c | 1 + hw/cris/axis_dev88.c | 1 + hw/cris/boot.c | 1 + target-cris/cpu.c | 1 + target-cris/gdbstub.c | 2 +- target-cris/helper.c | 1 + target-cris/machine.c | 1 + target-cris/op_helper.c | 1 + target-cris/translate.c | 1 + target-cris/translate_v10.c | 1 + 10 files changed, 10 insertions(+), 1 deletion(-)
disas/cris.c +1 -0
@@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "disas/bfd.h" //#include "sysdep.h"
hw/cris/axis_dev88.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "net/net.h" #include "hw/block/flash.h"
hw/cris/boot.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/loader.h" #include "elf.h"
target-cris/cpu.c +1 -0
@@ -21,6 +21,7 @@* <http://www.gnu.org/licenses/lgpl-2.1.html> */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "mmu.h"
target-cris/gdbstub.c +1 -1
@@ -17,7 +17,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/gdbstub.h"
target-cris/helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "mmu.h" #include "qemu/host-utils.h"
target-cris/machine.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" static const VMStateDescription vmstate_tlbset = {
target-cris/op_helper.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "mmu.h" #include "exec/helper-proto.h"
target-cris/translate.c +1 -0
@@ -23,6 +23,7 @@* The condition code translation is in need of attention. */ +#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" #include "tcg-op.h"
target-cris/translate_v10.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "crisv10-decode.h" static const char *regnames_v10[] =
Signature · 1 line
1.9.1
PATCH 32/37 moxie: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- disas/moxie.c | 2 +- hw/moxie/moxiesim.c | 1 + target-moxie/cpu.c | 1 + target-moxie/helper.c | 4 +--- target-moxie/machine.c | 1 + target-moxie/mmu.c | 5 +---- target-moxie/translate.c | 6 +----- 7 files changed, 7 insertions(+), 13 deletions(-)
disas/moxie.c +1 -1
@@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdio.h> +#include "qemu/osdep.h" #define STATIC_TABLE #define DEFINE_TABLE
hw/moxie/moxiesim.c +1 -0
@@ -24,6 +24,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "hw/i386/pc.h"
target-moxie/cpu.c +1 -0
@@ -17,6 +17,7 @@* along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "migration/vmstate.h"
target-moxie/helper.c +1 -3
@@ -17,10 +17,8 @@* along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <stdio.h> -#include <string.h> +#include "qemu/osdep.h" -#include "config.h" #include "cpu.h" #include "mmu.h" #include "exec/exec-all.h"
target-moxie/machine.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/boards.h" #include "machine.h"
target-moxie/mmu.c +1 -4
@@ -17,11 +17,8 @@* along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <stdio.h> -#include <string.h> -#include <stdlib.h> +#include "qemu/osdep.h" -#include "config.h" #include "cpu.h" #include "mmu.h" #include "exec/exec-all.h"
target-moxie/translate.c +1 -5
@@ -21,11 +21,7 @@* http://moxielogic.org/wiki */ -#include <stdarg.h> -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <inttypes.h> +#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h"
Signature · 1 line
1.9.1
PATCH 33/37 tricore: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/tricore/tricore_testboard.c | 1 + target-tricore/cpu.c | 1 + target-tricore/helper.c | 6 +----- target-tricore/op_helper.c | 2 +- target-tricore/translate.c | 1 + 5 files changed, 5 insertions(+), 6 deletions(-)
hw/tricore/tricore_testboard.c +1 -0
@@ -18,6 +18,7 @@*/ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/devices.h" #include "net/net.h"
target-tricore/cpu.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h"
target-tricore/helper.c +1 -5
@@ -15,11 +15,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdarg.h> -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <inttypes.h> +#include "qemu/osdep.h" #include "cpu.h"
target-tricore/op_helper.c +1 -1
@@ -14,7 +14,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdlib.h> +#include "qemu/osdep.h" #include "cpu.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h"
target-tricore/translate.c +1 -0
@@ -18,6 +18,7 @@*/ +#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" #include "tcg-op.h"
Signature · 1 line
1.9.1
PATCH 34/37 tilegx: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- target-tilegx/cpu.c | 1 + target-tilegx/helper.c | 1 + target-tilegx/simd_helper.c | 1 + target-tilegx/translate.c | 1 + 4 files changed, 4 insertions(+)
target-tilegx/cpu.c +1 -0
@@ -18,6 +18,7 @@* <http://www.gnu.org/licenses/lgpl-2.1.html> */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "hw/qdev-properties.h"
target-tilegx/helper.c +1 -0
@@ -18,6 +18,7 @@* <http://www.gnu.org/licenses/lgpl-2.1.html> */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "exec/helper-proto.h"
target-tilegx/simd_helper.c +1 -0
@@ -18,6 +18,7 @@* <http://www.gnu.org/licenses/lgpl-2.1.html> */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "exec/helper-proto.h"
target-tilegx/translate.c +1 -0
@@ -18,6 +18,7 @@* <http://www.gnu.org/licenses/lgpl-2.1.html> */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu/log.h" #include "disas/disas.h"
Signature · 1 line
1.9.1
PATCH 35/37 arm devices: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/char/omap_uart.c | 1 + hw/char/stm32f2xx_usart.c | 1 + hw/char/xilinx_uartlite.c | 1 + hw/cpu/a9mpcore.c | 1 + hw/cpu/arm11mpcore.c | 1 + hw/cpu/realview_mpcore.c | 1 + hw/dma/omap_dma.c | 1 + hw/dma/xilinx_axidma.c | 1 + hw/gpio/omap_gpio.c | 1 + hw/gpio/zaurus.c | 1 + hw/i2c/omap_i2c.c | 1 + hw/input/tsc2005.c | 1 + hw/input/tsc210x.c | 1 + hw/sd/omap_mmc.c | 1 + hw/ssi/omap_spi.c | 1 + hw/ssi/pl022.c | 1 + 16 files changed, 16 insertions(+)
hw/char/omap_uart.c +1 -0
@@ -17,6 +17,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "sysemu/char.h" #include "hw/hw.h" #include "hw/arm/omap.h"
hw/char/stm32f2xx_usart.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/char/stm32f2xx_usart.h" #ifndef STM_USART_ERR_DEBUG
hw/char/xilinx_uartlite.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "sysemu/char.h"
hw/cpu/a9mpcore.c +1 -0
@@ -8,6 +8,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/cpu/a9mpcore.h" static void a9mp_priv_set_irq (void *opaque,int irq,int level)
hw/cpu/arm11mpcore.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/cpu/arm11mpcore.h" #include "hw/intc/realview_gic.h"
hw/cpu/realview_mpcore.c +1 -0
@@ -8,6 +8,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/cpu/arm11mpcore.h" #include "hw/intc/realview_gic.h"
hw/dma/omap_dma.c +1 -0
@@ -17,6 +17,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/timer.h" #include "hw/arm/omap.h"
hw/dma/xilinx_axidma.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "qemu/timer.h" #include "hw/ptimer.h"
hw/gpio/omap_gpio.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/arm/omap.h" #include "hw/sysbus.h"
hw/gpio/zaurus.c +1 -0
@@ -15,6 +15,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/arm/sharpsl.h" #include "hw/sysbus.h"
hw/i2c/omap_i2c.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i2c/i2c.h" #include "hw/arm/omap.h"
hw/input/tsc2005.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/timer.h" #include "ui/console.h"
hw/input/tsc210x.c +1 -0
@@ -19,6 +19,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "audio/audio.h" #include "qemu/timer.h"
hw/sd/omap_mmc.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/arm/omap.h" #include "hw/sd/sd.h"
hw/ssi/omap_spi.c +1 -0
@@ -19,6 +19,7 @@* with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/arm/omap.h"
hw/ssi/pl022.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the GPL. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/ssi/ssi.h"
Signature · 1 line
1.9.1
PATCH 36/37 hw/core: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/core/empty_slot.c | 1 + hw/core/fw-path-provider.c | 1 + hw/core/hotplug.c | 1 + hw/core/irq.c | 1 + hw/core/loader.c | 1 + hw/core/machine.c | 1 + hw/core/nmi.c | 1 + hw/core/null-machine.c | 1 + hw/core/platform-bus.c | 1 + hw/core/ptimer.c | 1 + hw/core/qdev-properties-system.c | 1 + hw/core/qdev-properties.c | 1 + hw/core/qdev.c | 2 +- hw/core/stream.c | 1 + hw/core/sysbus.c | 1 + 15 files changed, 15 insertions(+), 1 deletion(-)
hw/core/empty_slot.c +1 -0
@@ -9,6 +9,7 @@* version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "hw/empty_slot.h"
hw/core/fw-path-provider.c +1 -0
@@ -15,6 +15,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/fw-path-provider.h" char *fw_path_provider_get_dev_path(FWPathProvider *p, BusState *bus,
hw/core/hotplug.c +1 -0
@@ -9,6 +9,7 @@* This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/hotplug.h" #include "qemu/module.h"
hw/core/irq.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/irq.h" #include "qom/object.h"
hw/core/loader.c +1 -0
@@ -42,6 +42,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "disas/disas.h" #include "monitor/monitor.h"
hw/core/machine.c +1 -0
@@ -10,6 +10,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "hw/boards.h" #include "qapi-visit.h" #include "qapi/visitor.h"
hw/core/nmi.c +1 -0
@@ -19,6 +19,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/nmi.h" #include "qapi/qmp/qerror.h" #include "monitor/monitor.h"
hw/core/null-machine.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/hw.h" #include "hw/boards.h"
hw/core/platform-bus.c +1 -0
@@ -19,6 +19,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/platform-bus.h" #include "exec/address-spaces.h" #include "qemu/error-report.h"
hw/core/ptimer.c +1 -0
@@ -5,6 +5,7 @@* * This code is licensed under the GNU LGPL. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/timer.h" #include "hw/ptimer.h"
hw/core/qdev-properties-system.c +1 -0
@@ -10,6 +10,7 @@* See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "net/net.h" #include "hw/qdev.h" #include "qapi/qmp/qerror.h"
hw/core/qdev-properties.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "net/net.h" #include "hw/qdev.h" #include "qapi/qmp/qerror.h"
hw/core/qdev.c +1 -1
@@ -25,10 +25,10 @@inherit from a particular bus (e.g. PCI or I2C) rather than this API directly. */ +#include "qemu/osdep.h" #include "hw/qdev.h" #include "hw/fw-path-provider.h" #include "sysemu/sysemu.h" -#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "qapi/visitor.h" #include "qapi/qmp/qjson.h"
hw/core/stream.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/stream.h" size_t
hw/core/sysbus.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "monitor/monitor.h" #include "exec/address-spaces.h"
Signature · 1 line
1.9.1
PATCH 37/37 hw: Clean up includes
In reply to Peter MaydellClean up includes so that osdep.h is included first and headers which it implies are not included manually.
This commit was created with scripts/clean-includes.
--- hw/bt/core.c | 1 + hw/bt/hci-csr.c | 1 + hw/bt/hci.c | 1 + hw/bt/hid.c | 1 + hw/bt/l2cap.c | 1 + hw/bt/sdp.c | 1 + hw/char/escc.c | 1 + hw/char/etraxfs_ser.c | 1 + hw/char/ipoctal232.c | 1 + hw/char/mcf_uart.c | 1 + hw/char/sh_serial.c | 1 + hw/cpu/a15mpcore.c | 1 + hw/dma/etraxfs_dma.c | 3 +-- hw/dma/i82374.c | 1 + hw/dma/rc4030.c | 1 + hw/dma/soc_dma.c | 1 + hw/dma/sparc32_dma.c | 1 + hw/dma/sun4m_iommu.c | 1 + hw/gpio/max7310.c | 1 + hw/gpio/mpc8xxx.c | 1 + hw/i2c/bitbang_i2c.c | 1 + hw/i2c/core.c | 1 + hw/i2c/smbus.c | 1 + hw/i2c/smbus_eeprom.c | 1 + hw/input/adb.c | 1 + hw/input/hid.c | 1 + hw/input/lm832x.c | 1 + hw/input/pckbd.c | 1 + hw/input/ps2.c | 1 + hw/input/vmmouse.c | 1 + hw/ipack/ipack.c | 1 + hw/ipack/tpci200.c | 2 +- hw/ipmi/ipmi.c | 1 + hw/ipmi/ipmi_bmc_extern.c | 2 +- hw/ipmi/ipmi_bmc_sim.c | 4 +--- hw/ipmi/isa_ipmi_bt.c | 1 + hw/ipmi/isa_ipmi_kcs.c | 1 + hw/isa/apm.c | 1 + hw/isa/i82378.c | 1 + hw/isa/isa-bus.c | 1 + hw/isa/vt82c686.c | 1 + hw/mem/nvdimm.c | 1 + hw/mem/pc-dimm.c | 1 + hw/nvram/ds1225y.c | 1 + hw/nvram/eeprom93xx.c | 1 + hw/nvram/fw_cfg.c | 1 + hw/nvram/mac_nvram.c | 1 + hw/pcmcia/pcmcia.c | 1 + hw/sd/sd.c | 1 + hw/sd/sdhci.c | 2 +- hw/sd/ssi-sd.c | 1 + hw/smbios/smbios.c | 1 + hw/ssi/ssi.c | 1 + hw/tpm/tpm_passthrough.c | 2 +- hw/tpm/tpm_tis.c | 1 + hw/tpm/tpm_util.c | 1 + hw/watchdog/watchdog.c | 1 + hw/watchdog/wdt_i6300esb.c | 2 +- hw/watchdog/wdt_ib700.c | 1 + 59 files changed, 59 insertions(+), 10 deletions(-)
hw/bt/core.c +1 -0
@@ -17,6 +17,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "sysemu/bt.h" #include "hw/bt.h"
hw/bt/hci-csr.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "sysemu/char.h" #include "qemu/timer.h"
hw/bt/hci.c +1 -0
@@ -18,6 +18,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/timer.h" #include "hw/usb.h"
hw/bt/hid.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/timer.h" #include "ui/console.h"
hw/bt/l2cap.c +1 -0
@@ -17,6 +17,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/timer.h" #include "hw/bt.h"
hw/bt/sdp.c +1 -0
@@ -17,6 +17,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/bt.h"
hw/char/escc.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "hw/char/escc.h"
hw/char/etraxfs_ser.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "sysemu/char.h" #include "qemu/log.h"
hw/char/ipoctal232.c +1 -0
@@ -8,6 +8,7 @@* later version. */ +#include "qemu/osdep.h" #include "hw/ipack/ipack.h" #include "qemu/bitops.h" #include "sysemu/char.h"
hw/char/mcf_uart.c +1 -0
@@ -5,6 +5,7 @@* * This code is licensed under the GPL */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/m68k/mcf.h" #include "sysemu/char.h"
hw/char/sh_serial.c +1 -0
@@ -24,6 +24,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sh4/sh.h" #include "sysemu/char.h"
hw/cpu/a15mpcore.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/cpu/a15mpcore.h" #include "sysemu/kvm.h" #include "kvm_arm.h"
hw/dma/etraxfs_dma.c +1 -2
@@ -21,8 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#include <stdio.h> -#include <sys/time.h> +#include "qemu/osdep.h" #include "hw/hw.h" #include "exec/address-spaces.h" #include "qemu-common.h"
hw/dma/i82374.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/isa/isa.h" //#define DEBUG_I82374
hw/dma/rc4030.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/mips/mips.h" #include "hw/sysbus.h"
hw/dma/soc_dma.c +1 -0
@@ -17,6 +17,7 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/timer.h" #include "hw/arm/soc_dma.h"
hw/dma/sparc32_dma.c +1 -0
@@ -25,6 +25,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sparc/sparc32_dma.h" #include "hw/sparc/sun4m.h"
hw/dma/sun4m_iommu.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sparc/sun4m.h" #include "hw/sysbus.h" #include "exec/address-spaces.h"
hw/gpio/max7310.c +1 -0
@@ -7,6 +7,7 @@* This file is licensed under GNU GPL. */ +#include "qemu/osdep.h" #include "hw/i2c/i2c.h" #define TYPE_MAX7310 "max7310"
hw/gpio/mpc8xxx.c +1 -0
@@ -19,6 +19,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #define TYPE_MPC8XXX_GPIO "mpc8xxx_gpio"
hw/i2c/bitbang_i2c.c +1 -0
@@ -9,6 +9,7 @@* Contributions after 2012-01-13 are licensed under the terms of the * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "bitbang_i2c.h" #include "hw/sysbus.h"
hw/i2c/core.c +1 -0
@@ -7,6 +7,7 @@* This code is licensed under the LGPL. */ +#include "qemu/osdep.h" #include "hw/i2c/i2c.h" struct I2CBus
hw/i2c/smbus.c +1 -0
@@ -9,6 +9,7 @@/* TODO: Implement PEC. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i2c/i2c.h" #include "hw/i2c/smbus.h"
hw/i2c/smbus_eeprom.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i2c/i2c.h" #include "hw/i2c/smbus.h"
hw/input/adb.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/input/adb.h" #include "ui/console.h"
hw/input/hid.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "ui/console.h" #include "qemu/timer.h"
hw/input/lm832x.c +1 -0
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i2c/i2c.h" #include "qemu/timer.h"
hw/input/pckbd.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/isa/isa.h" #include "hw/i386/pc.h"
hw/input/ps2.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/input/ps2.h" #include "ui/console.h"
hw/input/vmmouse.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "ui/console.h" #include "hw/input/ps2.h"
hw/ipack/ipack.c +1 -0
@@ -8,6 +8,7 @@* later version. */ +#include "qemu/osdep.h" #include "hw/ipack/ipack.h" IPackDevice *ipack_device_find (IPackBus *bus,int32_t slot)
hw/ipack/tpci200.c +1 -1
@@ -8,10 +8,10 @@* later version. */ +#include "qemu/osdep.h" #include "hw/ipack/ipack.h" #include "hw/pci/pci.h" #include "qemu/bitops.h" -#include <stdio.h> /* #define DEBUG_TPCI */
hw/ipmi/ipmi.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ipmi/ipmi.h" #include "sysemu/sysemu.h"
hw/ipmi/ipmi_bmc_extern.c +1 -1
@@ -27,7 +27,7 @@* using the "VM" connection type. See that for details. */ -#include <stdint.h> +#include "qemu/osdep.h" #include "qemu/timer.h" #include "sysemu/char.h" #include "sysemu/sysemu.h"
hw/ipmi/ipmi_bmc_sim.c +1 -3
@@ -22,9 +22,7 @@* THE SOFTWARE. */ -#include <stdio.h> -#include <string.h> -#include <stdint.h> +#include "qemu/osdep.h" #include "qemu/timer.h" #include "hw/ipmi/ipmi.h" #include "qemu/error-report.h"
hw/ipmi/isa_ipmi_bt.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ipmi/ipmi.h" #include "hw/isa/isa.h"
hw/ipmi/isa_ipmi_kcs.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/ipmi/ipmi.h" #include "hw/isa/isa.h"
hw/isa/apm.c +1 -0
@@ -20,6 +20,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/isa/apm.h" #include "hw/hw.h" #include "hw/pci/pci.h"
hw/isa/i82378.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/pci/pci.h" #include "hw/i386/pc.h" #include "hw/timer/i8254.h"
hw/isa/isa-bus.c +1 -0
@@ -16,6 +16,7 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "monitor/monitor.h" #include "hw/sysbus.h"
hw/isa/vt82c686.c +1 -0
@@ -10,6 +10,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/isa/vt82c686.h"
hw/mem/nvdimm.c +1 -0
@@ -22,6 +22,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/> */ +#include "qemu/osdep.h" #include "hw/mem/nvdimm.h" static void nvdimm_class_init (ObjectClass *oc,void *data)
hw/mem/pc-dimm.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/> */ +#include "qemu/osdep.h" #include "hw/mem/pc-dimm.h" #include "qemu/config-file.h" #include "qapi/visitor.h"
hw/nvram/ds1225y.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "trace.h"
hw/nvram/eeprom93xx.c +1 -0
@@ -35,6 +35,7 @@* - No emulation of EEPROM timings. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/nvram/eeprom93xx.h"
hw/nvram/fw_cfg.c +1 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "sysemu/sysemu.h" #include "sysemu/dma.h"
hw/nvram/mac_nvram.c +1 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/nvram/openbios_firmware_abi.h" #include "sysemu/sysemu.h"
hw/pcmcia/pcmcia.c +1 -0
@@ -4,6 +4,7 @@* Copyright 2013 SUSE LINUX Products GmbH */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/hw.h" #include "hw/pcmcia.h"
hw/sd/sd.c +1 -0
@@ -29,6 +29,7 @@* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "sysemu/block-backend.h" #include "hw/sd/sd.h"
hw/sd/sdhci.c +1 -1
@@ -22,7 +22,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <inttypes.h> +#include "qemu/osdep.h" #include "hw/hw.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h"
hw/sd/ssi-sd.c +1 -0
@@ -10,6 +10,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h" #include "hw/ssi/ssi.h"
hw/smbios/smbios.c +1 -0
@@ -15,6 +15,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "qemu/config-file.h" #include "qemu/error-report.h" #include "sysemu/sysemu.h"
hw/ssi/ssi.c +1 -0
@@ -12,6 +12,7 @@* GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/ssi/ssi.h" struct SSIBus {
hw/tpm/tpm_passthrough.c +1 -1
@@ -22,8 +22,8 @@* License along with this library; if not, see <http://www.gnu.org/licenses/> */ +#include "qemu/osdep.h" #include "qemu-common.h" -#include "qapi/error.h" #include "qemu/error-report.h" #include "qemu/sockets.h" #include "sysemu/tpm_backend.h"
hw/tpm/tpm_tis.c +1 -0
@@ -22,6 +22,7 @@* TPM Profile (PTP) Specification, Familiy 2.0, Revision 00.43 */ +#include "qemu/osdep.h" #include "sysemu/tpm_backend.h" #include "tpm_int.h" #include "sysemu/block-backend.h"
hw/tpm/tpm_util.c +1 -0
@@ -19,6 +19,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/> */ +#include "qemu/osdep.h" #include "tpm_util.h" #include "tpm_int.h"
hw/watchdog/watchdog.c +1 -0
@@ -19,6 +19,7 @@* By Richard W.M. Jones ([email protected]). */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/option.h" #include "qemu/config-file.h"
hw/watchdog/wdt_i6300esb.c +1 -1
@@ -19,7 +19,7 @@* By Richard W.M. Jones ([email protected]). */ -#include <inttypes.h> +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/timer.h"
hw/watchdog/wdt_ib700.c +1 -0
@@ -19,6 +19,7 @@* By Richard W.M. Jones ([email protected]). */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/timer.h" #include "sysemu/watchdog.h"
Signature · 1 line
1.9.1
Quoted 11 lines · Peter Maydell
This is a big fat patchset that touches nearly 800 files, but it's all automated use of
scripts/clean-includes. This doesn't cover the whole tree, but it does get all of target-* and hw/ and some other bits.
I split the patches up mostly roughly by entries inMAINTAINERS, and also with some more ad-hoc splitting at the end of the series. The final larger patch is the "everything else in hw" bit -- I stopped when I got down to a diffstat that wasn't too stupidly huge and there weren't any more obvious neat carve-outs.
Quoted 7 lines
I propose to apply this directly to master in the not too distant future, since the consensus appears to be that that's overall less painful than trying to split it all between maintainer trees for a purely mechanical change.
There will then be another similar series which picks up the remaining stuff.
Agreed, thanks for doing this!
Paolo
Quoted 8 lines · Paolo Bonzini
Quoted 5 lines · Peter Maydell
I propose to apply this directly to master in the not too distant future, since the consensus appears to be that that's overall less painful than trying to split it all between maintainer trees for a purely mechanical change.
Quoted 4 lines
Quoted 2 lines
There will then be another similar series which picks up the remaining stuff.
Agreed, thanks for doing this!
This series now pushed to master.
thanks
-- PMM