diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-04-14 17:21:50 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-04-14 18:26:29 -0400 |
commit | 5489377ce40d52fb722dcd811617114cebad7bba (patch) | |
tree | ae25a447f2c5b6a7cdb8be67c232d424f0223cb2 /drivers/xen/blkback/common.h | |
parent | a1397fa3090c25c6c51c04b4101f2786d16b615f (diff) |
xen/blkback: blkif->struct blkif_st
checkpatch.pl suggested that we don't use the typdef in common.h
and this triggered this avalanche of patches.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/blkback/common.h')
-rw-r--r-- | drivers/xen/blkback/common.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/drivers/xen/blkback/common.h b/drivers/xen/blkback/common.h index 4c140c8e75bd..be3fc93d8a31 100644 --- a/drivers/xen/blkback/common.h +++ b/drivers/xen/blkback/common.h | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <linux/blkdev.h> | 34 | #include <linux/blkdev.h> |
35 | #include <linux/vmalloc.h> | 35 | #include <linux/vmalloc.h> |
36 | #include <linux/wait.h> | 36 | #include <linux/wait.h> |
37 | #include <asm/io.h> | 37 | #include <linux/io.h> |
38 | #include <asm/setup.h> | 38 | #include <asm/setup.h> |
39 | #include <asm/pgalloc.h> | 39 | #include <asm/pgalloc.h> |
40 | #include <asm/hypervisor.h> | 40 | #include <asm/hypervisor.h> |
@@ -44,7 +44,7 @@ | |||
44 | 44 | ||
45 | #define DPRINTK(_f, _a...) \ | 45 | #define DPRINTK(_f, _a...) \ |
46 | pr_debug("(file=%s, line=%d) " _f, \ | 46 | pr_debug("(file=%s, line=%d) " _f, \ |
47 | __FILE__ , __LINE__ , ## _a ) | 47 | __FILE__ , __LINE__ , ## _a) |
48 | 48 | ||
49 | struct vbd { | 49 | struct vbd { |
50 | blkif_vdev_t handle; /* what the domain refers to this vbd as */ | 50 | blkif_vdev_t handle; /* what the domain refers to this vbd as */ |
@@ -57,7 +57,7 @@ struct vbd { | |||
57 | 57 | ||
58 | struct backend_info; | 58 | struct backend_info; |
59 | 59 | ||
60 | typedef struct blkif_st { | 60 | struct blkif_st { |
61 | /* Unique identifier for this interface. */ | 61 | /* Unique identifier for this interface. */ |
62 | domid_t domid; | 62 | domid_t domid; |
63 | unsigned int handle; | 63 | unsigned int handle; |
@@ -94,13 +94,14 @@ typedef struct blkif_st { | |||
94 | 94 | ||
95 | grant_handle_t shmem_handle; | 95 | grant_handle_t shmem_handle; |
96 | grant_ref_t shmem_ref; | 96 | grant_ref_t shmem_ref; |
97 | } blkif_t; | 97 | }; |
98 | 98 | ||
99 | blkif_t *blkif_alloc(domid_t domid); | 99 | struct blkif_st *blkif_alloc(domid_t domid); |
100 | void blkif_disconnect(blkif_t *blkif); | 100 | void blkif_disconnect(struct blkif_st *blkif); |
101 | void blkif_free(blkif_t *blkif); | 101 | void blkif_free(struct blkif_st *blkif); |
102 | int blkif_map(blkif_t *blkif, unsigned long shared_page, unsigned int evtchn); | 102 | int blkif_map(struct blkif_st *blkif, unsigned long shared_page, |
103 | void vbd_resize(blkif_t *blkif); | 103 | unsigned int evtchn); |
104 | void vbd_resize(struct blkif_st *blkif); | ||
104 | 105 | ||
105 | #define blkif_get(_b) (atomic_inc(&(_b)->refcnt)) | 106 | #define blkif_get(_b) (atomic_inc(&(_b)->refcnt)) |
106 | #define blkif_put(_b) \ | 107 | #define blkif_put(_b) \ |
@@ -110,7 +111,7 @@ void vbd_resize(blkif_t *blkif); | |||
110 | } while (0) | 111 | } while (0) |
111 | 112 | ||
112 | /* Create a vbd. */ | 113 | /* Create a vbd. */ |
113 | int vbd_create(blkif_t *blkif, blkif_vdev_t vdevice, unsigned major, | 114 | int vbd_create(struct blkif_st *blkif, blkif_vdev_t vdevice, unsigned major, |
114 | unsigned minor, int readonly, int cdrom); | 115 | unsigned minor, int readonly, int cdrom); |
115 | void vbd_free(struct vbd *vbd); | 116 | void vbd_free(struct vbd *vbd); |
116 | 117 | ||
@@ -125,7 +126,7 @@ struct phys_req { | |||
125 | blkif_sector_t sector_number; | 126 | blkif_sector_t sector_number; |
126 | }; | 127 | }; |
127 | 128 | ||
128 | int vbd_translate(struct phys_req *req, blkif_t *blkif, int operation); | 129 | int vbd_translate(struct phys_req *req, struct blkif_st *blkif, int operation); |
129 | 130 | ||
130 | int blkif_interface_init(void); | 131 | int blkif_interface_init(void); |
131 | 132 | ||