Skip to content

Commit

Permalink
9pfs: 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 <[email protected]>
Message-id: [email protected]
  • Loading branch information
pm215 committed Jan 29, 2016
1 parent 5323926 commit fbc0412
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 24 deletions.
7 changes: 1 addition & 6 deletions fsdev/9p-iov-marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,12 @@
*
*/

#include "qemu/osdep.h"
#include <glib.h>
#include <glib/gprintf.h>
#include <sys/types.h>
#include <sys/time.h>
#include <utime.h>
#include <sys/uio.h>
#include <string.h>
#include <stdint.h>
#include <errno.h>

#include "qemu/compiler.h"
#include "9p-iov-marshal.h"
#include "qemu/bswap.h"

Expand Down
7 changes: 1 addition & 6 deletions fsdev/9p-marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,13 @@
*
*/

#include "qemu/osdep.h"
#include <glib.h>
#include <glib/gprintf.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/time.h>
#include <utime.h>
#include <sys/uio.h>
#include <string.h>
#include <stdint.h>
#include <errno.h>

#include "qemu/compiler.h"
#include "9p-marshal.h"

void v9fs_string_free(V9fsString *str)
Expand Down
3 changes: 1 addition & 2 deletions fsdev/qemu-fsdev-dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
* the COPYING file in the top-level directory.
*
*/
#include <stdio.h>
#include <string.h>
#include "qemu/osdep.h"
#include "qemu-fsdev.h"
#include "qemu/config-file.h"
#include "qemu/module.h"
Expand Down
1 change: 1 addition & 0 deletions fsdev/qemu-fsdev-opts.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* later. See the COPYING file in the top-level directory.
*/

#include "qemu/osdep.h"
#include "qemu/config-file.h"
#include "qemu/option.h"
#include "qemu/module.h"
Expand Down
4 changes: 1 addition & 3 deletions fsdev/qemu-fsdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@
* the COPYING file in the top-level directory.
*
*/
#include <stdio.h>
#include <string.h>
#include "qemu/osdep.h"
#include "qemu-fsdev.h"
#include "qemu/queue.h"
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/config-file.h"
#include "qemu/error-report.h"
Expand Down
1 change: 1 addition & 0 deletions fsdev/virtfs-proxy-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* the COPYING file in the top-level directory.
*/

#include "qemu/osdep.h"
#include <sys/resource.h>
#include <getopt.h>
#include <syslog.h>
Expand Down
2 changes: 1 addition & 1 deletion hw/9pfs/9p-handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*
*/

#include "qemu/osdep.h"
#include "9p.h"
#include "9p-xattr.h"
#include <arpa/inet.h>
Expand All @@ -20,7 +21,6 @@
#include <sys/un.h>
#include "qemu/xattr.h"
#include "qemu/error-report.h"
#include <unistd.h>
#include <linux/fs.h>
#ifdef CONFIG_LINUX_MAGIC_H
#include <linux/magic.h>
Expand Down
1 change: 1 addition & 0 deletions hw/9pfs/9p-local.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*
*/

#include "qemu/osdep.h"
#include "9p.h"
#include "9p-xattr.h"
#include "fsdev/qemu-fsdev.h" /* local_ops */
Expand Down
2 changes: 1 addition & 1 deletion hw/9pfs/9p-posix-acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
*/

#include <sys/types.h>
#include "qemu/osdep.h"
#include "qemu/xattr.h"
#include "9p.h"
#include "fsdev/file-op-9p.h"
Expand Down
1 change: 1 addition & 0 deletions hw/9pfs/9p-proxy.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 <sys/socket.h>
#include <sys/un.h>
#include "9p.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/9pfs/9p-synth.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
*
*/

#include "qemu/osdep.h"
#include "hw/virtio/virtio.h"
#include "9p.h"
#include "9p-xattr.h"
#include "fsdev/qemu-fsdev.h"
#include "9p-synth.h"
#include "qemu/rcu.h"
#include "qemu/rcu_queue.h"
#include <sys/stat.h>

/* Root node for synth file system */
static V9fsSynthNode v9fs_synth_root = {
Expand Down
2 changes: 1 addition & 1 deletion hw/9pfs/9p-xattr-user.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
*/

#include <sys/types.h>
#include "qemu/osdep.h"
#include "9p.h"
#include "fsdev/file-op-9p.h"
#include "9p-xattr.h"
Expand Down
1 change: 1 addition & 0 deletions hw/9pfs/9p-xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*
*/

#include "qemu/osdep.h"
#include "9p.h"
#include "fsdev/file-op-9p.h"
#include "9p-xattr.h"
Expand Down
1 change: 1 addition & 0 deletions hw/9pfs/9p.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*
*/

#include "qemu/osdep.h"
#include "hw/virtio/virtio.h"
#include "hw/i386/pc.h"
#include "qemu/error-report.h"
Expand Down
1 change: 1 addition & 0 deletions hw/9pfs/codir.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*
*/

#include "qemu/osdep.h"
#include "fsdev/qemu-fsdev.h"
#include "qemu/thread.h"
#include "qemu/coroutine.h"
Expand Down
1 change: 1 addition & 0 deletions hw/9pfs/cofile.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*
*/

#include "qemu/osdep.h"
#include "fsdev/qemu-fsdev.h"
#include "qemu/thread.h"
#include "qemu/coroutine.h"
Expand Down
1 change: 1 addition & 0 deletions hw/9pfs/cofs.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*
*/

#include "qemu/osdep.h"
#include "fsdev/qemu-fsdev.h"
#include "qemu/thread.h"
#include "qemu/coroutine.h"
Expand Down
1 change: 1 addition & 0 deletions hw/9pfs/coth.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "block/thread-pool.h"
#include "qemu/coroutine.h"
Expand Down
1 change: 1 addition & 0 deletions hw/9pfs/coxattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*
*/

#include "qemu/osdep.h"
#include "fsdev/qemu-fsdev.h"
#include "qemu/thread.h"
#include "qemu/coroutine.h"
Expand Down
4 changes: 1 addition & 3 deletions tests/virtio-9p-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
* See the COPYING file in the top-level directory.
*/

#include <stdlib.h>
#include <string.h>
#include "qemu/osdep.h"
#include <glib.h>
#include "libqtest.h"
#include "qemu-common.h"
#include "qemu/osdep.h"

/* Tests only initialization so far. TODO: Replace with functional tests */
static void pci_nop(void)
Expand Down

0 comments on commit fbc0412

Please sign in to comment.