Skip to content

Commit

Permalink
arm: Clean up includes
Browse files Browse the repository at this point in the history
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 <peter.maydell@linaro.org>
Message-id: 1453832250-766-13-git-send-email-peter.maydell@linaro.org
  • Loading branch information
pm215 committed Jan 29, 2016
1 parent e2e5e11 commit 8ef94f0
Show file tree
Hide file tree
Showing 65 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions disas/arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/* Start of qemu specific additions. Mostly this is stub definitions
for things we don't care about. */

#include "qemu/osdep.h"
#include "disas/bfd.h"
#define ATTRIBUTE_UNUSED __attribute__((unused))
#define ISSPACE(x) ((x) == ' ' || (x) == '\t' || (x) == '\n')
Expand Down
1 change: 1 addition & 0 deletions hw/char/cadence_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "hw/char/cadence_uart.h"

#ifdef CADENCE_UART_ERR_DEBUG
Expand Down
1 change: 1 addition & 0 deletions hw/char/digic-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "sysemu/char.h"
Expand Down
1 change: 1 addition & 0 deletions hw/char/exynos4210_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "qemu/error-report.h"
#include "sysemu/sysemu.h"
Expand Down
1 change: 1 addition & 0 deletions hw/char/imx_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* is a real serial device.
*/

#include "qemu/osdep.h"
#include "hw/char/imx_serial.h"
#include "sysemu/sysemu.h"
#include "sysemu/char.h"
Expand Down
1 change: 1 addition & 0 deletions hw/char/pl011.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* This code is licensed under the GPL.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "sysemu/char.h"

Expand Down
1 change: 1 addition & 0 deletions hw/display/exynos4210_fimd.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "hw/sysbus.h"
#include "ui/console.h"
Expand Down
1 change: 1 addition & 0 deletions hw/display/pl110.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* This code is licensed under the GNU LGPL
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "ui/console.h"
#include "framebuffer.h"
Expand Down
1 change: 1 addition & 0 deletions hw/display/pxa2xx_lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "ui/console.h"
#include "hw/arm/pxa.h"
Expand Down
1 change: 1 addition & 0 deletions hw/dma/pl080.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* This code is licensed under the GPL.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "exec/address-spaces.h"

Expand Down
1 change: 1 addition & 0 deletions hw/dma/pl330.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "qemu/timer.h"
#include "sysemu/dma.h"
Expand Down
1 change: 1 addition & 0 deletions hw/dma/pxa2xx_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* This code is licensed under the GPL.
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/arm/pxa.h"
#include "hw/sysbus.h"
Expand Down
1 change: 1 addition & 0 deletions hw/gpio/imx_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "hw/gpio/imx_gpio.h"

#ifndef DEBUG_IMX_GPIO
Expand Down
1 change: 1 addition & 0 deletions hw/gpio/pl061.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* This code is licensed under the GPL.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"

//#define DEBUG_PL061 1
Expand Down
1 change: 1 addition & 0 deletions hw/i2c/exynos4210_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*
*/

#include "qemu/osdep.h"
#include "qemu/timer.h"
#include "hw/sysbus.h"
#include "hw/i2c/i2c.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i2c/imx_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*
*/

#include "qemu/osdep.h"
#include "hw/i2c/imx_i2c.h"
#include "hw/i2c/i2c.h"

Expand Down
1 change: 1 addition & 0 deletions hw/i2c/versatile_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "bitbang_i2c.h"

Expand Down
1 change: 1 addition & 0 deletions hw/input/pl050.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* This code is licensed under the GPL.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "hw/input/ps2.h"

Expand Down
1 change: 1 addition & 0 deletions hw/input/pxa2xx_keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/arm/pxa.h"
#include "ui/console.h"
Expand Down
1 change: 1 addition & 0 deletions hw/input/stellaris_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* This code is licensed under the GPL.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/devices.h"
#include "ui/console.h"
Expand Down
1 change: 1 addition & 0 deletions hw/intc/allwinner-a10-pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* for more details.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "hw/devices.h"
#include "sysemu/sysemu.h"
Expand Down
1 change: 1 addition & 0 deletions hw/intc/arm_gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* armv7m_nvic device.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "gic_internal.h"
#include "qom/cpu.h"
Expand Down
1 change: 1 addition & 0 deletions hw/intc/arm_gic_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "gic_internal.h"
#include "hw/arm/linux-boot-if.h"

Expand Down
1 change: 1 addition & 0 deletions hw/intc/arm_gic_kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "migration/migration.h"
#include "sysemu/kvm.h"
Expand Down
1 change: 1 addition & 0 deletions hw/intc/arm_gicv2m.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* identification registers and with a single non-secure MSI register frame.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "hw/pci/msi.h"

Expand Down
1 change: 1 addition & 0 deletions hw/intc/arm_gicv3_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "hw/intc/arm_gicv3_common.h"

static void gicv3_pre_save(void *opaque)
Expand Down
1 change: 1 addition & 0 deletions hw/intc/arm_gicv3_kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "hw/intc/arm_gicv3_common.h"
#include "hw/sysbus.h"
#include "sysemu/kvm.h"
Expand Down
1 change: 1 addition & 0 deletions hw/intc/armv7m_nvic.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* NVIC. Much of that is also implemented here.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "qemu/timer.h"
#include "hw/arm/arm.h"
Expand Down
1 change: 1 addition & 0 deletions hw/intc/exynos4210_combiner.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* IRQs are passed to GIC through Combiner.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"

#include "hw/arm/exynos4210.h"
Expand Down
1 change: 1 addition & 0 deletions hw/intc/exynos4210_gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "qemu-common.h"
#include "hw/irq.h"
Expand Down
1 change: 1 addition & 0 deletions hw/intc/imx_avic.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* TODO: implement vectors.
*/

#include "qemu/osdep.h"
#include "hw/intc/imx_avic.h"

#ifndef DEBUG_IMX_AVIC
Expand Down
1 change: 1 addition & 0 deletions hw/intc/pl190.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* This code is licensed under the GPL.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"

/* The number of virtual priority levels. 16 user vectors plus the
Expand Down
1 change: 1 addition & 0 deletions hw/intc/realview_gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* This code is licensed under the GPL.
*/

#include "qemu/osdep.h"
#include "hw/intc/realview_gic.h"

static void realview_gic_set_irq(void *opaque, int irq, int level)
Expand Down
1 change: 1 addition & 0 deletions hw/misc/a9scu.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* This code is licensed under the GPL.
*/

#include "qemu/osdep.h"
#include "hw/misc/a9scu.h"

static uint64_t a9_scu_read(void *opaque, hwaddr offset,
Expand Down
1 change: 1 addition & 0 deletions hw/misc/arm11scu.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* This code is licensed under the GPL.
*/

#include "qemu/osdep.h"
#include "hw/misc/arm11scu.h"

static uint64_t mpcore_scu_read(void *opaque, hwaddr offset,
Expand Down
1 change: 1 addition & 0 deletions hw/misc/exynos4210_pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* uses PMU INFORM5 register as a holding pen.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"

#ifndef DEBUG_PMU
Expand Down
1 change: 1 addition & 0 deletions hw/misc/imx25_ccm.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* the CCM.
*/

#include "qemu/osdep.h"
#include "hw/misc/imx25_ccm.h"

#ifndef DEBUG_IMX25_CCM
Expand Down
1 change: 1 addition & 0 deletions hw/misc/imx31_ccm.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* the i.MX31 CCM.
*/

#include "qemu/osdep.h"
#include "hw/misc/imx31_ccm.h"

#define CKIH_FREQ 26000000 /* 26MHz crystal input */
Expand Down
1 change: 1 addition & 0 deletions hw/misc/imx_ccm.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* retrieve the CCM frequencies from the various i.MX SOC.
*/

#include "qemu/osdep.h"
#include "hw/misc/imx_ccm.h"

#ifndef DEBUG_IMX_CCM
Expand Down
1 change: 1 addition & 0 deletions hw/misc/zynq_slcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "qemu/timer.h"
#include "hw/sysbus.h"
Expand Down
1 change: 1 addition & 0 deletions hw/net/allwinner_emac.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* GNU General Public License for more details.
*
*/
#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "net/net.h"
#include "qemu/fifo8.h"
Expand Down
1 change: 1 addition & 0 deletions hw/net/cadence_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include <zlib.h> /* For crc32 */

#include "hw/net/cadence_gem.h"
Expand Down
1 change: 1 addition & 0 deletions hw/net/imx_fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "hw/net/imx_fec.h"
#include "sysemu/dma.h"

Expand Down
1 change: 1 addition & 0 deletions hw/net/stellaris_enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* This code is licensed under the GPL.
*/
#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "net/net.h"
#include <zlib.h>
Expand Down
1 change: 1 addition & 0 deletions hw/net/xgmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "sysemu/char.h"
#include "qemu/log.h"
Expand Down
1 change: 1 addition & 0 deletions hw/pci-host/versatile.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* This code is licensed under the LGPL.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "hw/pci/pci.h"
#include "hw/pci/pci_bus.h"
Expand Down
1 change: 1 addition & 0 deletions hw/pcmcia/pxa2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "hw/pcmcia.h"
Expand Down
1 change: 1 addition & 0 deletions hw/sd/pl181.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* This code is licensed under the GPL.
*/

#include "qemu/osdep.h"
#include "sysemu/block-backend.h"
#include "sysemu/blockdev.h"
#include "hw/sysbus.h"
Expand Down
1 change: 1 addition & 0 deletions hw/sd/pxa2xx_mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/arm/pxa.h"
#include "hw/sd/sd.h"
Expand Down
1 change: 1 addition & 0 deletions hw/ssi/xilinx_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "sysemu/sysemu.h"
#include "qemu/log.h"
Expand Down
Loading

0 comments on commit 8ef94f0

Please sign in to comment.