Skip to content

Commit

Permalink
x86: 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-11-git-send-email-peter.maydell@linaro.org
  • Loading branch information
pm215 committed Jan 29, 2016
1 parent d39594e commit b6a0aa0
Show file tree
Hide file tree
Showing 75 changed files with 75 additions and 24 deletions.
1 change: 1 addition & 0 deletions hw/acpi/acpi_interface.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/acpi/acpi_dev_interface.h"
#include "qemu/module.h"

Expand Down
6 changes: 1 addition & 5 deletions hw/acpi/aml-build.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include <glib/gprintf.h>
#include <stdio.h>
#include <stdarg.h>
#include <assert.h>
#include <stdbool.h>
#include <string.h>
#include "hw/acpi/aml-build.h"
#include "qemu/bswap.h"
#include "qemu/bitops.h"
Expand Down
1 change: 1 addition & 0 deletions hw/acpi/bios-linker-loader.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 "qemu-common.h"
#include "hw/acpi/bios-linker-loader.h"
#include "hw/nvram/fw_cfg.h"
Expand Down
1 change: 1 addition & 0 deletions hw/acpi/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,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 "sysemu/sysemu.h"
#include "hw/hw.h"
#include "hw/i386/pc.h"
Expand Down
1 change: 1 addition & 0 deletions hw/acpi/cpu_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/acpi/cpu_hotplug.h"

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

#include "qemu/osdep.h"
#include "hw/acpi/cpu_hotplug.h"

void build_cpu_hotplug_aml(Aml *ctx)
Expand Down
1 change: 1 addition & 0 deletions hw/acpi/ich9.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,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 "qapi/visitor.h"
#include "hw/i386/pc.h"
Expand Down
1 change: 1 addition & 0 deletions hw/acpi/memory_hotplug.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/acpi/memory_hotplug.h"
#include "hw/acpi/pc-hotplug.h"
#include "hw/mem/pc-dimm.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/acpi/memory_hotplug_acpi_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* See the COPYING file in the top-level directory.
*/

#include <stdbool.h>
#include "qemu/osdep.h"
#include "hw/acpi/memory_hotplug.h"
#include "include/hw/acpi/pc-hotplug.h"
#include "hw/boards.h"
Expand Down
1 change: 1 addition & 0 deletions hw/acpi/nvdimm.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>
*/

#include "qemu/osdep.h"
#include "hw/acpi/acpi.h"
#include "hw/acpi/aml-build.h"
#include "hw/mem/nvdimm.h"
Expand Down
1 change: 1 addition & 0 deletions hw/acpi/pcihp.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/

#include "qemu/osdep.h"
#include "hw/acpi/pcihp.h"

#include "hw/hw.h"
Expand Down
1 change: 1 addition & 0 deletions hw/acpi/piix4.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,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 "hw/i386/pc.h"
#include "hw/isa/apm.h"
Expand Down
1 change: 1 addition & 0 deletions hw/acpi/tco.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/watchdog.h"
#include "hw/i386/ich9.h"
Expand Down
1 change: 1 addition & 0 deletions hw/char/debugcon.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/hw.h"
#include "sysemu/char.h"
#include "hw/isa/isa.h"
Expand Down
1 change: 1 addition & 0 deletions hw/char/parallel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "sysemu/char.h"
#include "hw/isa/isa.h"
Expand Down
1 change: 1 addition & 0 deletions hw/char/serial-isa.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "hw/char/serial.h"
#include "hw/isa/isa.h"

Expand Down
1 change: 1 addition & 0 deletions hw/char/serial-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

/* see docs/specs/pci-serial.txt */

#include "qemu/osdep.h"
#include "hw/char/serial.h"
#include "hw/pci/pci.h"

Expand Down
1 change: 1 addition & 0 deletions hw/char/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "hw/char/serial.h"
#include "sysemu/char.h"
#include "qemu/timer.h"
Expand Down
1 change: 1 addition & 0 deletions hw/dma/i8257.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "qemu/main-loop.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i2c/pm_smbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* License along with this library; if not, see
* <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/i386/pc.h"
#include "hw/i2c/pm_smbus.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i2c/smbus_ich9.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,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/i2c/pm_smbus.h"
Expand Down
3 changes: 1 addition & 2 deletions hw/i386/acpi-build.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "acpi-build.h"
#include <stddef.h>
#include <glib.h>
#include "qemu-common.h"
#include "qemu/bitmap.h"
#include "qemu/osdep.h"
#include "qemu/error-report.h"
#include "hw/pci/pci.h"
#include "qom/cpu.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/intel_iommu.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 "exec/address-spaces.h"
#include "intel_iommu_internal.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/kvm/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* This work is licensed under the terms of the GNU GPL version 2.
* See the COPYING file in the top-level directory.
*/
#include "qemu/osdep.h"
#include "hw/i386/apic_internal.h"
#include "hw/pci/msi.h"
#include "sysemu/kvm.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/kvm/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/host-utils.h"
#include "sysemu/sysemu.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/kvm/i8254.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "qemu/timer.h"
#include "sysemu/sysemu.h"
#include "hw/timer/i8254.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/kvm/i8259.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* This work is licensed under the terms of the GNU GPL version 2.
* See the COPYING file in the top-level directory.
*/
#include "qemu/osdep.h"
#include "hw/isa/i8259_internal.h"
#include "hw/i386/apic_internal.h"
#include "sysemu/kvm.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/kvm/ioapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* See the COPYING file in the top-level directory.
*/

#include "qemu/osdep.h"
#include "monitor/monitor.h"
#include "hw/i386/pc.h"
#include "hw/i386/ioapic_internal.h"
Expand Down
5 changes: 1 addition & 4 deletions hw/i386/kvm/pci-assign.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@
* Copyright (C) 2008, Red Hat, Amit Shah (amit.shah@redhat.com)
* Copyright (C) 2008, IBM, Muli Ben-Yehuda (muli@il.ibm.com)
*/
#include <stdio.h>
#include <unistd.h>
#include "qemu/osdep.h"
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "hw/hw.h"
#include "hw/i386/pc.h"
#include "qemu/error-report.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/kvmvapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* (at your option) any later version. See the COPYING file in the
* top-level directory.
*/
#include "qemu/osdep.h"
#include "sysemu/sysemu.h"
#include "sysemu/cpus.h"
#include "sysemu/kvm.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/multiboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/nvram/fw_cfg.h"
#include "multiboot.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/pc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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/i386/pc.h"
#include "hw/char/serial.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/pc_piix.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include <glib.h>

#include "hw/hw.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/pc_q35.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,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/loader.h"
#include "sysemu/arch_init.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/pc_sysfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "sysemu/block-backend.h"
#include "qemu/error-report.h"
#include "hw/sysbus.h"
Expand Down
5 changes: 1 addition & 4 deletions hw/i386/pci-assign-load-rom.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/*
* This is splited from hw/i386/kvm/pci-assign.c
*/
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/i386/pc.h"
#include "qemu/error-report.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/xen/xen_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* This work is licensed under the terms of the GNU GPL version 2 or
* later. See the COPYING file in the top-level directory.
*/
#include "qemu/osdep.h"
#include "hw/i386/apic_internal.h"
#include "hw/pci/msi.h"
#include "hw/xen/xen.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/xen/xen_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/i386/pc.h"
#include "hw/ide.h"
Expand Down
1 change: 1 addition & 0 deletions hw/i386/xen/xen_pvdevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* SUCH DAMAGE.
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/pci/pci.h"
#include "trace.h"
Expand Down
1 change: 1 addition & 0 deletions hw/intc/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "qemu/thread.h"
#include "hw/i386/apic_internal.h"
#include "hw/i386/apic.h"
Expand Down
1 change: 1 addition & 0 deletions hw/intc/apic_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,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/i386/apic.h"
#include "hw/i386/apic_internal.h"
#include "trace.h"
Expand Down
1 change: 1 addition & 0 deletions hw/intc/ioapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "monitor/monitor.h"
#include "hw/hw.h"
#include "hw/i386/pc.h"
Expand Down
1 change: 1 addition & 0 deletions hw/intc/ioapic_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "monitor/monitor.h"
#include "hw/i386/ioapic.h"
#include "hw/i386/ioapic_internal.h"
Expand Down
1 change: 1 addition & 0 deletions hw/isa/lpc_ich9.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "hw/hw.h"
#include "qapi/visitor.h"
Expand Down
1 change: 1 addition & 0 deletions hw/isa/piix4.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/i386/pc.h"
#include "hw/pci/pci.h"
Expand Down
1 change: 1 addition & 0 deletions hw/misc/debugexit.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* (at your option) any later version.
*/

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

Expand Down
2 changes: 1 addition & 1 deletion hw/misc/pc-testdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* git://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git
*/

#include "config-host.h"
#include "qemu/osdep.h"
#if defined(CONFIG_POSIX)
#include <sys/mman.h>
#endif
Expand Down
Loading

0 comments on commit b6a0aa0

Please sign in to comment.