Skip to content

Commit

Permalink
hw: Do not include qemu/log.h if it is not necessary
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
huth authored and vivier committed May 2, 2021
1 parent e924921 commit 19f4ed3
Show file tree
Hide file tree
Showing 51 changed files with 0 additions and 51 deletions.
1 change: 0 additions & 1 deletion hw/arm/aspeed.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/arm/aspeed_ast2600.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/arm/aspeed_soc.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/arm/exynos4210.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/arm/xlnx-versal-virt.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/arm/xlnx-versal.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/i2c/mpc_i2c.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/intc/imx_gpcv2.c
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion hw/intc/ompic.c
Expand Up @@ -7,7 +7,6 @@
*/

#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "qapi/error.h"
#include "hw/irq.h"
Expand Down
1 change: 0 additions & 1 deletion hw/intc/openpic.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/ipmi/isa_ipmi_bt.c
Expand Up @@ -23,7 +23,6 @@
*/

#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "qapi/error.h"
#include "hw/irq.h"
Expand Down
1 change: 0 additions & 1 deletion hw/ipmi/isa_ipmi_kcs.c
Expand Up @@ -23,7 +23,6 @@
*/

#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "qapi/error.h"
#include "hw/irq.h"
Expand Down
1 change: 0 additions & 1 deletion hw/mips/fuloong2e.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/mips/loongson3_virt.c
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion hw/misc/imx7_snvs.c
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion hw/misc/imx_ccm.c
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion hw/misc/imx_rngc.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/misc/pvpanic-isa.c
Expand Up @@ -13,7 +13,6 @@
*/

#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "sysemu/runstate.h"

Expand Down
1 change: 0 additions & 1 deletion hw/misc/pvpanic-pci.c
Expand Up @@ -12,7 +12,6 @@
*/

#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/module.h"
#include "sysemu/runstate.h"

Expand Down
1 change: 0 additions & 1 deletion hw/net/xgmac.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/ppc/pnv.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/ppc/pnv_pnor.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/ppc/ppc405_boards.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/ppc/ppc405_uc.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/ppc/ppc_booke.c
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion hw/ppc/virtex_ml507.c
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion hw/riscv/microchip_pfsoc.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/riscv/numa.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/riscv/sifive_e.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/riscv/sifive_u.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/riscv/spike.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/riscv/virt.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/sd/cadence_sdhci.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/ssi/xilinx_spi.c
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion hw/tricore/tc27x_soc.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/usb/chipidea.c
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion hw/usb/hcd-dwc3.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/usb/imx-usb-phy.c
Expand Up @@ -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 = {
Expand Down
1 change: 0 additions & 1 deletion hw/usb/xlnx-usb-subsystem.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/usb/xlnx-versal-usb2-ctrl-regs.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/xen/xen-legacy-backend.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion net/dump.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion net/filter-replay.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion semihosting/arm-compat-semi.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion target/arm/op_helper.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion target/hexagon/cpu.c
Expand Up @@ -16,7 +16,6 @@
*/

#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/qemu-print.h"
#include "cpu.h"
#include "internal.h"
Expand Down
1 change: 0 additions & 1 deletion target/hexagon/decode.c
Expand Up @@ -16,7 +16,6 @@
*/

#include "qemu/osdep.h"
#include "qemu/log.h"
#include "iclass.h"
#include "attribs.h"
#include "genptr.h"
Expand Down
1 change: 0 additions & 1 deletion target/hexagon/genptr.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion target/lm32/lm32-semi.c
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion target/riscv/op_helper.c
Expand Up @@ -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"
Expand Down

0 comments on commit 19f4ed3

Please sign in to comment.