Skip to content

Commit

Permalink
net: 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: 1454089805-5470-11-git-send-email-peter.maydell@linaro.org
  • Loading branch information
pm215 committed Feb 4, 2016
1 parent 7df7482 commit 2744d92
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 15 deletions.
1 change: 1 addition & 0 deletions net/checksum.c
Expand Up @@ -15,6 +15,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "net/checksum.h"

Expand Down
1 change: 1 addition & 0 deletions net/dump.c
Expand Up @@ -22,6 +22,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "clients.h"
#include "qemu-common.h"
#include "qemu/error-report.h"
Expand Down
1 change: 1 addition & 0 deletions net/eth.c
Expand Up @@ -15,6 +15,7 @@
*
*/

#include "qemu/osdep.h"
#include "net/eth.h"
#include "net/checksum.h"
#include "qemu-common.h"
Expand Down
1 change: 1 addition & 0 deletions net/filter-buffer.c
Expand Up @@ -6,6 +6,7 @@
* later. See the COPYING file in the top-level directory.
*/

#include "qemu/osdep.h"
#include "net/filter.h"
#include "net/queue.h"
#include "qemu-common.h"
Expand Down
1 change: 1 addition & 0 deletions net/filter.c
Expand Up @@ -6,6 +6,7 @@
* later. See the COPYING file in the top-level directory.
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qapi/qmp/qerror.h"
#include "qemu/error-report.h"
Expand Down
1 change: 1 addition & 0 deletions net/hub.c
Expand Up @@ -12,6 +12,7 @@
*
*/

#include "qemu/osdep.h"
#include "monitor/monitor.h"
#include "net/net.h"
#include "clients.h"
Expand Down
2 changes: 1 addition & 1 deletion net/l2tpv3.c
Expand Up @@ -23,9 +23,9 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include <linux/ip.h>
#include <netdb.h>
#include "config-host.h"
#include "net/net.h"
#include "clients.h"
#include "qemu-common.h"
Expand Down
2 changes: 1 addition & 1 deletion net/net.c
Expand Up @@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "config-host.h"
#include "qemu/osdep.h"

#include "net/net.h"
#include "clients.h"
Expand Down
3 changes: 1 addition & 2 deletions net/netmap.c
Expand Up @@ -23,11 +23,10 @@
*/


#include "qemu/osdep.h"
#include <sys/ioctl.h>
#include <net/if.h>
#include <sys/mman.h>
#include <stdint.h>
#include <stdio.h>
#define NETMAP_WITH_LIBS
#include <net/netmap.h>
#include <net/netmap_user.h>
Expand Down
1 change: 1 addition & 0 deletions net/queue.c
Expand Up @@ -21,6 +21,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "net/queue.h"
#include "qemu/queue.h"
#include "net/net.h"
Expand Down
2 changes: 1 addition & 1 deletion net/slirp.c
Expand Up @@ -21,9 +21,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "net/slirp.h"

#include "config-host.h"

#ifndef _WIN32
#include <pwd.h>
Expand Down
2 changes: 1 addition & 1 deletion net/socket.c
Expand Up @@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "config-host.h"
#include "qemu/osdep.h"

#include "net/net.h"
#include "clients.h"
Expand Down
2 changes: 1 addition & 1 deletion net/tap-aix.c
Expand Up @@ -22,8 +22,8 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "tap_int.h"
#include <stdio.h>

int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
int vnet_hdr_required, int mq_required, Error **errp)
Expand Down
1 change: 1 addition & 0 deletions net/tap-bsd.c
Expand Up @@ -22,6 +22,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "tap_int.h"
#include "qemu-common.h"
#include "sysemu/sysemu.h"
Expand Down
2 changes: 1 addition & 1 deletion net/tap-haiku.c
Expand Up @@ -22,8 +22,8 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "tap_int.h"
#include <stdio.h>

int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
int vnet_hdr_required, int mq_required, Error **errp)
Expand Down
1 change: 1 addition & 0 deletions net/tap-linux.c
Expand Up @@ -23,6 +23,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "tap_int.h"
#include "tap-linux.h"
#include "net/tap.h"
Expand Down
2 changes: 1 addition & 1 deletion net/tap-solaris.c
Expand Up @@ -22,10 +22,10 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "tap_int.h"
#include "sysemu/sysemu.h"

#include <sys/stat.h>
#include <sys/ethernet.h>
#include <sys/sockio.h>
#include <netinet/arp.h>
Expand Down
2 changes: 1 addition & 1 deletion net/tap-win32.c
Expand Up @@ -26,6 +26,7 @@
* distribution); if not, see <http://www.gnu.org/licenses/>.
*/

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

#include "qemu-common.h"
Expand All @@ -34,7 +35,6 @@
#include "net/tap.h" /* tap_has_ufo, ... */
#include "sysemu/sysemu.h"
#include "qemu/error-report.h"
#include <stdio.h>
#include <windows.h>
#include <winioctl.h>

Expand Down
3 changes: 1 addition & 2 deletions net/tap.c
Expand Up @@ -23,12 +23,11 @@
* THE SOFTWARE.
*/

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

#include "config-host.h"

#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <net/if.h>
Expand Down
3 changes: 1 addition & 2 deletions net/util.c
Expand Up @@ -22,9 +22,8 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "util.h"
#include <errno.h>
#include <stdlib.h>

int net_parse_macaddr(uint8_t *macaddr, const char *p)
{
Expand Down
2 changes: 1 addition & 1 deletion net/vde.c
Expand Up @@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "config-host.h"
#include "qemu/osdep.h"

#include <libvdeplug.h>

Expand Down
1 change: 1 addition & 0 deletions net/vhost-user.c
Expand Up @@ -8,6 +8,7 @@
*
*/

#include "qemu/osdep.h"
#include "clients.h"
#include "net/vhost_net.h"
#include "net/vhost-user.h"
Expand Down

0 comments on commit 2744d92

Please sign in to comment.