aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-07-14 15:13:46 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 12:01:46 -0700
commit27274e5df29d6457f1b7f74d211cde0c1b4a55c1 (patch)
tree78c320c6214570b2c65cad4a78089f070f7ad738 /drivers/staging
parent84988a105e4acfa00f5a1e48b2c7edf1d4aa46a2 (diff)
Staging: hv: remove BOOL and BOOLEAN typedefs
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/hv/ChannelMgmt.c2
-rw-r--r--drivers/staging/hv/Hv.h2
-rw-r--r--drivers/staging/hv/NetVsc.c2
-rw-r--r--drivers/staging/hv/RndisFilter.c2
-rw-r--r--drivers/staging/hv/include/ChannelMessages.h6
-rw-r--r--drivers/staging/hv/include/List.h2
-rw-r--r--drivers/staging/hv/include/NetVscApi.h4
-rw-r--r--drivers/staging/hv/include/VmbusPacketFormat.h2
-rw-r--r--drivers/staging/hv/include/osd.h2
9 files changed, 11 insertions, 13 deletions
diff --git a/drivers/staging/hv/ChannelMgmt.c b/drivers/staging/hv/ChannelMgmt.c
index 68f25805c35..b10db081a19 100644
--- a/drivers/staging/hv/ChannelMgmt.c
+++ b/drivers/staging/hv/ChannelMgmt.c
@@ -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);
diff --git a/drivers/staging/hv/Hv.h b/drivers/staging/hv/Hv.h
index bb70724b32f..dbe9bb899f1 100644
--- a/drivers/staging/hv/Hv.h
+++ b/drivers/staging/hv/Hv.h
@@ -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;
diff --git a/drivers/staging/hv/NetVsc.c b/drivers/staging/hv/NetVsc.c
index 8515bcd7e06..ba83b2c0cab 100644
--- a/drivers/staging/hv/NetVsc.c
+++ b/drivers/staging/hv/NetVsc.c
@@ -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);
diff --git a/drivers/staging/hv/RndisFilter.c b/drivers/staging/hv/RndisFilter.c
index 9bfd1695836..7478fdb08d8 100644
--- a/drivers/staging/hv/RndisFilter.c
+++ b/drivers/staging/hv/RndisFilter.c
@@ -383,7 +383,7 @@ RndisFilterReceiveResponse(
LIST_ENTRY *anchor;
LIST_ENTRY *curr;
RNDIS_REQUEST *request=NULL;
- BOOL found=FALSE;
+ bool found=FALSE;
DPRINT_ENTER(NETVSC);
diff --git a/drivers/staging/hv/include/ChannelMessages.h b/drivers/staging/hv/include/ChannelMessages.h
index 87aaeb3e2a7..6a6342ab4d7 100644
--- a/drivers/staging/hv/include/ChannelMessages.h
+++ b/drivers/staging/hv/include/ChannelMessages.h
@@ -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;
diff --git a/drivers/staging/hv/include/List.h b/drivers/staging/hv/include/List.h
index c2145b2ed04..581fe534013 100644
--- a/drivers/staging/hv/include/List.h
+++ b/drivers/staging/hv/include/List.h
@@ -56,7 +56,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY;
/*
- * BOOLEAN
+ * bool
* IsListEmpty(
* PLIST_ENTRY ListHead
* );
diff --git a/drivers/staging/hv/include/NetVscApi.h b/drivers/staging/hv/include/NetVscApi.h
index 06e734e4023..626054bcda7 100644
--- a/drivers/staging/hv/include/NetVscApi.h
+++ b/drivers/staging/hv/include/NetVscApi.h
@@ -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;
//
diff --git a/drivers/staging/hv/include/VmbusPacketFormat.h b/drivers/staging/hv/include/VmbusPacketFormat.h
index 04c3a0283a7..9689f941e8d 100644
--- a/drivers/staging/hv/include/VmbusPacketFormat.h
+++ b/drivers/staging/hv/include/VmbusPacketFormat.h
@@ -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];
diff --git a/drivers/staging/hv/include/osd.h b/drivers/staging/hv/include/osd.h
index d1c8a42ffd4..1a9e4dee784 100644
--- a/drivers/staging/hv/include/osd.h
+++ b/drivers/staging/hv/include/osd.h
@@ -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 {