svn commit: r238072 - in head/sys/dev/virtio: . balloon block
network
David E. O'Brien
obrien at FreeBSD.org
Tue Jul 3 15:15:42 UTC 2012
Author: obrien
Date: Tue Jul 3 15:15:41 2012
New Revision: 238072
URL: http://svn.freebsd.org/changeset/base/238072
Log:
Do not include <sys/types.h> in the local headers. The .c files including
them have already included <sys/param.h> before these headers are included.
Modified:
head/sys/dev/virtio/balloon/virtio_balloon.h
head/sys/dev/virtio/block/virtio_blk.h
head/sys/dev/virtio/network/virtio_net.h
head/sys/dev/virtio/virtio.h
head/sys/dev/virtio/virtio_ring.h
head/sys/dev/virtio/virtqueue.h
Modified: head/sys/dev/virtio/balloon/virtio_balloon.h
==============================================================================
--- head/sys/dev/virtio/balloon/virtio_balloon.h Tue Jul 3 12:08:55 2012 (r238071)
+++ head/sys/dev/virtio/balloon/virtio_balloon.h Tue Jul 3 15:15:41 2012 (r238072)
@@ -31,8 +31,6 @@
#ifndef _VIRTIO_BALLOON_H
#define _VIRTIO_BALLOON_H
-#include <sys/types.h>
-
/* Feature bits. */
#define VIRTIO_BALLOON_F_MUST_TELL_HOST 0x1 /* Tell before reclaiming pages */
#define VIRTIO_BALLOON_F_STATS_VQ 0x2 /* Memory stats virtqueue */
Modified: head/sys/dev/virtio/block/virtio_blk.h
==============================================================================
--- head/sys/dev/virtio/block/virtio_blk.h Tue Jul 3 12:08:55 2012 (r238071)
+++ head/sys/dev/virtio/block/virtio_blk.h Tue Jul 3 15:15:41 2012 (r238072)
@@ -31,8 +31,6 @@
#ifndef _VIRTIO_BLK_H
#define _VIRTIO_BLK_H
-#include <sys/types.h>
-
/* Feature bits */
#define VIRTIO_BLK_F_BARRIER 0x0001 /* Does host support barriers? */
#define VIRTIO_BLK_F_SIZE_MAX 0x0002 /* Indicates maximum segment size */
Modified: head/sys/dev/virtio/network/virtio_net.h
==============================================================================
--- head/sys/dev/virtio/network/virtio_net.h Tue Jul 3 12:08:55 2012 (r238071)
+++ head/sys/dev/virtio/network/virtio_net.h Tue Jul 3 15:15:41 2012 (r238072)
@@ -31,8 +31,6 @@
#ifndef _VIRTIO_NET_H
#define _VIRTIO_NET_H
-#include <sys/types.h>
-
/* The feature bitmap for virtio net */
#define VIRTIO_NET_F_CSUM 0x00001 /* Host handles pkts w/ partial csum */
#define VIRTIO_NET_F_GUEST_CSUM 0x00002 /* Guest handles pkts w/ partial csum*/
Modified: head/sys/dev/virtio/virtio.h
==============================================================================
--- head/sys/dev/virtio/virtio.h Tue Jul 3 12:08:55 2012 (r238071)
+++ head/sys/dev/virtio/virtio.h Tue Jul 3 15:15:41 2012 (r238072)
@@ -31,8 +31,6 @@
#ifndef _VIRTIO_H_
#define _VIRTIO_H_
-#include <sys/types.h>
-
struct vq_alloc_info;
/* VirtIO device IDs. */
Modified: head/sys/dev/virtio/virtio_ring.h
==============================================================================
--- head/sys/dev/virtio/virtio_ring.h Tue Jul 3 12:08:55 2012 (r238071)
+++ head/sys/dev/virtio/virtio_ring.h Tue Jul 3 15:15:41 2012 (r238072)
@@ -33,8 +33,6 @@
#ifndef VIRTIO_RING_H
#define VIRTIO_RING_H
-#include <sys/types.h>
-
/* This marks a buffer as continuing via the next field. */
#define VRING_DESC_F_NEXT 1
/* This marks a buffer as write-only (otherwise read-only). */
Modified: head/sys/dev/virtio/virtqueue.h
==============================================================================
--- head/sys/dev/virtio/virtqueue.h Tue Jul 3 12:08:55 2012 (r238071)
+++ head/sys/dev/virtio/virtqueue.h Tue Jul 3 15:15:41 2012 (r238072)
@@ -29,8 +29,6 @@
#ifndef _VIRTIO_VIRTQUEUE_H
#define _VIRTIO_VIRTQUEUE_H
-#include <sys/types.h>
-
struct virtqueue;
struct sglist;
More information about the svn-src-all
mailing list