Browse Source

hw: 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 <peter.maydell@linaro.org>
Message-id: 1453832250-766-38-git-send-email-peter.maydell@linaro.org
pull/36/head
Peter Maydell 10 years ago
parent
commit
0430891ce1
  1. 1
      hw/bt/core.c
  2. 1
      hw/bt/hci-csr.c
  3. 1
      hw/bt/hci.c
  4. 1
      hw/bt/hid.c
  5. 1
      hw/bt/l2cap.c
  6. 1
      hw/bt/sdp.c
  7. 1
      hw/char/escc.c
  8. 1
      hw/char/etraxfs_ser.c
  9. 1
      hw/char/ipoctal232.c
  10. 1
      hw/char/mcf_uart.c
  11. 1
      hw/char/sh_serial.c
  12. 1
      hw/cpu/a15mpcore.c
  13. 3
      hw/dma/etraxfs_dma.c
  14. 1
      hw/dma/i82374.c
  15. 1
      hw/dma/rc4030.c
  16. 1
      hw/dma/soc_dma.c
  17. 1
      hw/dma/sparc32_dma.c
  18. 1
      hw/dma/sun4m_iommu.c
  19. 1
      hw/gpio/max7310.c
  20. 1
      hw/gpio/mpc8xxx.c
  21. 1
      hw/i2c/bitbang_i2c.c
  22. 1
      hw/i2c/core.c
  23. 1
      hw/i2c/smbus.c
  24. 1
      hw/i2c/smbus_eeprom.c
  25. 1
      hw/input/adb.c
  26. 1
      hw/input/hid.c
  27. 1
      hw/input/lm832x.c
  28. 1
      hw/input/pckbd.c
  29. 1
      hw/input/ps2.c
  30. 1
      hw/input/vmmouse.c
  31. 1
      hw/ipack/ipack.c
  32. 2
      hw/ipack/tpci200.c
  33. 1
      hw/ipmi/ipmi.c
  34. 2
      hw/ipmi/ipmi_bmc_extern.c
  35. 4
      hw/ipmi/ipmi_bmc_sim.c
  36. 1
      hw/ipmi/isa_ipmi_bt.c
  37. 1
      hw/ipmi/isa_ipmi_kcs.c
  38. 1
      hw/isa/apm.c
  39. 1
      hw/isa/i82378.c
  40. 1
      hw/isa/isa-bus.c
  41. 1
      hw/isa/vt82c686.c
  42. 1
      hw/mem/nvdimm.c
  43. 1
      hw/mem/pc-dimm.c
  44. 1
      hw/nvram/ds1225y.c
  45. 1
      hw/nvram/eeprom93xx.c
  46. 1
      hw/nvram/fw_cfg.c
  47. 1
      hw/nvram/mac_nvram.c
  48. 1
      hw/pcmcia/pcmcia.c
  49. 1
      hw/sd/sd.c
  50. 2
      hw/sd/sdhci.c
  51. 1
      hw/sd/ssi-sd.c
  52. 1
      hw/smbios/smbios.c
  53. 1
      hw/ssi/ssi.c
  54. 2
      hw/tpm/tpm_passthrough.c
  55. 1
      hw/tpm/tpm_tis.c
  56. 1
      hw/tpm/tpm_util.c
  57. 1
      hw/watchdog/watchdog.c
  58. 2
      hw/watchdog/wdt_i6300esb.c
  59. 1
      hw/watchdog/wdt_ib700.c

1
hw/bt/core.c

@ -17,6 +17,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/bt.h"
#include "hw/bt.h"

1
hw/bt/hci-csr.c

@ -18,6 +18,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/char.h"
#include "qemu/timer.h"

1
hw/bt/hci.c

@ -18,6 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/timer.h"
#include "hw/usb.h"

1
hw/bt/hid.c

@ -18,6 +18,7 @@
* with this program; if not, if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/timer.h"
#include "ui/console.h"

1
hw/bt/l2cap.c

@ -17,6 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/timer.h"
#include "hw/bt.h"

1
hw/bt/sdp.c

@ -17,6 +17,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "hw/bt.h"

1
hw/char/escc.c

@ -22,6 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "hw/char/escc.h"

1
hw/char/etraxfs_ser.c

@ -22,6 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "sysemu/char.h"
#include "qemu/log.h"

1
hw/char/ipoctal232.c

@ -8,6 +8,7 @@
* later version.
*/
#include "qemu/osdep.h"
#include "hw/ipack/ipack.h"
#include "qemu/bitops.h"
#include "sysemu/char.h"

1
hw/char/mcf_uart.c

@ -5,6 +5,7 @@
*
* This code is licensed under the GPL
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/m68k/mcf.h"
#include "sysemu/char.h"

1
hw/char/sh_serial.c

@ -24,6 +24,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sh4/sh.h"
#include "sysemu/char.h"

1
hw/cpu/a15mpcore.c

@ -18,6 +18,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "hw/cpu/a15mpcore.h"
#include "sysemu/kvm.h"
#include "kvm_arm.h"

3
hw/dma/etraxfs_dma.c

@ -21,8 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include <stdio.h>
#include <sys/time.h>
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "exec/address-spaces.h"
#include "qemu-common.h"

1
hw/dma/i82374.c

@ -22,6 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/isa/isa.h"
//#define DEBUG_I82374

1
hw/dma/rc4030.c

@ -22,6 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/mips/mips.h"
#include "hw/sysbus.h"

1
hw/dma/soc_dma.c

@ -17,6 +17,7 @@
* You should have received a copy of the GNU General Public License along
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/timer.h"
#include "hw/arm/soc_dma.h"

1
hw/dma/sparc32_dma.c

@ -25,6 +25,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sparc/sparc32_dma.h"
#include "hw/sparc/sun4m.h"

1
hw/dma/sun4m_iommu.c

@ -22,6 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/sparc/sun4m.h"
#include "hw/sysbus.h"
#include "exec/address-spaces.h"

1
hw/gpio/max7310.c

@ -7,6 +7,7 @@
* This file is licensed under GNU GPL.
*/
#include "qemu/osdep.h"
#include "hw/i2c/i2c.h"
#define TYPE_MAX7310 "max7310"

1
hw/gpio/mpc8xxx.c

@ -19,6 +19,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "hw/sysbus.h"
#define TYPE_MPC8XXX_GPIO "mpc8xxx_gpio"

1
hw/i2c/bitbang_i2c.c

@ -9,6 +9,7 @@
* Contributions after 2012-01-13 are licensed under the terms of the
* GNU GPL, version 2 or (at your option) any later version.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "bitbang_i2c.h"
#include "hw/sysbus.h"

1
hw/i2c/core.c

@ -7,6 +7,7 @@
* This code is licensed under the LGPL.
*/
#include "qemu/osdep.h"
#include "hw/i2c/i2c.h"
struct I2CBus

1
hw/i2c/smbus.c

@ -9,6 +9,7 @@
/* TODO: Implement PEC. */
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/i2c/i2c.h"
#include "hw/i2c/smbus.h"

1
hw/i2c/smbus_eeprom.c

@ -22,6 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/i2c/i2c.h"
#include "hw/i2c/smbus.h"

1
hw/input/adb.c

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/input/adb.h"
#include "ui/console.h"

1
hw/input/hid.c

@ -22,6 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "ui/console.h"
#include "qemu/timer.h"

1
hw/input/lm832x.c

@ -18,6 +18,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/i2c/i2c.h"
#include "qemu/timer.h"

1
hw/input/pckbd.c

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/isa/isa.h"
#include "hw/i386/pc.h"

1
hw/input/ps2.c

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/input/ps2.h"
#include "ui/console.h"

1
hw/input/vmmouse.c

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "ui/console.h"
#include "hw/input/ps2.h"

1
hw/ipack/ipack.c

@ -8,6 +8,7 @@
* later version.
*/
#include "qemu/osdep.h"
#include "hw/ipack/ipack.h"
IPackDevice *ipack_device_find(IPackBus *bus, int32_t slot)

2
hw/ipack/tpci200.c

@ -8,10 +8,10 @@
* later version.
*/
#include "qemu/osdep.h"
#include "hw/ipack/ipack.h"
#include "hw/pci/pci.h"
#include "qemu/bitops.h"
#include <stdio.h>
/* #define DEBUG_TPCI */

1
hw/ipmi/ipmi.c

@ -22,6 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/ipmi/ipmi.h"
#include "sysemu/sysemu.h"

2
hw/ipmi/ipmi_bmc_extern.c

@ -27,7 +27,7 @@
* using the "VM" connection type. See that for details.
*/
#include <stdint.h>
#include "qemu/osdep.h"
#include "qemu/timer.h"
#include "sysemu/char.h"
#include "sysemu/sysemu.h"

4
hw/ipmi/ipmi_bmc_sim.c

@ -22,9 +22,7 @@
* THE SOFTWARE.
*/
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "qemu/osdep.h"
#include "qemu/timer.h"
#include "hw/ipmi/ipmi.h"
#include "qemu/error-report.h"

1
hw/ipmi/isa_ipmi_bt.c

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/ipmi/ipmi.h"
#include "hw/isa/isa.h"

1
hw/ipmi/isa_ipmi_kcs.c

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/ipmi/ipmi.h"
#include "hw/isa/isa.h"

1
hw/isa/apm.c

@ -20,6 +20,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/
#include "qemu/osdep.h"
#include "hw/isa/apm.h"
#include "hw/hw.h"
#include "hw/pci/pci.h"

1
hw/isa/i82378.c

@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "hw/pci/pci.h"
#include "hw/i386/pc.h"
#include "hw/timer/i8254.h"

1
hw/isa/isa-bus.c

@ -16,6 +16,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "monitor/monitor.h"
#include "hw/sysbus.h"

1
hw/isa/vt82c686.c

@ -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/i386/pc.h"
#include "hw/isa/vt82c686.h"

1
hw/mem/nvdimm.c

@ -22,6 +22,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>
*/
#include "qemu/osdep.h"
#include "hw/mem/nvdimm.h"
static void nvdimm_class_init(ObjectClass *oc, void *data)

1
hw/mem/pc-dimm.c

@ -18,6 +18,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>
*/
#include "qemu/osdep.h"
#include "hw/mem/pc-dimm.h"
#include "qemu/config-file.h"
#include "qapi/visitor.h"

1
hw/nvram/ds1225y.c

@ -22,6 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "trace.h"

1
hw/nvram/eeprom93xx.c

@ -35,6 +35,7 @@
* - No emulation of EEPROM timings.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/nvram/eeprom93xx.h"

1
hw/nvram/fw_cfg.c

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "sysemu/sysemu.h"
#include "sysemu/dma.h"

1
hw/nvram/mac_nvram.c

@ -22,6 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/nvram/openbios_firmware_abi.h"
#include "sysemu/sysemu.h"

1
hw/pcmcia/pcmcia.c

@ -4,6 +4,7 @@
* Copyright 2013 SUSE LINUX Products GmbH
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "hw/hw.h"
#include "hw/pcmcia.h"

1
hw/sd/sd.c

@ -29,6 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "sysemu/block-backend.h"
#include "hw/sd/sd.h"

2
hw/sd/sdhci.c

@ -22,7 +22,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <inttypes.h>
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "sysemu/block-backend.h"
#include "sysemu/blockdev.h"

1
hw/sd/ssi-sd.c

@ -10,6 +10,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/
#include "qemu/osdep.h"
#include "sysemu/block-backend.h"
#include "sysemu/blockdev.h"
#include "hw/ssi/ssi.h"

1
hw/smbios/smbios.c

@ -15,6 +15,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/
#include "qemu/osdep.h"
#include "qemu/config-file.h"
#include "qemu/error-report.h"
#include "sysemu/sysemu.h"

1
hw/ssi/ssi.c

@ -12,6 +12,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/
#include "qemu/osdep.h"
#include "hw/ssi/ssi.h"
struct SSIBus {

2
hw/tpm/tpm_passthrough.c

@ -22,8 +22,8 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qapi/error.h"
#include "qemu/error-report.h"
#include "qemu/sockets.h"
#include "sysemu/tpm_backend.h"

1
hw/tpm/tpm_tis.c

@ -22,6 +22,7 @@
* TPM Profile (PTP) Specification, Familiy 2.0, Revision 00.43
*/
#include "qemu/osdep.h"
#include "sysemu/tpm_backend.h"
#include "tpm_int.h"
#include "sysemu/block-backend.h"

1
hw/tpm/tpm_util.c

@ -19,6 +19,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>
*/
#include "qemu/osdep.h"
#include "tpm_util.h"
#include "tpm_int.h"

1
hw/watchdog/watchdog.c

@ -19,6 +19,7 @@
* By Richard W.M. Jones (rjones@redhat.com).
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/option.h"
#include "qemu/config-file.h"

2
hw/watchdog/wdt_i6300esb.c

@ -19,7 +19,7 @@
* By Richard W.M. Jones (rjones@redhat.com).
*/
#include <inttypes.h>
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/timer.h"

1
hw/watchdog/wdt_ib700.c

@ -19,6 +19,7 @@
* By Richard W.M. Jones (rjones@redhat.com).
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/timer.h"
#include "sysemu/watchdog.h"

Loading…
Cancel
Save