From 55616505876d6683130076b810a27c7889321560 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Wed, 13 May 2009 20:51:49 +0100 Subject: [PATCH] Include assert.h from qemu-common.h Include assert.h from qemu-common.h and remove other direct uses. cpu-all.h still need to include it because of the dyngen-exec.h hacks Signed-off-by: Paul Brook --- aes.c | 2 -- block-qcow2.c | 1 - block-raw-posix.c | 1 - block-raw-win32.c | 1 - block-vvfat.c | 1 - cutils.c | 1 - hw/adlib.c | 1 - hw/baum.c | 1 - hw/eepro100.c | 1 - hw/eeprom93xx.c | 1 - hw/sh7750.c | 1 - hw/sh_intc.c | 1 - hw/sh_serial.c | 1 - hw/sm501.c | 1 - hw/tc58128.c | 1 - qemu-common.h | 1 + qemu-img.c | 1 - target-cris/op_helper.c | 1 - target-cris/translate.c | 1 - target-i386/helper.c | 1 - target-i386/translate.c | 1 - target-m68k/translate.c | 1 - target-mips/helper.c | 1 - target-ppc/helper.c | 1 - target-sh4/helper.c | 1 - target-sh4/translate.c | 1 - target-sparc/helper.c | 1 - tcg/tcg.c | 1 - 28 files changed, 1 insertion(+), 28 deletions(-) diff --git a/aes.c b/aes.c index 7e84f4643..eb37adbed 100644 --- a/aes.c +++ b/aes.c @@ -34,8 +34,6 @@ #define NDEBUG #endif -#include - typedef uint32_t u32; typedef uint16_t u16; typedef uint8_t u8; diff --git a/block-qcow2.c b/block-qcow2.c index 9a49777ed..2ad07250e 100644 --- a/block-qcow2.c +++ b/block-qcow2.c @@ -25,7 +25,6 @@ #include "block_int.h" #include #include "aes.h" -#include /* Differences with QCOW: diff --git a/block-raw-posix.c b/block-raw-posix.c index bcb3e0145..406ec7d04 100644 --- a/block-raw-posix.c +++ b/block-raw-posix.c @@ -25,7 +25,6 @@ #include "qemu-timer.h" #include "qemu-char.h" #include "block_int.h" -#include #ifdef CONFIG_AIO #include "posix-aio-compat.h" #endif diff --git a/block-raw-win32.c b/block-raw-win32.c index b5287d2a5..a998166a7 100644 --- a/block-raw-win32.c +++ b/block-raw-win32.c @@ -24,7 +24,6 @@ #include "qemu-common.h" #include "qemu-timer.h" #include "block_int.h" -#include #include #include diff --git a/block-vvfat.c b/block-vvfat.c index 79059311c..0f0760f90 100644 --- a/block-vvfat.c +++ b/block-vvfat.c @@ -24,7 +24,6 @@ */ #include #include -#include #include "qemu-common.h" #include "block_int.h" diff --git a/cutils.c b/cutils.c index a1652ab0b..0623cf70d 100644 --- a/cutils.c +++ b/cutils.c @@ -23,7 +23,6 @@ */ #include "qemu-common.h" #include "host-utils.h" -#include void pstrcpy(char *buf, int buf_size, const char *str) { diff --git a/hw/adlib.c b/hw/adlib.c index 076c1a0b1..8c2331955 100644 --- a/hw/adlib.c +++ b/hw/adlib.c @@ -22,7 +22,6 @@ * THE SOFTWARE. */ -#include #include "hw.h" #include "audiodev.h" #include "audio/audio.h" diff --git a/hw/baum.c b/hw/baum.c index 7dac68410..f6d6e67d4 100644 --- a/hw/baum.c +++ b/hw/baum.c @@ -26,7 +26,6 @@ #include "qemu-timer.h" #include "usb.h" #include "baum.h" -#include #include #include #include diff --git a/hw/eepro100.c b/hw/eepro100.c index 7dbbca009..85434818a 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -38,7 +38,6 @@ # warning "PXE boot still not working!" #endif -#include #include /* offsetof */ #include "hw.h" #include "pci.h" diff --git a/hw/eeprom93xx.c b/hw/eeprom93xx.c index e4b6b13b7..f91b0c99c 100644 --- a/hw/eeprom93xx.c +++ b/hw/eeprom93xx.c @@ -36,7 +36,6 @@ * - No emulation of EEPROM timings. */ -#include #include "hw.h" #include "eeprom93xx.h" diff --git a/hw/sh7750.c b/hw/sh7750.c index 423c43ff1..f079781b2 100644 --- a/hw/sh7750.c +++ b/hw/sh7750.c @@ -23,7 +23,6 @@ * THE SOFTWARE. */ #include -#include #include "hw.h" #include "sh.h" #include "sysemu.h" diff --git a/hw/sh_intc.c b/hw/sh_intc.c index f4138fd22..b75d794e1 100644 --- a/hw/sh_intc.c +++ b/hw/sh_intc.c @@ -8,7 +8,6 @@ * This code is licenced under the GPL. */ -#include #include "sh_intc.h" #include "hw.h" #include "sh.h" diff --git a/hw/sh_serial.c b/hw/sh_serial.c index 4957c41ae..ee0c52c42 100644 --- a/hw/sh_serial.c +++ b/hw/sh_serial.c @@ -27,7 +27,6 @@ #include "hw.h" #include "sh.h" #include "qemu-char.h" -#include //#define DEBUG_SERIAL diff --git a/hw/sm501.c b/hw/sm501.c index 316aba2c6..4b0df8fec 100644 --- a/hw/sm501.c +++ b/hw/sm501.c @@ -23,7 +23,6 @@ */ #include -#include #include "hw.h" #include "pc.h" #include "console.h" diff --git a/hw/tc58128.c b/hw/tc58128.c index 2f1b305d4..21e808547 100644 --- a/hw/tc58128.c +++ b/hw/tc58128.c @@ -1,4 +1,3 @@ -#include #include "hw.h" #include "sh.h" #include "sysemu.h" diff --git a/qemu-common.h b/qemu-common.h index b2e28297a..ee4a67269 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -23,6 +23,7 @@ #include #include #include +#include #include "config-host.h" #ifndef O_LARGEFILE diff --git a/qemu-img.c b/qemu-img.c index 29149a23c..32c5b4200 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -24,7 +24,6 @@ #include "qemu-common.h" #include "osdep.h" #include "block_int.h" -#include #include #ifdef _WIN32 diff --git a/target-cris/op_helper.c b/target-cris/op_helper.c index 2e280f3b6..edfaf41a8 100644 --- a/target-cris/op_helper.c +++ b/target-cris/op_helper.c @@ -19,7 +19,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA */ -#include #include "exec.h" #include "mmu.h" #include "helper.h" diff --git a/target-cris/translate.c b/target-cris/translate.c index b3d0a19ed..6a442813a 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -29,7 +29,6 @@ #include #include #include -#include #include "cpu.h" #include "exec-all.h" diff --git a/target-i386/helper.c b/target-i386/helper.c index 5c03e3a75..7fc5366e6 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -23,7 +23,6 @@ #include #include #include -#include #include "cpu.h" #include "exec-all.h" diff --git a/target-i386/translate.c b/target-i386/translate.c index 3933697ef..d45e9fe73 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -23,7 +23,6 @@ #include #include #include -#include #include "cpu.h" #include "exec-all.h" diff --git a/target-m68k/translate.c b/target-m68k/translate.c index f9b36c963..422f0a46e 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -23,7 +23,6 @@ #include #include #include -#include #include "config.h" #include "cpu.h" diff --git a/target-mips/helper.c b/target-mips/helper.c index 35b2c591e..fecbcb2f1 100644 --- a/target-mips/helper.c +++ b/target-mips/helper.c @@ -23,7 +23,6 @@ #include #include #include -#include #include "cpu.h" #include "exec-all.h" diff --git a/target-ppc/helper.c b/target-ppc/helper.c index db765e308..5a7a935bb 100644 --- a/target-ppc/helper.c +++ b/target-ppc/helper.c @@ -23,7 +23,6 @@ #include #include #include -#include #include "cpu.h" #include "exec-all.h" diff --git a/target-sh4/helper.c b/target-sh4/helper.c index d8e08e305..94be136fa 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -23,7 +23,6 @@ #include #include #include -#include #include "cpu.h" #include "exec-all.h" diff --git a/target-sh4/translate.c b/target-sh4/translate.c index fc3633a6c..1f461b7a4 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -22,7 +22,6 @@ #include #include #include -#include #define DEBUG_DISAS #define SH4_DEBUG_DISAS diff --git a/target-sparc/helper.c b/target-sparc/helper.c index 8ad82a945..2f41418c8 100644 --- a/target-sparc/helper.c +++ b/target-sparc/helper.c @@ -23,7 +23,6 @@ #include #include #include -#include #include "cpu.h" #include "exec-all.h" diff --git a/tcg/tcg.c b/tcg/tcg.c index a75d8dcc2..299bff6f0 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -32,7 +32,6 @@ #define NDEBUG #endif -#include #include #include #include