Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
xen: 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-14-git-send-email-peter.maydell@linaro.org
  • Loading branch information
pm215 committed Jan 29, 2016
1 parent 8ef94f0 commit 21cbfe5
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 36 deletions.
7 changes: 1 addition & 6 deletions hw/char/xen_console.c
Expand Up @@ -19,14 +19,9 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include "qemu/osdep.h"
#include <sys/select.h>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>
#include <stdarg.h>
#include <sys/mman.h>

#include "hw/hw.h"
Expand Down
10 changes: 1 addition & 9 deletions hw/display/xenfb.c
Expand Up @@ -24,16 +24,8 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include <stdarg.h>
#include <stdlib.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include "qemu/osdep.h"
#include <sys/mman.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <time.h>

#include "hw/hw.h"
#include "ui/console.h"
Expand Down
11 changes: 1 addition & 10 deletions hw/net/xen_nic.c
Expand Up @@ -19,18 +19,9 @@
* GNU GPL, version 2 or (at your option) any later version.
*/

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <inttypes.h>
#include <fcntl.h>
#include <errno.h>
#include "qemu/osdep.h"
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/wait.h>

Expand Down
1 change: 1 addition & 0 deletions hw/xen/xen-host-pci-device.c
Expand Up @@ -6,6 +6,7 @@
*
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "xen-host-pci-device.h"

Expand Down
10 changes: 1 addition & 9 deletions hw/xen/xen_backend.c
Expand Up @@ -22,15 +22,7 @@
* TODO: add some xenbus / xenstore concepts overview here.
*/

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "qemu/osdep.h"
#include <sys/mman.h>
#include <sys/signal.h>

Expand Down
1 change: 1 addition & 0 deletions hw/xen/xen_devconfig.c
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/xen/xen_backend.h"
#include "sysemu/block-backend.h"
#include "sysemu/blockdev.h"
Expand Down
1 change: 1 addition & 0 deletions hw/xen/xen_pt.c
Expand Up @@ -52,6 +52,7 @@
* - Set entry->pirq to '-1'.
*/

#include "qemu/osdep.h"
#include <sys/ioctl.h>

#include "hw/pci/pci.h"
Expand Down
1 change: 1 addition & 0 deletions hw/xen/xen_pt_config_init.c
Expand Up @@ -12,6 +12,7 @@
* This file implements direct PCI assignment to a HVM guest
*/

#include "qemu/osdep.h"
#include "qemu/timer.h"
#include "hw/xen/xen_backend.h"
#include "xen_pt.h"
Expand Down
1 change: 1 addition & 0 deletions hw/xen/xen_pt_graphics.c
@@ -1,6 +1,7 @@
/*
* graphics passthrough
*/
#include "qemu/osdep.h"
#include "xen_pt.h"
#include "xen-host-pci-device.h"
#include "hw/xen/xen_backend.h"
Expand Down
1 change: 1 addition & 0 deletions hw/xen/xen_pt_msi.c
Expand Up @@ -9,6 +9,7 @@
* This file implements direct PCI assignment to a HVM guest
*/

#include "qemu/osdep.h"
#include <sys/mman.h>

#include "hw/xen/xen_backend.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/xenpv/xen_domainbuild.c
@@ -1,4 +1,4 @@
#include <signal.h>
#include "qemu/osdep.h"
#include "hw/xen/xen_backend.h"
#include "xen_domainbuild.h"
#include "qemu/timer.h"
Expand Down
1 change: 1 addition & 0 deletions hw/xenpv/xen_machine_pv.c
Expand Up @@ -22,6 +22,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/boards.h"
#include "hw/xen/xen_backend.h"
Expand Down
1 change: 1 addition & 0 deletions xen-common-stub.c
Expand Up @@ -5,6 +5,7 @@
* See the COPYING file in the top-level directory.
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "hw/xen/xen.h"

Expand Down
1 change: 1 addition & 0 deletions xen-common.c
Expand Up @@ -8,6 +8,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/

#include "qemu/osdep.h"
#include "hw/xen/xen_backend.h"
#include "qmp-commands.h"
#include "sysemu/char.h"
Expand Down
1 change: 1 addition & 0 deletions xen-hvm-stub.c
Expand Up @@ -8,6 +8,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "hw/xen/xen.h"
#include "exec/memory.h"
Expand Down
1 change: 1 addition & 0 deletions xen-hvm.c
Expand Up @@ -8,6 +8,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/

#include "qemu/osdep.h"
#include <sys/mman.h>

#include "hw/pci/pci.h"
Expand Down
2 changes: 1 addition & 1 deletion xen-mapcache.c
Expand Up @@ -8,7 +8,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/

#include "config.h"
#include "qemu/osdep.h"

#include <sys/resource.h>

Expand Down

0 comments on commit 21cbfe5

Please sign in to comment.