Skip to content

Commit

Permalink
xen: Reorganize includes of Xen headers.
Browse files Browse the repository at this point in the history
Because xs.h will be remove in future release of Xen, this patch removes the
extra includes of this headers.

Also, it removes the extra includes of xenctrl.h and xen/io/xenbus.h as there
already are in xen_common.h.

Signed-off-by: Anthony PERARD <[email protected]>
Signed-off-by: Stefano Stabellini <[email protected]>
  • Loading branch information
anthonyper-ctx authored and Stefano Stabellini committed Jun 21, 2012
1 parent 93bfef4 commit b41f671
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 25 deletions.
6 changes: 2 additions & 4 deletions hw/xen_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@
#include <sys/mman.h>
#include <sys/signal.h>

#include <xs.h>
#include <xenctrl.h>
#include <xen/grant_table.h>

#include "hw.h"
#include "qemu-char.h"
#include "qemu-log.h"
#include "xen_backend.h"

#include <xen/grant_table.h>

/* ------------------------------------------------------------- */

/* public */
Expand Down
5 changes: 2 additions & 3 deletions hw/xen_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@
#include <termios.h>
#include <stdarg.h>
#include <sys/mman.h>
#include <xs.h>
#include <xen/io/console.h>
#include <xenctrl.h>

#include "hw.h"
#include "qemu-char.h"
#include "xen_backend.h"

#include <xen/io/console.h>

struct buffer {
uint8_t *data;
size_t consumed;
Expand Down
6 changes: 1 addition & 5 deletions hw/xen_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,10 @@
#include <sys/mman.h>
#include <sys/uio.h>

#include <xs.h>
#include <xenctrl.h>
#include <xen/io/xenbus.h>

#include "hw.h"
#include "qemu-char.h"
#include "xen_blkif.h"
#include "xen_backend.h"
#include "xen_blkif.h"
#include "blockdev.h"

/* ------------------------------------------------------------- */
Expand Down
7 changes: 2 additions & 5 deletions hw/xen_nic.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,15 @@
#include <sys/mman.h>
#include <sys/wait.h>

#include <xs.h>
#include <xenctrl.h>
#include <xen/io/xenbus.h>
#include <xen/io/netif.h>

#include "hw.h"
#include "net.h"
#include "net/checksum.h"
#include "net/util.h"
#include "qemu-char.h"
#include "xen_backend.h"

#include <xen/io/netif.h>

/* ------------------------------------------------------------- */

struct XenNetDev {
Expand Down
13 changes: 5 additions & 8 deletions hw/xenfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,16 @@
#include <string.h>
#include <time.h>

#include <xs.h>
#include <xenctrl.h>
#include <xen/event_channel.h>
#include <xen/io/xenbus.h>
#include <xen/io/fbif.h>
#include <xen/io/kbdif.h>
#include <xen/io/protocols.h>

#include "hw.h"
#include "console.h"
#include "qemu-char.h"
#include "xen_backend.h"

#include <xen/event_channel.h>
#include <xen/io/fbif.h>
#include <xen/io/kbdif.h>
#include <xen/io/protocols.h>

#ifndef BTN_LEFT
#define BTN_LEFT 0x110 /* from <linux/input.h> */
#endif
Expand Down

0 comments on commit b41f671

Please sign in to comment.