From: Greg Kroah-Hartman Date: Tue, 14 Jul 2009 22:14:20 +0000 (-0700) Subject: Staging: hv: remove SIZE_T typedef X-Git-Tag: firefly_0821_release~12948^2~466 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=45635d9703d649645afa52b23896d02e38a73852;p=firefly-linux-kernel-4.4.55.git Staging: hv: remove SIZE_T typedef The SIZE_T typedef is now removed from the Hyper-V driver code. Cc: Hank Janssen Cc: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/Connection.c b/drivers/staging/hv/Connection.c index 7d8e47e1002a..d5815f981ac7 100644 --- a/drivers/staging/hv/Connection.c +++ b/drivers/staging/hv/Connection.c @@ -386,7 +386,7 @@ Description: int VmbusPostMessage( void * buffer, - SIZE_T bufferLen + size_t bufferLen ) { int ret=0; diff --git a/drivers/staging/hv/Hv.c b/drivers/staging/hv/Hv.c index 586257561a1c..0e7397793ed9 100644 --- a/drivers/staging/hv/Hv.c +++ b/drivers/staging/hv/Hv.c @@ -397,7 +397,7 @@ HvPostMessage( HV_CONNECTION_ID connectionId, HV_MESSAGE_TYPE messageType, void * payload, - SIZE_T payloadSize + size_t payloadSize ) { struct alignedInput { diff --git a/drivers/staging/hv/Hv.h b/drivers/staging/hv/Hv.h index a3c76e2d86d1..bb70724b32f2 100644 --- a/drivers/staging/hv/Hv.h +++ b/drivers/staging/hv/Hv.h @@ -163,7 +163,7 @@ HvPostMessage( HV_CONNECTION_ID connectionId, HV_MESSAGE_TYPE messageType, void * payload, - SIZE_T payloadSize + size_t payloadSize ); static HV_STATUS diff --git a/drivers/staging/hv/VmbusPrivate.h b/drivers/staging/hv/VmbusPrivate.h index 383ab3206082..671a1e15bd5d 100644 --- a/drivers/staging/hv/VmbusPrivate.h +++ b/drivers/staging/hv/VmbusPrivate.h @@ -149,7 +149,7 @@ VmbusDisconnect( static int VmbusPostMessage( void * buffer, - SIZE_T bufSize + size_t bufSize ); static int diff --git a/drivers/staging/hv/include/osd.h b/drivers/staging/hv/include/osd.h index 366e890762ac..39173903778a 100644 --- a/drivers/staging/hv/include/osd.h +++ b/drivers/staging/hv/include/osd.h @@ -97,7 +97,6 @@ typedef struct _DLIST_ENTRY { // // Other types // -typedef unsigned long SIZE_T; //typedef unsigned char GUID[16]; typedef unsigned char BOOL; typedef unsigned char BOOLEAN; @@ -188,7 +187,7 @@ extern HANDLE TimerCreate(PFN_TIMER_CALLBACK pfnTimerCB, void* context); extern void TimerClose(HANDLE hTimer); extern int TimerStop(HANDLE hTimer); extern void TimerStart(HANDLE hTimer, u32 expirationInUs); -extern SIZE_T GetTickCount(void); +extern size_t GetTickCount(void); extern HANDLE WaitEventCreate(void); extern void WaitEventClose(HANDLE hWait); diff --git a/drivers/staging/hv/osd.c b/drivers/staging/hv/osd.c index 8928ca8da66b..f857cfd45574 100644 --- a/drivers/staging/hv/osd.c +++ b/drivers/staging/hv/osd.c @@ -312,7 +312,7 @@ void TimerClose(HANDLE hTimer) kfree(t); } -SIZE_T GetTickCount(void) +size_t GetTickCount(void) { return jiffies; }