Browse Source

hw: Do not include qemu/log.h if it is not necessary

Many files include qemu/log.h without needing it. Remove the superfluous
include statements.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20210328054833.2351597-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
pull/121/head
Thomas Huth 5 years ago
committed by Laurent Vivier
parent
commit
19f4ed3652
  1. 1
      hw/arm/aspeed.c
  2. 1
      hw/arm/aspeed_ast2600.c
  3. 1
      hw/arm/aspeed_soc.c
  4. 1
      hw/arm/exynos4210.c
  5. 1
      hw/arm/xlnx-versal-virt.c
  6. 1
      hw/arm/xlnx-versal.c
  7. 1
      hw/i2c/mpc_i2c.c
  8. 1
      hw/intc/imx_gpcv2.c
  9. 1
      hw/intc/ompic.c
  10. 1
      hw/intc/openpic.c
  11. 1
      hw/ipmi/isa_ipmi_bt.c
  12. 1
      hw/ipmi/isa_ipmi_kcs.c
  13. 1
      hw/mips/fuloong2e.c
  14. 1
      hw/mips/loongson3_virt.c
  15. 1
      hw/misc/imx7_snvs.c
  16. 1
      hw/misc/imx_ccm.c
  17. 1
      hw/misc/imx_rngc.c
  18. 1
      hw/misc/pvpanic-isa.c
  19. 1
      hw/misc/pvpanic-pci.c
  20. 1
      hw/net/xgmac.c
  21. 1
      hw/ppc/pnv.c
  22. 1
      hw/ppc/pnv_pnor.c
  23. 1
      hw/ppc/ppc405_boards.c
  24. 1
      hw/ppc/ppc405_uc.c
  25. 1
      hw/ppc/ppc_booke.c
  26. 1
      hw/ppc/virtex_ml507.c
  27. 1
      hw/riscv/microchip_pfsoc.c
  28. 1
      hw/riscv/numa.c
  29. 1
      hw/riscv/sifive_e.c
  30. 1
      hw/riscv/sifive_u.c
  31. 1
      hw/riscv/spike.c
  32. 1
      hw/riscv/virt.c
  33. 1
      hw/sd/cadence_sdhci.c
  34. 1
      hw/ssi/xilinx_spi.c
  35. 1
      hw/tricore/tc27x_soc.c
  36. 1
      hw/usb/chipidea.c
  37. 1
      hw/usb/hcd-dwc3.c
  38. 1
      hw/usb/imx-usb-phy.c
  39. 1
      hw/usb/xlnx-usb-subsystem.c
  40. 1
      hw/usb/xlnx-versal-usb2-ctrl-regs.c
  41. 1
      hw/xen/xen-legacy-backend.c
  42. 1
      net/dump.c
  43. 1
      net/filter-replay.c
  44. 1
      semihosting/arm-compat-semi.c
  45. 1
      target/arm/op_helper.c
  46. 1
      target/hexagon/cpu.c
  47. 1
      target/hexagon/decode.c
  48. 1
      target/hexagon/genptr.c
  49. 1
      target/lm32/lm32-semi.c
  50. 1
      target/riscv/op_helper.c
  51. 1
      target/s390x/interrupt.c

1
hw/arm/aspeed.c

@ -22,7 +22,6 @@
#include "hw/misc/tmp105.h"
#include "hw/misc/led.h"
#include "hw/qdev-properties.h"
#include "qemu/log.h"
#include "sysemu/block-backend.h"
#include "sysemu/sysemu.h"
#include "hw/loader.h"

1
hw/arm/aspeed_ast2600.c

@ -14,7 +14,6 @@
#include "hw/misc/unimp.h"
#include "hw/arm/aspeed_soc.h"
#include "hw/char/serial.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "qemu/error-report.h"
#include "hw/i2c/aspeed_i2c.h"

1
hw/arm/aspeed_soc.c

@ -17,7 +17,6 @@
#include "hw/misc/unimp.h"
#include "hw/arm/aspeed_soc.h"
#include "hw/char/serial.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "qemu/error-report.h"
#include "hw/i2c/aspeed_i2c.h"

1
hw/arm/exynos4210.c

@ -23,7 +23,6 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu/log.h"
#include "cpu.h"
#include "hw/cpu/a9mpcore.h"
#include "hw/irq.h"

1
hw/arm/xlnx-versal-virt.c

@ -10,7 +10,6 @@
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/error-report.h"
#include "qapi/error.h"
#include "sysemu/device_tree.h"

1
hw/arm/xlnx-versal.c

@ -12,7 +12,6 @@
#include "qemu/osdep.h"
#include "qemu/units.h"
#include "qapi/error.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "hw/sysbus.h"
#include "net/net.h"

1
hw/i2c/mpc_i2c.c

@ -20,7 +20,6 @@
#include "qemu/osdep.h"
#include "hw/i2c/i2c.h"
#include "hw/irq.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "hw/sysbus.h"
#include "migration/vmstate.h"

1
hw/intc/imx_gpcv2.c

@ -12,7 +12,6 @@
#include "qemu/osdep.h"
#include "hw/intc/imx_gpcv2.h"
#include "migration/vmstate.h"
#include "qemu/log.h"
#include "qemu/module.h"
#define GPC_PU_PGC_SW_PUP_REQ 0x0f8

1
hw/intc/ompic.c

@ -7,7 +7,6 @@
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "qapi/error.h"
#include "hw/irq.h"

1
hw/intc/openpic.c

@ -47,7 +47,6 @@
#include "qapi/error.h"
#include "qemu/bitops.h"
#include "qapi/qmp/qerror.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "qemu/timer.h"
#include "qemu/error-report.h"

1
hw/ipmi/isa_ipmi_bt.c

@ -23,7 +23,6 @@
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "qapi/error.h"
#include "hw/irq.h"

1
hw/ipmi/isa_ipmi_kcs.c

@ -23,7 +23,6 @@
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "qapi/error.h"
#include "hw/irq.h"

1
hw/mips/fuloong2e.c

@ -33,7 +33,6 @@
#include "hw/mips/bootloader.h"
#include "hw/mips/cpudevs.h"
#include "hw/pci/pci.h"
#include "qemu/log.h"
#include "hw/loader.h"
#include "hw/ide/pci.h"
#include "hw/qdev-properties.h"

1
hw/mips/loongson3_virt.c

@ -54,7 +54,6 @@
#include "sysemu/qtest.h"
#include "sysemu/reset.h"
#include "sysemu/runstate.h"
#include "qemu/log.h"
#include "qemu/error-report.h"
#define PM_CNTL_MODE 0x10

1
hw/misc/imx7_snvs.c

@ -14,7 +14,6 @@
#include "qemu/osdep.h"
#include "hw/misc/imx7_snvs.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "sysemu/runstate.h"

1
hw/misc/imx_ccm.c

@ -13,7 +13,6 @@
#include "qemu/osdep.h"
#include "hw/misc/imx_ccm.h"
#include "qemu/log.h"
#include "qemu/module.h"
#ifndef DEBUG_IMX_CCM

1
hw/misc/imx_rngc.c

@ -14,7 +14,6 @@
#include "qemu/osdep.h"
#include "qemu/main-loop.h"
#include "qemu/module.h"
#include "qemu/log.h"
#include "qemu/guest-random.h"
#include "hw/irq.h"
#include "hw/misc/imx_rngc.h"

1
hw/misc/pvpanic-isa.c

@ -13,7 +13,6 @@
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "sysemu/runstate.h"

1
hw/misc/pvpanic-pci.c

@ -12,7 +12,6 @@
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "sysemu/runstate.h"

1
hw/net/xgmac.c

@ -29,7 +29,6 @@
#include "hw/qdev-properties.h"
#include "hw/sysbus.h"
#include "migration/vmstate.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "net/net.h"
#include "qom/object.h"

1
hw/ppc/pnv.c

@ -32,7 +32,6 @@
#include "sysemu/device_tree.h"
#include "sysemu/hw_accel.h"
#include "target/ppc/cpu.h"
#include "qemu/log.h"
#include "hw/ppc/fdt.h"
#include "hw/ppc/ppc.h"
#include "hw/ppc/pnv.h"

1
hw/ppc/pnv_pnor.c

@ -10,7 +10,6 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu/error-report.h"
#include "qemu/log.h"
#include "qemu/units.h"
#include "sysemu/block-backend.h"
#include "sysemu/blockdev.h"

1
hw/ppc/ppc405_boards.c

@ -39,7 +39,6 @@
#include "sysemu/reset.h"
#include "sysemu/block-backend.h"
#include "hw/boards.h"
#include "qemu/log.h"
#include "qemu/error-report.h"
#include "hw/loader.h"
#include "exec/address-spaces.h"

1
hw/ppc/ppc405_uc.c

@ -34,7 +34,6 @@
#include "qemu/timer.h"
#include "sysemu/reset.h"
#include "sysemu/sysemu.h"
#include "qemu/log.h"
#include "exec/address-spaces.h"
#include "hw/intc/ppc-uic.h"
#include "hw/qdev-properties.h"

1
hw/ppc/ppc_booke.c

@ -28,7 +28,6 @@
#include "qemu/timer.h"
#include "sysemu/reset.h"
#include "sysemu/runstate.h"
#include "qemu/log.h"
#include "hw/loader.h"
#include "kvm_ppc.h"

1
hw/ppc/virtex_ml507.c

@ -38,7 +38,6 @@
#include "elf.h"
#include "qapi/error.h"
#include "qemu/error-report.h"
#include "qemu/log.h"
#include "qemu/option.h"
#include "exec/address-spaces.h"

1
hw/riscv/microchip_pfsoc.c

@ -36,7 +36,6 @@
#include "qemu/osdep.h"
#include "qemu/error-report.h"
#include "qemu/log.h"
#include "qemu/units.h"
#include "qemu/cutils.h"
#include "qapi/error.h"

1
hw/riscv/numa.c

@ -18,7 +18,6 @@
#include "qemu/osdep.h"
#include "qemu/units.h"
#include "qemu/log.h"
#include "qemu/error-report.h"
#include "qapi/error.h"
#include "hw/boards.h"

1
hw/riscv/sifive_e.c

@ -29,7 +29,6 @@
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/error-report.h"
#include "qapi/error.h"
#include "hw/boards.h"

1
hw/riscv/sifive_u.c

@ -35,7 +35,6 @@
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/error-report.h"
#include "qapi/error.h"
#include "qapi/visitor.h"

1
hw/riscv/spike.c

@ -24,7 +24,6 @@
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/error-report.h"
#include "qapi/error.h"
#include "hw/boards.h"

1
hw/riscv/virt.c

@ -20,7 +20,6 @@
#include "qemu/osdep.h"
#include "qemu/units.h"
#include "qemu/log.h"
#include "qemu/error-report.h"
#include "qapi/error.h"
#include "hw/boards.h"

1
hw/sd/cadence_sdhci.c

@ -23,7 +23,6 @@
#include "qemu/osdep.h"
#include "qemu/bitops.h"
#include "qemu/error-report.h"
#include "qemu/log.h"
#include "qapi/error.h"
#include "migration/vmstate.h"
#include "hw/sd/cadence_sdhci.h"

1
hw/ssi/xilinx_spi.c

@ -27,7 +27,6 @@
#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "migration/vmstate.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "qemu/fifo8.h"

1
hw/tricore/tc27x_soc.c

@ -26,7 +26,6 @@
#include "qemu/units.h"
#include "hw/misc/unimp.h"
#include "exec/address-spaces.h"
#include "qemu/log.h"
#include "cpu.h"
#include "hw/tricore/tc27x_soc.h"

1
hw/usb/chipidea.c

@ -12,7 +12,6 @@
#include "qemu/osdep.h"
#include "hw/usb/hcd-ehci.h"
#include "hw/usb/chipidea.h"
#include "qemu/log.h"
#include "qemu/module.h"
enum {

1
hw/usb/hcd-dwc3.c

@ -31,7 +31,6 @@
#include "hw/sysbus.h"
#include "hw/register.h"
#include "qemu/bitops.h"
#include "qemu/log.h"
#include "qom/object.h"
#include "migration/vmstate.h"
#include "hw/qdev-properties.h"

1
hw/usb/imx-usb-phy.c

@ -13,7 +13,6 @@
#include "qemu/osdep.h"
#include "hw/usb/imx-usb-phy.h"
#include "migration/vmstate.h"
#include "qemu/log.h"
#include "qemu/module.h"
static const VMStateDescription vmstate_imx_usbphy = {

1
hw/usb/xlnx-usb-subsystem.c

@ -26,7 +26,6 @@
#include "hw/sysbus.h"
#include "hw/register.h"
#include "qemu/bitops.h"
#include "qemu/log.h"
#include "qom/object.h"
#include "qapi/error.h"
#include "hw/qdev-properties.h"

1
hw/usb/xlnx-versal-usb2-ctrl-regs.c

@ -32,7 +32,6 @@
#include "hw/irq.h"
#include "hw/register.h"
#include "qemu/bitops.h"
#include "qemu/log.h"
#include "qom/object.h"
#include "migration/vmstate.h"
#include "hw/usb/xlnx-versal-usb2-ctrl-regs.h"

1
hw/xen/xen-legacy-backend.c

@ -27,7 +27,6 @@
#include "hw/sysbus.h"
#include "hw/boards.h"
#include "hw/qdev-properties.h"
#include "qemu/log.h"
#include "qemu/main-loop.h"
#include "qapi/error.h"
#include "hw/xen/xen-legacy-backend.h"

1
net/dump.c

@ -28,7 +28,6 @@
#include "qapi/error.h"
#include "qemu/error-report.h"
#include "qemu/iov.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "qemu/timer.h"
#include "qapi/visitor.h"

1
net/filter-replay.c

@ -13,7 +13,6 @@
#include "clients.h"
#include "qemu/error-report.h"
#include "qemu/iov.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "qemu/timer.h"
#include "qapi/visitor.h"

1
semihosting/arm-compat-semi.c

@ -37,7 +37,6 @@
#include "semihosting/semihost.h"
#include "semihosting/console.h"
#include "semihosting/common-semi.h"
#include "qemu/log.h"
#include "qemu/timer.h"
#ifdef CONFIG_USER_ONLY
#include "qemu.h"

1
target/arm/op_helper.c

@ -17,7 +17,6 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/main-loop.h"
#include "cpu.h"
#include "exec/helper-proto.h"

1
target/hexagon/cpu.c

@ -16,7 +16,6 @@
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/qemu-print.h"
#include "cpu.h"
#include "internal.h"

1
target/hexagon/decode.c

@ -16,7 +16,6 @@
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "iclass.h"
#include "attribs.h"
#include "genptr.h"

1
target/hexagon/genptr.c

@ -17,7 +17,6 @@
#define QEMU_GENERATE
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "cpu.h"
#include "internal.h"
#include "tcg/tcg-op.h"

1
target/lm32/lm32-semi.c

@ -13,7 +13,6 @@
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"
#include "qemu/log.h"
#include "exec/softmmu-semi.h"
enum {

1
target/riscv/op_helper.c

@ -18,7 +18,6 @@
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "cpu.h"
#include "qemu/main-loop.h"
#include "exec/exec-all.h"

1
target/s390x/interrupt.c

@ -8,7 +8,6 @@
*/
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "cpu.h"
#include "kvm_s390x.h"
#include "internal.h"

Loading…
Cancel
Save