diff options
author | Nicolas Palix <npalix@diku.dk> | 2009-07-29 14:10:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:52 -0700 |
commit | 4193d4f41ca771d03d43aa9c38d70a7438e59ca7 (patch) | |
tree | 78a8b8a9ab387b298f4522d470c513a9a8168d0a /drivers/staging/hv/RndisFilter.c | |
parent | 775ef25e575959ba6d104179b62b1b91a256f573 (diff) |
Staging: hv: Remove typedef NETVSC_PACKET and PNETVSC_PACKET
typedef NETVSC_PACKET and PNETVSC_PACKET are removed and their usages
are replace by the use of struct hv_netvsc_packet and
struct hv_netvsc_packet * respectively.
Here is the semantic patch generated to perform this transformation:
(http://coccinelle.lip6.fr/)
//<smpl>
@rm_NETVSC_PACKET@
@@
-typedef struct _NETVSC_PACKET
+struct hv_netvsc_packet
{...}
-NETVSC_PACKET
;
@rm_PNETVSC_PACKET@
@@
-typedef struct _NETVSC_PACKET *PNETVSC_PACKET;
+struct hv_netvsc_packet;
@fixtypedef_NETVSC_PACKET@
typedef NETVSC_PACKET;
@@
-NETVSC_PACKET
+struct hv_netvsc_packet
@fixstruct__NETVSC_PACKET@
@@
struct
-_NETVSC_PACKET
+hv_netvsc_packet
@fixtypedef_PNETVSC_PACKET@
typedef PNETVSC_PACKET;
@@
-PNETVSC_PACKET
+struct hv_netvsc_packet*
//</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/RndisFilter.c')
-rw-r--r-- | drivers/staging/hv/RndisFilter.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/hv/RndisFilter.c b/drivers/staging/hv/RndisFilter.c index 96133a445d0..a6bbb1cbf1e 100644 --- a/drivers/staging/hv/RndisFilter.c +++ b/drivers/staging/hv/RndisFilter.c @@ -68,7 +68,7 @@ typedef struct _RNDIS_REQUEST { RNDIS_MESSAGE ResponseMessage; /* Simplify allocation by having a netvsc packet inline */ - NETVSC_PACKET Packet; + struct hv_netvsc_packet Packet; PAGE_BUFFER Buffer; /* FIXME: We assumed a fixed size request here. */ RNDIS_MESSAGE RequestMessage; @@ -107,13 +107,13 @@ static void RndisFilterReceiveData( RNDIS_DEVICE *Device, RNDIS_MESSAGE *Message, - NETVSC_PACKET *Packet + struct hv_netvsc_packet *Packet ); static int RndisFilterOnReceive( struct hv_device *Device, - NETVSC_PACKET *Packet + struct hv_netvsc_packet *Packet ); static int @@ -184,7 +184,7 @@ RndisFilterOnClose( static int RndisFilterOnSend( struct hv_device *Device, - NETVSC_PACKET *Packet + struct hv_netvsc_packet *Packet ); static void @@ -345,7 +345,7 @@ RndisFilterSendRequest( ) { int ret=0; - NETVSC_PACKET *packet; + struct hv_netvsc_packet *packet; DPRINT_ENTER(NETVSC); @@ -458,7 +458,7 @@ static void RndisFilterReceiveData( RNDIS_DEVICE *Device, RNDIS_MESSAGE *Message, - NETVSC_PACKET *Packet + struct hv_netvsc_packet *Packet ) { RNDIS_PACKET *rndisPacket; @@ -491,7 +491,7 @@ RndisFilterReceiveData( static int RndisFilterOnReceive( struct hv_device *Device, - NETVSC_PACKET *Packet + struct hv_netvsc_packet *Packet ) { struct NETVSC_DEVICE *netDevice = (struct NETVSC_DEVICE*)Device->Extension; @@ -1080,7 +1080,7 @@ RndisFilterOnClose( static int RndisFilterOnSend( struct hv_device *Device, - NETVSC_PACKET *Packet + struct hv_netvsc_packet *Packet ) { int ret=0; |