“7b0744edcf6d46a326b0bc7ec15cf9f1329cda4a”上不存在“git@gitcode.net:s920243400/PaddleDetection.git”
提交 7dbaea42 编写于 作者: P Philippe Mathieu-Daudé 提交者: Paolo Bonzini

hw: Do not include "sysemu/blockdev.h" if it is not necessary

The header "hw/boards.h" already includes "sysemu/blockdev.h".

Code change produced with:

    $ git grep '#include "sysemu/blockdev.h"' hw | \
      cut -d: -f-1 | \
      xargs fgrep -l '#include "hw/boards.h"' | \
      xargs sed -i.bak '/#include "sysemu\/blockdev.h"/d'
Signed-off-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20180528232719.4721-14-f4bug@amsat.org>
Acked-by: NMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 0304f9ec
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "hw/boards.h" #include "hw/boards.h"
#include "qemu/log.h" #include "qemu/log.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/blockdev.h"
#include "hw/loader.h" #include "hw/loader.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "hw/arm/omap.h" #include "hw/arm/omap.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/arm/soc_dma.h" #include "hw/arm/soc_dma.h"
#include "sysemu/blockdev.h"
#include "sysemu/qtest.h" #include "sysemu/qtest.h"
#include "qemu/range.h" #include "qemu/range.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "cpu.h" #include "cpu.h"
#include "sysemu/blockdev.h"
#include "sysemu/qtest.h" #include "sysemu/qtest.h"
#include "hw/boards.h" #include "hw/boards.h"
#include "hw/hw.h" #include "hw/hw.h"
......
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
#include "elf.h" #include "elf.h"
#include "hw/timer/mc146818rtc.h" #include "hw/timer/mc146818rtc.h"
#include "hw/timer/i8254.h" #include "hw/timer/i8254.h"
#include "sysemu/blockdev.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
#include "hw/sysbus.h" /* SysBusDevice */ #include "hw/sysbus.h" /* SysBusDevice */
#include "qemu/host-utils.h" #include "qemu/host-utils.h"
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include "qemu/log.h" #include "qemu/log.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "hw/loader.h" #include "hw/loader.h"
#include "sysemu/blockdev.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
#define BIOS_FILENAME "ppc405_rom.bin" #define BIOS_FILENAME "ppc405_rom.bin"
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "sysemu/blockdev.h"
#include "hw/boards.h" #include "hw/boards.h"
#include "sysemu/kvm.h" #include "sysemu/kvm.h"
#include "kvm_ppc.h" #include "kvm_ppc.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册