all: 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: 1454089805-5470-16-git-send-email-peter.maydell@linaro.org
This commit is contained in:
Peter Maydell 2016-01-29 17:50:05 +00:00
parent ccd241b5a2
commit d38ea87ac5
65 changed files with 65 additions and 100 deletions

View File

@ -23,6 +23,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "sysemu/accel.h" #include "sysemu/accel.h"
#include "hw/boards.h" #include "hw/boards.h"
#include "qemu-common.h" #include "qemu-common.h"

View File

@ -13,6 +13,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "block/block.h" #include "block/block.h"
#include "qemu/queue.h" #include "qemu/queue.h"

View File

@ -15,6 +15,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "block/block.h" #include "block/block.h"
#include "qemu/queue.h" #include "qemu/queue.h"

View File

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

View File

@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "block/aio.h" #include "block/aio.h"
#include "block/thread-pool.h" #include "block/thread-pool.h"

View File

@ -24,6 +24,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "exec/cpu-common.h" #include "exec/cpu-common.h"
#include "sysemu/kvm.h" #include "sysemu/kvm.h"

View File

@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "config-host.h" #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "trace.h" #include "trace.h"
#include "block/block_int.h" #include "block/block_int.h"
@ -42,8 +42,6 @@
#include "block/throttle-groups.h" #include "block/throttle-groups.h"
#ifdef CONFIG_BSD #ifdef CONFIG_BSD
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/queue.h> #include <sys/queue.h>
#ifndef __DragonFly__ #ifndef __DragonFly__

View File

@ -9,6 +9,7 @@
* later. See the COPYING file in the top-level directory. * later. See the COPYING file in the top-level directory.
*/ */
#include "qemu/osdep.h"
#include "sysemu/blockdev.h" #include "sysemu/blockdev.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "hw/block/block.h" #include "hw/block/block.h"

View File

@ -30,6 +30,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/blockdev.h" #include "sysemu/blockdev.h"
#include "hw/block/block.h" #include "hw/block/block.h"

View File

@ -23,7 +23,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "config-host.h" #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "trace.h" #include "trace.h"
#include "block/block.h" #include "block/block.h"

View File

@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "qapi/visitor.h" #include "qapi/visitor.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"

View File

@ -17,12 +17,12 @@
* with this program; if not, see <http://www.gnu.org/licenses/>. * with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "sysemu/bt.h" #include "sysemu/bt.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
#ifndef _WIN32 #ifndef _WIN32
# include <errno.h>
# include <sys/ioctl.h> # include <sys/ioctl.h>
# include <sys/uio.h> # include <sys/uio.h>
# ifdef CONFIG_BLUEZ # ifdef CONFIG_BLUEZ

View File

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

View File

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

View File

@ -11,12 +11,7 @@
* *
*/ */
#include <stdio.h> #include "qemu/osdep.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"

View File

@ -1,9 +1,8 @@
/* General "disassemble this chunk" code. Used for debugging. */ /* General "disassemble this chunk" code. Used for debugging. */
#include "config.h" #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "disas/bfd.h" #include "disas/bfd.h"
#include "elf.h" #include "elf.h"
#include <errno.h>
#include "cpu.h" #include "cpu.h"
#include "disas/disas.h" #include "disas/disas.h"

View File

@ -7,6 +7,7 @@
* (GNU GPL), version 2 or later. * (GNU GPL), version 2 or later.
*/ */
#include "qemu/osdep.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include "trace.h" #include "trace.h"

2
dump.c
View File

@ -11,6 +11,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "elf.h" #include "elf.h"
#include "cpu.h" #include "cpu.h"
@ -22,7 +23,6 @@
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "sysemu/memory_mapping.h" #include "sysemu/memory_mapping.h"
#include "sysemu/cpus.h" #include "sysemu/cpus.h"
#include "qapi/error.h"
#include "qapi/qmp/qerror.h" #include "qapi/qmp/qerror.h"
#include "qmp-commands.h" #include "qmp-commands.h"

View File

@ -82,12 +82,11 @@ this code that are retained.
/* softfloat (and in particular the code in softfloat-specialize.h) is /* softfloat (and in particular the code in softfloat-specialize.h) is
* target-dependent and needs the TARGET_* macros. * target-dependent and needs the TARGET_* macros.
*/ */
#include "config.h" #include "qemu/osdep.h"
#include "fpu/softfloat.h" #include "fpu/softfloat.h"
/* We only need stdlib for abort() */ /* We only need stdlib for abort() */
#include <stdlib.h>
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------
| Primitive arithmetic functions, including multi-word arithmetic, and | Primitive arithmetic functions, including multi-word arithmetic, and

View File

@ -16,16 +16,9 @@
* You should have received a copy of the GNU Lesser General Public * 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/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "config.h" #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#ifdef CONFIG_USER_ONLY #ifdef CONFIG_USER_ONLY
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include "qemu.h" #include "qemu.h"
#else #else

1
hmp.c
View File

@ -13,6 +13,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "qemu/osdep.h"
#include "hmp.h" #include "hmp.h"
#include "net/net.h" #include "net/net.h"
#include "net/eth.h" #include "net/eth.h"

View File

@ -22,7 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "config-host.h" #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/queue.h" #include "qemu/queue.h"
#include "block/aio.h" #include "block/aio.h"

View File

@ -25,6 +25,7 @@
* splitted out ioport related stuffs from vl.c. * splitted out ioport related stuffs from vl.c.
*/ */
#include "qemu/osdep.h"
#include "exec/ioport.h" #include "exec/ioport.h"
#include "trace.h" #include "trace.h"
#include "exec/memory.h" #include "exec/memory.h"

View File

@ -11,6 +11,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qom/object.h" #include "qom/object.h"
#include "qom/object_interfaces.h" #include "qom/object_interfaces.h"
#include "qemu/module.h" #include "qemu/module.h"

View File

@ -13,10 +13,9 @@
* *
*/ */
#include <sys/types.h> #include "qemu/osdep.h"
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <stdarg.h>
#include <linux/kvm.h> #include <linux/kvm.h>

View File

@ -10,6 +10,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "cpu.h" #include "cpu.h"

View File

@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "qemu/sockets.h" // struct in_addr needed for libslirp.h #include "qemu/sockets.h" // struct in_addr needed for libslirp.h

View File

@ -13,6 +13,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "qemu/osdep.h"
#include "exec/memory.h" #include "exec/memory.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
#include "exec/ioport.h" #include "exec/ioport.h"
@ -21,7 +22,6 @@
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qom/object.h" #include "qom/object.h"
#include "trace.h" #include "trace.h"
#include <assert.h>
#include "exec/memory-internal.h" #include "exec/memory-internal.h"
#include "exec/ram_addr.h" #include "exec/ram_addr.h"

View File

@ -11,6 +11,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include <glib.h> #include <glib.h>
#include "qemu-common.h" #include "qemu-common.h"

View File

@ -1,4 +1,4 @@
#include "config-host.h" #include "qemu/osdep.h"
#include "qemu/module.h" #include "qemu/module.h"
void qemu_module_dummy(void) void qemu_module_dummy(void)

View File

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include <dirent.h> #include <dirent.h>
#include "hw/hw.h" #include "hw/hw.h"
#include "monitor/qdev.h" #include "monitor/qdev.h"
@ -59,7 +60,6 @@
#include "qapi/qmp/json-streamer.h" #include "qapi/qmp/json-streamer.h"
#include "qapi/qmp/json-parser.h" #include "qapi/qmp/json-parser.h"
#include <qom/object_interfaces.h> #include <qom/object_interfaces.h>
#include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "trace.h" #include "trace.h"
#include "trace/control.h" #include "trace/control.h"

View File

@ -16,6 +16,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "nbd-internal.h" #include "nbd-internal.h"
static int nbd_errno_to_system_errno(int err) static int nbd_errno_to_system_errno(int err)

View File

@ -16,6 +16,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "nbd-internal.h" #include "nbd-internal.h"
ssize_t nbd_wr_sync(int fd, void *buffer, size_t size, bool do_read) ssize_t nbd_wr_sync(int fd, void *buffer, size_t size, bool do_read)

View File

@ -16,6 +16,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "nbd-internal.h" #include "nbd-internal.h"
static int system_errno_to_nbd_errno(int err) static int system_errno_to_nbd_errno(int err)

1
numa.c
View File

@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "sysemu/numa.h" #include "sysemu/numa.h"
#include "exec/cpu-common.h" #include "exec/cpu-common.h"
#include "qemu/bitmap.h" #include "qemu/bitmap.h"

View File

@ -23,10 +23,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include <unistd.h> #include "qemu/osdep.h"
#include <fcntl.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
/*needed for MAP_POPULATE before including qemu-options.h */ /*needed for MAP_POPULATE before including qemu-options.h */
#include <sys/mman.h> #include <sys/mman.h>
@ -35,7 +32,6 @@
#include <libgen.h> #include <libgen.h>
/* Needed early for CONFIG_BSD etc. */ /* Needed early for CONFIG_BSD etc. */
#include "config-host.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "net/slirp.h" #include "net/slirp.h"
#include "qemu-options.h" #include "qemu-options.h"

View File

@ -22,14 +22,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include <windows.h> #include <windows.h>
#include <mmsystem.h> #include <mmsystem.h>
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
#include <errno.h>
#include <sys/time.h>
#include "config-host.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "qemu-options.h" #include "qemu-options.h"

View File

@ -12,13 +12,7 @@
* *
*/ */
#include <stdint.h> #include "qemu/osdep.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <stdbool.h>
#include <glib.h> #include <glib.h>
#include "qemu-common.h" #include "qemu-common.h"

View File

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

View File

@ -13,19 +13,10 @@
* *
*/ */
#include "config-host.h" #include "qemu/osdep.h"
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <ctype.h>
#include <glib.h> #include <glib.h>
#include <sys/types.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/un.h> #include <sys/un.h>

View File

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "monitor/monitor.h" #include "monitor/monitor.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
@ -37,11 +38,6 @@
#include "io/channel-file.h" #include "io/channel-file.h"
#include "io/channel-tls.h" #include "io/channel-tls.h"
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
#include <errno.h>
#include <sys/time.h>
#include <zlib.h> #include <zlib.h>
#ifndef _WIN32 #ifndef _WIN32
@ -58,7 +54,6 @@
#include <netdb.h> #include <netdb.h>
#include <sys/select.h> #include <sys/select.h>
#ifdef CONFIG_BSD #ifdef CONFIG_BSD
#include <sys/stat.h>
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#include <dev/ppbus/ppi.h> #include <dev/ppbus/ppi.h>
#include <dev/ppbus/ppbconf.h> #include <dev/ppbus/ppbconf.h>
@ -72,7 +67,6 @@
#include <linux/parport.h> #include <linux/parport.h>
#endif #endif
#ifdef __sun__ #ifdef __sun__
#include <sys/stat.h>
#include <sys/ethernet.h> #include <sys/ethernet.h>
#include <sys/sockio.h> #include <sys/sockio.h>
#include <netinet/arp.h> #include <netinet/arp.h>

View File

@ -16,6 +16,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "block/block_int.h" #include "block/block_int.h"
@ -27,15 +28,11 @@
#include "qapi/util.h" #include "qapi/util.h"
#include "qapi/qmp/qstring.h" #include "qapi/qmp/qstring.h"
#include <stdarg.h>
#include <stdio.h>
#include <getopt.h> #include <getopt.h>
#include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/tcp.h> #include <netinet/tcp.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <signal.h>
#include <libgen.h> #include <libgen.h>
#include <pthread.h> #include <pthread.h>

View File

@ -12,7 +12,7 @@
* Contributions after 2012-01-13 are licensed under the terms of the * Contributions after 2012-01-13 are licensed under the terms of the
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include <stdio.h> #include "qemu/osdep.h"
#include <seccomp.h> #include <seccomp.h>
#include "sysemu/seccomp.h" #include "sysemu/seccomp.h"

View File

@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "sysemu/replay.h" #include "sysemu/replay.h"

View File

@ -11,8 +11,8 @@
* *
*/ */
#include "qemu/osdep.h"
#include <qapi/qmp/qstring.h> #include <qapi/qmp/qstring.h>
#include <stdbool.h>
#include <glib.h> #include <glib.h>
#include <qjson.h> #include <qjson.h>
#include <qemu/module.h> #include <qemu/module.h>

1
qmp.c
View File

@ -13,6 +13,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "monitor/monitor.h" #include "monitor/monitor.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"

View File

@ -11,6 +11,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "sysemu/qtest.h" #include "sysemu/qtest.h"
#include "hw/qdev.h" #include "hw/qdev.h"
#include "sysemu/char.h" #include "sysemu/char.h"

View File

@ -9,6 +9,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "sysemu/replay.h" #include "sysemu/replay.h"

View File

@ -9,6 +9,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "sysemu/replay.h" #include "sysemu/replay.h"
#include "replay-internal.h" #include "replay-internal.h"

View File

@ -9,6 +9,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "sysemu/replay.h" #include "sysemu/replay.h"
#include "replay-internal.h" #include "replay-internal.h"

View File

@ -9,6 +9,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "sysemu/replay.h" #include "sysemu/replay.h"
#include "replay-internal.h" #include "replay-internal.h"

View File

@ -9,6 +9,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "sysemu/replay.h" #include "sysemu/replay.h"
#include "replay-internal.h" #include "replay-internal.h"

View File

@ -1,11 +1,10 @@
#include "config-host.h" #include "qemu/osdep.h"
#include "trace.h" #include "trace.h"
#include "ui/qemu-spice.h" #include "ui/qemu-spice.h"
#include "sysemu/char.h" #include "sysemu/char.h"
#include <spice.h> #include <spice.h>
#include <spice/protocol.h> #include <spice/protocol.h>
#include "qemu/osdep.h"
typedef struct SpiceCharDriver { typedef struct SpiceCharDriver {
CharDriverState* chr; CharDriverState* chr;

View File

@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include <stdint.h> #include "qemu/osdep.h"
#include "qemu/host-utils.h" #include "qemu/host-utils.h"
/* This file is compiled once, and thus we can't include the standard /* This file is compiled once, and thus we can't include the standard

2
tci.c
View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "config.h" #include "qemu/osdep.h"
/* Defining NDEBUG disables assertions (which makes the code faster). */ /* Defining NDEBUG disables assertions (which makes the code faster). */
#if !defined(CONFIG_DEBUG_TCG) && !defined(NDEBUG) #if !defined(CONFIG_DEBUG_TCG) && !defined(NDEBUG)

View File

@ -14,10 +14,10 @@
* Contributions after 2012-01-13 are licensed under the terms of the * Contributions after 2012-01-13 are licensed under the terms of the
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/queue.h" #include "qemu/queue.h"
#include "qemu/thread.h" #include "qemu/thread.h"
#include "qemu/osdep.h"
#include "qemu/coroutine.h" #include "qemu/coroutine.h"
#include "trace.h" #include "trace.h"
#include "block/thread-pool.h" #include "block/thread-pool.h"

View File

@ -16,9 +16,7 @@
* You should have received a copy of the GNU Lesser General Public * 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/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include <stdlib.h> #include "qemu/osdep.h"
#include <stdio.h>
#include <stdarg.h>
#include "qemu.h" #include "qemu.h"
#include "exec/user/thunk.h" #include "exec/user/thunk.h"

2
tpm.c
View File

@ -11,7 +11,7 @@
* *
* Based on net.c * Based on net.c
*/ */
#include "config-host.h" #include "qemu/osdep.h"
#include "qapi/qmp/qerror.h" #include "qapi/qmp/qerror.h"
#include "sysemu/tpm_backend.h" #include "sysemu/tpm_backend.h"

View File

@ -7,6 +7,7 @@
* See the COPYING file in the top-level directory. * See the COPYING file in the top-level directory.
*/ */
#include "qemu/osdep.h"
#include "trace/control.h" #include "trace/control.h"
#ifdef CONFIG_TRACE_SIMPLE #ifdef CONFIG_TRACE_SIMPLE
#include "trace/simple.h" #include "trace/simple.h"

View File

@ -9,10 +9,7 @@
* *
*/ */
#include <stdio.h> #include "qemu/osdep.h"
#include <string.h>
#include <fcntl.h>
#include <limits.h>
#include "trace.h" #include "trace.h"
#include "trace/control.h" #include "trace/control.h"

View File

@ -7,6 +7,7 @@
* See the COPYING file in the top-level directory. * See the COPYING file in the top-level directory.
*/ */
#include "qemu/osdep.h"
#include "qemu/typedefs.h" #include "qemu/typedefs.h"
#include "qmp-commands.h" #include "qmp-commands.h"
#include "trace/control.h" #include "trace/control.h"

View File

@ -8,12 +8,8 @@
* *
*/ */
#include <stdlib.h> #include "qemu/osdep.h"
#include <stdint.h>
#include <stdio.h>
#include <time.h>
#ifndef _WIN32 #ifndef _WIN32
#include <signal.h>
#include <pthread.h> #include <pthread.h>
#endif #endif
#include "qemu/timer.h" #include "qemu/timer.h"

View File

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public * 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/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "config.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "disas/disas.h" #include "disas/disas.h"
#include "tcg.h" #include "tcg.h"
@ -33,7 +33,6 @@
#undef ESI #undef ESI
#undef EDI #undef EDI
#undef EIP #undef EIP
#include <signal.h>
#ifdef __linux__ #ifdef __linux__
#include <sys/ucontext.h> #include <sys/ucontext.h>
#endif #endif

View File

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

9
vl.c
View File

@ -21,14 +21,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include <unistd.h> #include "qemu/osdep.h"
#include <fcntl.h>
#include <signal.h>
#include <time.h>
#include <errno.h>
#include <sys/time.h>
#include "config-host.h"
#ifdef CONFIG_SECCOMP #ifdef CONFIG_SECCOMP
#include "sysemu/seccomp.h" #include "sysemu/seccomp.h"
@ -113,7 +107,6 @@ int main(int argc, char **argv)
#include "qemu/queue.h" #include "qemu/queue.h"
#include "sysemu/cpus.h" #include "sysemu/cpus.h"
#include "sysemu/arch_init.h" #include "sysemu/arch_init.h"
#include "qemu/osdep.h"
#include "ui/qemu-spice.h" #include "ui/qemu-spice.h"
#include "qapi/string-input-visitor.h" #include "qapi/string-input-visitor.h"