diff options
author | Nicolas Palix <npalix@diku.dk> | 2009-07-29 08:10:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 15:01:52 -0400 |
commit | 4193d4f41ca771d03d43aa9c38d70a7438e59ca7 (patch) | |
tree | 78a8b8a9ab387b298f4522d470c513a9a8168d0a /drivers/staging/hv/NetVsc.h | |
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/NetVsc.h')
-rw-r--r-- | drivers/staging/hv/NetVsc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/hv/NetVsc.h b/drivers/staging/hv/NetVsc.h index 7636654c252..0389318f2a2 100644 --- a/drivers/staging/hv/NetVsc.h +++ b/drivers/staging/hv/NetVsc.h | |||
@@ -60,7 +60,7 @@ struct NETVSC_DEVICE { | |||
60 | int RefCount; | 60 | int RefCount; |
61 | 61 | ||
62 | int NumOutstandingSends; | 62 | int NumOutstandingSends; |
63 | /* List of free preallocated NETVSC_PACKET to represent receive packet */ | 63 | /* List of free preallocated hv_netvsc_packet to represent receive packet */ |
64 | LIST_ENTRY ReceivePacketList; | 64 | LIST_ENTRY ReceivePacketList; |
65 | spinlock_t receive_packet_list_lock; | 65 | spinlock_t receive_packet_list_lock; |
66 | 66 | ||