summaryrefslogtreecommitdiff
path: root/drivers/staging/hv/StorVsc.c
diff options
context:
space:
mode:
authorNicolas Palix <npalix@diku.dk>2009-07-29 12:10:19 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 19:01:52 (GMT)
commit0b3f683488aaf5f501dfa9758054a23b1b625e4f (patch)
tree877ba42d804db8cef822577d7a2482bf5aae99a9 /drivers/staging/hv/StorVsc.c
parent4193d4f41ca771d03d43aa9c38d70a7438e59ca7 (diff)
downloadlinux-fsl-qoriq-0b3f683488aaf5f501dfa9758054a23b1b625e4f.tar.xz
Staging: hv: Remove typedef STORVSC_REQUEST and PSTORVSC_REQUEST
typedef STORVSC_REQUEST and PSTORVSC_REQUEST are removed and their usages are replace by the use of struct hv_storvsc_request and struct hv_storvsc_request * respectively. Here is the semantic patch generated to perform this transformation: (http://coccinelle.lip6.fr/) //<smpl> @rm_STORVSC_REQUEST@ @@ -typedef struct _STORVSC_REQUEST +struct hv_storvsc_request {...} -STORVSC_REQUEST ; @rm_PSTORVSC_REQUEST@ @@ -typedef struct _STORVSC_REQUEST *PSTORVSC_REQUEST; +struct hv_storvsc_request; @fixtypedef_STORVSC_REQUEST@ typedef STORVSC_REQUEST; @@ -STORVSC_REQUEST +struct hv_storvsc_request @fixstruct__STORVSC_REQUEST@ @@ struct -_STORVSC_REQUEST +hv_storvsc_request @fixtypedef_PSTORVSC_REQUEST@ typedef PSTORVSC_REQUEST; @@ -PSTORVSC_REQUEST +struct hv_storvsc_request* //</smpl> Signed-off-by: Nicolas Palix <npalix@diku.dk> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/StorVsc.c')
-rw-r--r--drivers/staging/hv/StorVsc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/hv/StorVsc.c b/drivers/staging/hv/StorVsc.c
index bc313a6..5955999 100644
--- a/drivers/staging/hv/StorVsc.c
+++ b/drivers/staging/hv/StorVsc.c
@@ -43,7 +43,7 @@
typedef struct _STORVSC_REQUEST_EXTENSION {
/* LIST_ENTRY ListEntry; */
- STORVSC_REQUEST *Request;
+ struct hv_storvsc_request *Request;
struct hv_device *Device;
/* Synchronize the request/response if needed */
@@ -108,7 +108,7 @@ StorVscOnDeviceRemove(
static int
StorVscOnIORequest(
struct hv_device *Device,
- STORVSC_REQUEST *Request
+ struct hv_storvsc_request *Request
);
static int
@@ -272,7 +272,7 @@ StorVscInitialize(
DPRINT_ENTER(STORVSC);
DPRINT_DBG(STORVSC, "sizeof(STORVSC_REQUEST)=%zd sizeof(STORVSC_REQUEST_EXTENSION)=%zd sizeof(VSTOR_PACKET)=%zd, sizeof(VMSCSI_REQUEST)=%zd",
- sizeof(STORVSC_REQUEST), sizeof(STORVSC_REQUEST_EXTENSION), sizeof(VSTOR_PACKET), sizeof(VMSCSI_REQUEST));
+ sizeof(struct hv_storvsc_request), sizeof(STORVSC_REQUEST_EXTENSION), sizeof(VSTOR_PACKET), sizeof(VMSCSI_REQUEST));
/* Make sure we are at least 2 pages since 1 page is used for control */
ASSERT(storDriver->RingBufferSize >= (PAGE_SIZE << 1));
@@ -704,7 +704,7 @@ Description:
int
StorVscOnIORequest(
struct hv_device *Device,
- STORVSC_REQUEST *Request
+ struct hv_storvsc_request *Request
)
{
STORVSC_DEVICE *storDevice;
@@ -822,7 +822,7 @@ StorVscOnIOCompletion(
STORVSC_REQUEST_EXTENSION *RequestExt
)
{
- STORVSC_REQUEST *request;
+ struct hv_storvsc_request *request;
STORVSC_DEVICE *storDevice;
DPRINT_ENTER(STORVSC);