From ea99dde191379804cb01881f931cd50db6550df7 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Tue, 26 Jan 2016 18:16:57 +0000 Subject: [PATCH] lm32: 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. Signed-off-by: Peter Maydell Message-id: 1453832250-766-5-git-send-email-peter.maydell@linaro.org --- 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(-) diff --git a/disas/lm32.c b/disas/lm32.c index 1718c86e1c..fcc2cde23d 100644 --- a/disas/lm32.c +++ b/disas/lm32.c @@ -18,7 +18,7 @@ * */ -#include +#include "qemu/osdep.h" #include "disas/bfd.h" typedef enum { diff --git a/hw/char/lm32_juart.c b/hw/char/lm32_juart.c index 62763f2f43..5bf8acfe8f 100644 --- a/hw/char/lm32_juart.c +++ b/hw/char/lm32_juart.c @@ -17,6 +17,7 @@ * License along with this library; if not, see . */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h" diff --git a/hw/char/lm32_uart.c b/hw/char/lm32_uart.c index 837a46e8e1..036813d0f3 100644 --- a/hw/char/lm32_uart.c +++ b/hw/char/lm32_uart.c @@ -22,6 +22,7 @@ */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h" diff --git a/hw/char/milkymist-uart.c b/hw/char/milkymist-uart.c index 9b89b7e636..03b36b2236 100644 --- a/hw/char/milkymist-uart.c +++ b/hw/char/milkymist-uart.c @@ -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" diff --git a/hw/display/milkymist-tmu2.c b/hw/display/milkymist-tmu2.c index e2de281768..9bc88f93b6 100644 --- a/hw/display/milkymist-tmu2.c +++ b/hw/display/milkymist-tmu2.c @@ -24,6 +24,7 @@ * */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h" diff --git a/hw/display/milkymist-vgafb.c b/hw/display/milkymist-vgafb.c index ab3074fadc..19ca256479 100644 --- a/hw/display/milkymist-vgafb.c +++ b/hw/display/milkymist-vgafb.c @@ -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" diff --git a/hw/input/milkymist-softusb.c b/hw/input/milkymist-softusb.c index 8a02d35ca1..64b929281e 100644 --- a/hw/input/milkymist-softusb.c +++ b/hw/input/milkymist-softusb.c @@ -21,6 +21,7 @@ * not available yet */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h" diff --git a/hw/intc/lm32_pic.c b/hw/intc/lm32_pic.c index 641ee4727c..edc08f184a 100644 --- a/hw/intc/lm32_pic.c +++ b/hw/intc/lm32_pic.c @@ -17,7 +17,7 @@ * License along with this library; if not, see . */ -#include +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i386/pc.h" diff --git a/hw/lm32/lm32_boards.c b/hw/lm32/lm32_boards.c index eb553a174e..efa6f91fd2 100644 --- a/hw/lm32/lm32_boards.c +++ b/hw/lm32/lm32_boards.c @@ -17,6 +17,7 @@ * License along with this library; if not, see . */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "hw/block/flash.h" diff --git a/hw/lm32/milkymist.c b/hw/lm32/milkymist.c index 13976b3489..5a37b4a1c1 100644 --- a/hw/lm32/milkymist.c +++ b/hw/lm32/milkymist.c @@ -17,6 +17,7 @@ * License along with this library; if not, see . */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "hw/block/flash.h" diff --git a/hw/misc/milkymist-hpdmc.c b/hw/misc/milkymist-hpdmc.c index f5f4c1b343..b97000fc49 100644 --- a/hw/misc/milkymist-hpdmc.c +++ b/hw/misc/milkymist-hpdmc.c @@ -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" diff --git a/hw/misc/milkymist-pfpu.c b/hw/misc/milkymist-pfpu.c index 08b604f13f..57acd7b365 100644 --- a/hw/misc/milkymist-pfpu.c +++ b/hw/misc/milkymist-pfpu.c @@ -22,6 +22,7 @@ * */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h" diff --git a/hw/net/milkymist-minimac2.c b/hw/net/milkymist-minimac2.c index 6302b8bfab..d35d39a0e5 100644 --- a/hw/net/milkymist-minimac2.c +++ b/hw/net/milkymist-minimac2.c @@ -22,6 +22,7 @@ * */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h" diff --git a/hw/sd/milkymist-memcard.c b/hw/sd/milkymist-memcard.c index b430d56687..c04ff02fad 100644 --- a/hw/sd/milkymist-memcard.c +++ b/hw/sd/milkymist-memcard.c @@ -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" diff --git a/hw/timer/lm32_timer.c b/hw/timer/lm32_timer.c index d2ab1e74b2..3198355aa4 100644 --- a/hw/timer/lm32_timer.c +++ b/hw/timer/lm32_timer.c @@ -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" diff --git a/hw/timer/milkymist-sysctl.c b/hw/timer/milkymist-sysctl.c index 30535a4e3d..5f2948037a 100644 --- a/hw/timer/milkymist-sysctl.c +++ b/hw/timer/milkymist-sysctl.c @@ -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" diff --git a/target-lm32/cpu.c b/target-lm32/cpu.c index 0bc544c1e0..f93bb5d0dd 100644 --- a/target-lm32/cpu.c +++ b/target-lm32/cpu.c @@ -18,6 +18,7 @@ * */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" diff --git a/target-lm32/gdbstub.c b/target-lm32/gdbstub.c index 4979a98d74..8ac1288bb6 100644 --- a/target-lm32/gdbstub.c +++ b/target-lm32/gdbstub.c @@ -17,7 +17,7 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see . */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/gdbstub.h" #include "hw/lm32/lm32_pic.h" diff --git a/target-lm32/helper.c b/target-lm32/helper.c index e26c13357b..3ebec68cba 100644 --- a/target-lm32/helper.c +++ b/target-lm32/helper.c @@ -17,6 +17,7 @@ * License along with this library; if not, see . */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu/host-utils.h" #include "sysemu/sysemu.h" diff --git a/target-lm32/lm32-semi.c b/target-lm32/lm32-semi.c index ec6524f376..20f1a1cd48 100644 --- a/target-lm32/lm32-semi.c +++ b/target-lm32/lm32-semi.c @@ -10,10 +10,7 @@ * See the COPYING file in the top-level directory. */ -#include -#include -#include -#include +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/log.h" diff --git a/target-lm32/machine.c b/target-lm32/machine.c index 8327c6d97c..91c943d193 100644 --- a/target-lm32/machine.c +++ b/target-lm32/machine.c @@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/boards.h" diff --git a/target-lm32/op_helper.c b/target-lm32/op_helper.c index 61209c19b2..b6759e0225 100644 --- a/target-lm32/op_helper.c +++ b/target-lm32/op_helper.c @@ -1,4 +1,4 @@ -#include +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h" diff --git a/target-lm32/translate.c b/target-lm32/translate.c index fa5b0b93a3..477d4285a5 100644 --- a/target-lm32/translate.c +++ b/target-lm32/translate.c @@ -17,6 +17,7 @@ * License along with this library; if not, see . */ +#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" #include "exec/helper-proto.h"