[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 07/10] blktap: Avoid some header quirks.



- Include linux/slab.h where needed.
- Avoid the ring typedefs, use struct blktap_x instead.

Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
---
 drivers/block/blktap/blktap.h  |    2 +-
 drivers/block/blktap/control.c |    1 +
 drivers/block/blktap/request.c |    1 +
 drivers/block/blktap/ring.c    |    2 +-
 drivers/block/blktap/sysfs.c   |    2 +-
 5 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/block/blktap/blktap.h b/drivers/block/blktap/blktap.h
index 05cfd1f..e0f7d99 100644
--- a/drivers/block/blktap/blktap.h
+++ b/drivers/block/blktap/blktap.h
@@ -44,7 +44,7 @@ struct blktap_ring {
        struct task_struct            *task;
 
        struct vm_area_struct         *vma;
-       blktap_front_ring_t            ring;
+       struct blktap_front_ring       ring;
        unsigned long                  ring_vstart;
        unsigned long                  user_vstart;
 
diff --git a/drivers/block/blktap/control.c b/drivers/block/blktap/control.c
index 57b1a10..9294a13 100644
--- a/drivers/block/blktap/control.c
+++ b/drivers/block/blktap/control.c
@@ -2,6 +2,7 @@
 #include <linux/sched.h>
 #include <linux/miscdevice.h>
 #include <linux/device.h>
+#include <linux/slab.h>
 #include <asm/uaccess.h>
 
 #include "blktap.h"
diff --git a/drivers/block/blktap/request.c b/drivers/block/blktap/request.c
index 8cfd6c9..e799d08 100644
--- a/drivers/block/blktap/request.c
+++ b/drivers/block/blktap/request.c
@@ -3,6 +3,7 @@
 #include <linux/mutex.h>
 #include <linux/sched.h>
 #include <linux/device.h>
+#include <linux/slab.h>
 
 #include "blktap.h"
 
diff --git a/drivers/block/blktap/ring.c b/drivers/block/blktap/ring.c
index e667d2d..134583d 100644
--- a/drivers/block/blktap/ring.c
+++ b/drivers/block/blktap/ring.c
@@ -352,7 +352,7 @@ blktap_ring_mmap(struct file *filp, struct vm_area_struct 
*vma)
 {
        struct blktap *tap = filp->private_data;
        struct blktap_ring *ring = &tap->ring;
-       blktap_sring_t *sring;
+       struct blktap_sring *sring;
        struct page *page = NULL;
        int err;
 
diff --git a/drivers/block/blktap/sysfs.c b/drivers/block/blktap/sysfs.c
index 182de9a..97ebc53 100644
--- a/drivers/block/blktap/sysfs.c
+++ b/drivers/block/blktap/sysfs.c
@@ -75,7 +75,7 @@ blktap_sysfs_remove_device(struct device *dev,
                goto wait;
 
        if (tap->ring.vma) {
-               blktap_sring_t *sring = tap->ring.ring.sring;
+               struct blktap_sring *sring = tap->ring.ring.sring;
                sring->private.tapif_user.msg = BLKTAP_RING_MESSAGE_CLOSE;
                blktap_ring_kick_user(tap);
        } else {
-- 
1.7.0.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.