]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: hv: remove BOOL and BOOLEAN typedefs
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 14 Jul 2009 22:13:46 +0000 (15:13 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:46 +0000 (12:01 -0700)
The BOOL and BOOLEAN typedefs are now removed from the Hyper-V driver
code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/ChannelMgmt.c
drivers/staging/hv/Hv.h
drivers/staging/hv/NetVsc.c
drivers/staging/hv/RndisFilter.c
drivers/staging/hv/include/ChannelMessages.h
drivers/staging/hv/include/List.h
drivers/staging/hv/include/NetVscApi.h
drivers/staging/hv/include/VmbusPacketFormat.h
drivers/staging/hv/include/osd.h

index 68f25805c3532685cac830ce8b8a8771a768821a..b10db081a19a7a70678a97c3a39288b10631054a 100644 (file)
@@ -240,7 +240,7 @@ VmbusChannelProcessOffer(
        VMBUS_CHANNEL* newChannel=(VMBUS_CHANNEL*)context;
        LIST_ENTRY* anchor;
        LIST_ENTRY* curr;
-       BOOL fNew=TRUE;
+       bool fNew=TRUE;
        VMBUS_CHANNEL* channel;
 
        DPRINT_ENTER(VMBUS);
index bb70724b32f2327e5722e0fd3118e970fd3ffa27..dbe9bb899f114ed65d9f3403b374981155f0bd5b 100644 (file)
@@ -113,7 +113,7 @@ typedef struct {
        u64     GuestId;                        // XenLinux or native Linux. If XenLinux, the hypercall and synic pages has already been initialized
        void*   HypercallPage;
 
-       BOOL    SynICInitialized;
+       bool    SynICInitialized;
        // This is used as an input param to HvCallSignalEvent hypercall. The input param is immutable
        // in our usage and must be dynamic mem (vs stack or global).
        HV_INPUT_SIGNAL_EVENT_BUFFER *SignalEventBuffer;
index 8515bcd7e06b1c2d8fc1748af85f52417ddd2766..ba83b2c0cab3c32cee034d55d4f6e7dc55173316 100644 (file)
@@ -1344,7 +1344,7 @@ NetVscOnReceiveCompletion(
        DEVICE_OBJECT *device = (DEVICE_OBJECT*)packet->Device;
        NETVSC_DEVICE* netDevice;
        u64     transactionId=0;
-       BOOL fSendReceiveComp = FALSE;
+       bool fSendReceiveComp = FALSE;
 
        DPRINT_ENTER(NETVSC);
 
index 9bfd1695836921ff1505ff8187a0c1f10cd3ed92..7478fdb08d8f42d13c6993f38331a06a6cf13fc5 100644 (file)
@@ -383,7 +383,7 @@ RndisFilterReceiveResponse(
        LIST_ENTRY *anchor;
        LIST_ENTRY *curr;
        RNDIS_REQUEST *request=NULL;
-       BOOL found=FALSE;
+       bool found=FALSE;
 
        DPRINT_ENTER(NETVSC);
 
index 87aaeb3e2a74f8d26507f898a1a9a5f5fb01a93a..6a6342ab4d781aeb616908ba19feae4f23013e4f 100644 (file)
@@ -82,7 +82,7 @@ typedef struct _VMBUS_CHANNEL_QUERY_VMBUS_VERSION
 typedef struct _VMBUS_CHANNEL_VERSION_SUPPORTED
 {
     VMBUS_CHANNEL_MESSAGE_HEADER Header;
-    BOOLEAN VersionSupported;
+    bool VersionSupported;
 } VMBUS_CHANNEL_VERSION_SUPPORTED, *PVMBUS_CHANNEL_VERSION_SUPPORTED;
 
 // Offer Channel parameters
@@ -92,7 +92,7 @@ typedef struct _VMBUS_CHANNEL_OFFER_CHANNEL
     VMBUS_CHANNEL_OFFER Offer;
     u32  ChildRelId;
     u8   MonitorId;
-    BOOLEAN MonitorAllocated;
+    bool MonitorAllocated;
 } VMBUS_CHANNEL_OFFER_CHANNEL, *PVMBUS_CHANNEL_OFFER_CHANNEL;
 
 //
@@ -264,7 +264,7 @@ typedef struct _VMBUS_CHANNEL_INITIATE_CONTACT
 typedef struct _VMBUS_CHANNEL_VERSION_RESPONSE
 {
     VMBUS_CHANNEL_MESSAGE_HEADER Header;
-    BOOLEAN     VersionSupported;
+    bool     VersionSupported;
 } VMBUS_CHANNEL_VERSION_RESPONSE, *PVMBUS_CHANNEL_VERSION_RESPONSE;
 
 typedef VMBUS_CHANNEL_MESSAGE_HEADER VMBUS_CHANNEL_UNLOAD, *PVMBUS_CHANNEL_UNLOAD;
index c2145b2ed04aca3d124856f1341cb46eb8739a7e..581fe534013fd9af58081bb1163095569eb0cab4 100644 (file)
@@ -56,7 +56,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY;
 
 
 /*
- *  BOOLEAN
+ *  bool
  *  IsListEmpty(
  *      PLIST_ENTRY ListHead
  *      );
index 06e734e4023a5ed502dbadeef09886058a6d5498..626054bcda7ddb75e517bafa9a7744ed162f7018 100644 (file)
@@ -72,7 +72,7 @@ typedef struct _NETVSC_PACKET {
        DLIST_ENTRY                             ListEntry;
 
        DEVICE_OBJECT                   *Device;
-       BOOL                                    IsDataPacket;
+       bool                                    IsDataPacket;
 
        // Valid only for receives when we break a xfer page packet into multiple netvsc packets
        XFERPAGE_PACKET         *XferPagePacket;
@@ -131,7 +131,7 @@ typedef struct _NETVSC_DRIVER_OBJECT {
 
 typedef struct _NETVSC_DEVICE_INFO {
     unsigned char      MacAddr[6];
-    BOOL       LinkState;      // 0 - link up, 1 - link down
+    bool       LinkState;      // 0 - link up, 1 - link down
 } NETVSC_DEVICE_INFO;
 
 //
index 04c3a0283a797dbdb2ad245bed35f1f4f27c6617..9689f941e8dca5c4db7259ec7cf10628ca77c582 100644 (file)
@@ -113,7 +113,7 @@ typedef struct VMTRANSFER_PAGE_PACKET_HEADER {
 #endif
 
     u16                  TransferPageSetId;
-    BOOLEAN                 SenderOwnsSet;
+    bool                 SenderOwnsSet;
     u8                   Reserved;
     u32                  RangeCount;
     VMTRANSFER_PAGE_RANGE   Ranges[1];
index d1c8a42ffd47179f8493f6940543f02d6170b1fc..1a9e4dee784de8998caa71bbfb1fa605ab1ca49c 100644 (file)
@@ -98,8 +98,6 @@ typedef struct _DLIST_ENTRY {
 // Other types
 //
 //typedef unsigned char                GUID[16];
-typedef unsigned char          BOOL;
-typedef unsigned char          BOOLEAN;
 typedef void*                          HANDLE;
 
 typedef struct {