Commit bd1de709 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: hv: fix sparse static warnings

This fixes up all of the sparse warnings about static functions.

Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0b3f6834
...@@ -75,7 +75,7 @@ BlkVscInitialize( ...@@ -75,7 +75,7 @@ BlkVscInitialize(
return ret; return ret;
} }
int static int
BlkVscOnDeviceAdd( BlkVscOnDeviceAdd(
struct hv_device *Device, struct hv_device *Device,
void *AdditionalInfo void *AdditionalInfo
......
...@@ -153,7 +153,7 @@ VmbusChannelClearEvent( ...@@ -153,7 +153,7 @@ VmbusChannelClearEvent(
Retrieve various channel debug info Retrieve various channel debug info
--*/ --*/
void static void
VmbusChannelGetDebugInfo( VmbusChannelGetDebugInfo(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
VMBUS_CHANNEL_DEBUG_INFO *DebugInfo VMBUS_CHANNEL_DEBUG_INFO *DebugInfo
...@@ -197,7 +197,7 @@ VmbusChannelGetDebugInfo( ...@@ -197,7 +197,7 @@ VmbusChannelGetDebugInfo(
Open the specified channel. Open the specified channel.
--*/ --*/
int static int
VmbusChannelOpen( VmbusChannelOpen(
VMBUS_CHANNEL *NewChannel, VMBUS_CHANNEL *NewChannel,
u32 SendRingBufferSize, u32 SendRingBufferSize,
...@@ -510,7 +510,7 @@ VmbusChannelCreateGpadlHeader( ...@@ -510,7 +510,7 @@ VmbusChannelCreateGpadlHeader(
Estabish a GPADL for the specified buffer Estabish a GPADL for the specified buffer
--*/ --*/
int static int
VmbusChannelEstablishGpadl( VmbusChannelEstablishGpadl(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
void * Kbuffer, /* from kmalloc() */ void * Kbuffer, /* from kmalloc() */
...@@ -615,7 +615,7 @@ VmbusChannelEstablishGpadl( ...@@ -615,7 +615,7 @@ VmbusChannelEstablishGpadl(
Teardown the specified GPADL handle Teardown the specified GPADL handle
--*/ --*/
int static int
VmbusChannelTeardownGpadl( VmbusChannelTeardownGpadl(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
u32 GpadlHandle u32 GpadlHandle
...@@ -676,7 +676,7 @@ VmbusChannelTeardownGpadl( ...@@ -676,7 +676,7 @@ VmbusChannelTeardownGpadl(
Close the specified channel Close the specified channel
--*/ --*/
void static void
VmbusChannelClose( VmbusChannelClose(
VMBUS_CHANNEL *Channel VMBUS_CHANNEL *Channel
) )
...@@ -753,7 +753,7 @@ VmbusChannelClose( ...@@ -753,7 +753,7 @@ VmbusChannelClose(
Send the specified buffer on the given channel Send the specified buffer on the given channel
--*/ --*/
int static int
VmbusChannelSendPacket( VmbusChannelSendPacket(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
const void * Buffer, const void * Buffer,
...@@ -819,7 +819,7 @@ VmbusChannelSendPacket( ...@@ -819,7 +819,7 @@ VmbusChannelSendPacket(
Send a range of single-page buffer packets using a GPADL Direct packet type. Send a range of single-page buffer packets using a GPADL Direct packet type.
--*/ --*/
int static int
VmbusChannelSendPacketPageBuffer( VmbusChannelSendPacketPageBuffer(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
PAGE_BUFFER PageBuffers[], PAGE_BUFFER PageBuffers[],
...@@ -902,7 +902,7 @@ VmbusChannelSendPacketPageBuffer( ...@@ -902,7 +902,7 @@ VmbusChannelSendPacketPageBuffer(
Send a multi-page buffer packet using a GPADL Direct packet type. Send a multi-page buffer packet using a GPADL Direct packet type.
--*/ --*/
int static int
VmbusChannelSendPacketMultiPageBuffer( VmbusChannelSendPacketMultiPageBuffer(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
MULTIPAGE_BUFFER *MultiPageBuffer, MULTIPAGE_BUFFER *MultiPageBuffer,
...@@ -985,7 +985,7 @@ VmbusChannelSendPacketMultiPageBuffer( ...@@ -985,7 +985,7 @@ VmbusChannelSendPacketMultiPageBuffer(
--*/ --*/
/* TODO: Do we ever receive a gpa direct packet other than the ones we send ? */ /* TODO: Do we ever receive a gpa direct packet other than the ones we send ? */
int static int
VmbusChannelRecvPacket( VmbusChannelRecvPacket(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
void * Buffer, void * Buffer,
...@@ -1063,7 +1063,7 @@ VmbusChannelRecvPacket( ...@@ -1063,7 +1063,7 @@ VmbusChannelRecvPacket(
Retrieve the raw packet on the specified channel Retrieve the raw packet on the specified channel
--*/ --*/
int static int
VmbusChannelRecvPacketRaw( VmbusChannelRecvPacketRaw(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
void * Buffer, void * Buffer,
...@@ -1140,7 +1140,7 @@ VmbusChannelRecvPacketRaw( ...@@ -1140,7 +1140,7 @@ VmbusChannelRecvPacketRaw(
Channel event callback Channel event callback
--*/ --*/
void static void
VmbusChannelOnChannelEvent( VmbusChannelOnChannelEvent(
VMBUS_CHANNEL *Channel VMBUS_CHANNEL *Channel
) )
...@@ -1165,7 +1165,7 @@ VmbusChannelOnChannelEvent( ...@@ -1165,7 +1165,7 @@ VmbusChannelOnChannelEvent(
Timer event callback Timer event callback
--*/ --*/
void static void
VmbusChannelOnTimer( VmbusChannelOnTimer(
void *Context void *Context
) )
......
...@@ -87,7 +87,7 @@ VmbusChannelProcessRescindOffer( ...@@ -87,7 +87,7 @@ VmbusChannelProcessRescindOffer(
#define MAX_NUM_DEVICE_CLASSES_SUPPORTED 4 #define MAX_NUM_DEVICE_CLASSES_SUPPORTED 4
const GUID gSupportedDeviceClasses[MAX_NUM_DEVICE_CLASSES_SUPPORTED]= { static const GUID gSupportedDeviceClasses[MAX_NUM_DEVICE_CLASSES_SUPPORTED]= {
/* {ba6163d9-04a1-4d29-b605-72e2ffb1dc7f} */ /* {ba6163d9-04a1-4d29-b605-72e2ffb1dc7f} */
{.Data = {0xd9, 0x63, 0x61, 0xba, 0xa1, 0x04, 0x29, 0x4d, 0xb6, 0x05, 0x72, 0xe2, 0xff, 0xb1, 0xdc, 0x7f}},/* Storage - SCSI */ {.Data = {0xd9, 0x63, 0x61, 0xba, 0xa1, 0x04, 0x29, 0x4d, 0xb6, 0x05, 0x72, 0xe2, 0xff, 0xb1, 0xdc, 0x7f}},/* Storage - SCSI */
/* {F8615163-DF3E-46c5-913F-F2D2F965ED0E} */ /* {F8615163-DF3E-46c5-913F-F2D2F965ED0E} */
...@@ -100,7 +100,7 @@ const GUID gSupportedDeviceClasses[MAX_NUM_DEVICE_CLASSES_SUPPORTED]= { ...@@ -100,7 +100,7 @@ const GUID gSupportedDeviceClasses[MAX_NUM_DEVICE_CLASSES_SUPPORTED]= {
}; };
/* Channel message dispatch table */ /* Channel message dispatch table */
VMBUS_CHANNEL_MESSAGE_TABLE_ENTRY gChannelMessageTable[ChannelMessageCount]= { static VMBUS_CHANNEL_MESSAGE_TABLE_ENTRY gChannelMessageTable[ChannelMessageCount]= {
{ChannelMessageInvalid, NULL}, {ChannelMessageInvalid, NULL},
{ChannelMessageOfferChannel, VmbusChannelOnOffer}, {ChannelMessageOfferChannel, VmbusChannelOnOffer},
{ChannelMessageRescindChannelOffer, VmbusChannelOnOfferRescind}, {ChannelMessageRescindChannelOffer, VmbusChannelOnOfferRescind},
...@@ -129,7 +129,7 @@ VMBUS_CHANNEL_MESSAGE_TABLE_ENTRY gChannelMessageTable[ChannelMessageCount]= { ...@@ -129,7 +129,7 @@ VMBUS_CHANNEL_MESSAGE_TABLE_ENTRY gChannelMessageTable[ChannelMessageCount]= {
Allocate and initialize a vmbus channel object Allocate and initialize a vmbus channel object
--*/ --*/
VMBUS_CHANNEL* AllocVmbusChannel(void) static VMBUS_CHANNEL* AllocVmbusChannel(void)
{ {
VMBUS_CHANNEL* channel; VMBUS_CHANNEL* channel;
...@@ -193,7 +193,7 @@ static inline void ReleaseVmbusChannel(void* Context) ...@@ -193,7 +193,7 @@ static inline void ReleaseVmbusChannel(void* Context)
Release the resources used by the vmbus channel object Release the resources used by the vmbus channel object
--*/ --*/
void FreeVmbusChannel(VMBUS_CHANNEL* Channel) static void FreeVmbusChannel(VMBUS_CHANNEL* Channel)
{ {
TimerClose(Channel->PollTimer); TimerClose(Channel->PollTimer);
...@@ -665,7 +665,7 @@ VmbusChannelOnVersionResponse( ...@@ -665,7 +665,7 @@ VmbusChannelOnVersionResponse(
This is invoked in the vmbus worker thread context. This is invoked in the vmbus worker thread context.
--*/ --*/
void static void
VmbusOnChannelMessage( VmbusOnChannelMessage(
void *Context void *Context
) )
...@@ -714,7 +714,7 @@ VmbusOnChannelMessage( ...@@ -714,7 +714,7 @@ VmbusOnChannelMessage(
Send a request to get all our pending offers. Send a request to get all our pending offers.
--*/ --*/
int static int
VmbusChannelRequestOffers( VmbusChannelRequestOffers(
void void
) )
...@@ -776,7 +776,7 @@ VmbusChannelRequestOffers( ...@@ -776,7 +776,7 @@ VmbusChannelRequestOffers(
Release channels that are unattached/unconnected ie (no drivers associated) Release channels that are unattached/unconnected ie (no drivers associated)
--*/ --*/
void static void
VmbusChannelReleaseUnattachedChannels( VmbusChannelReleaseUnattachedChannels(
void void
) )
......
...@@ -44,7 +44,7 @@ struct VMBUS_CONNECTION gVmbusConnection = { ...@@ -44,7 +44,7 @@ struct VMBUS_CONNECTION gVmbusConnection = {
Sends a connect request on the partition service connection Sends a connect request on the partition service connection
--*/ --*/
int static int
VmbusConnect( VmbusConnect(
) )
{ {
...@@ -198,7 +198,7 @@ VmbusConnect( ...@@ -198,7 +198,7 @@ VmbusConnect(
Sends a disconnect request on the partition service connection Sends a disconnect request on the partition service connection
--*/ --*/
int static int
VmbusDisconnect( VmbusDisconnect(
void void
) )
...@@ -254,7 +254,7 @@ VmbusDisconnect( ...@@ -254,7 +254,7 @@ VmbusDisconnect(
Get the channel object given its child relative id (ie channel id) Get the channel object given its child relative id (ie channel id)
--*/ --*/
VMBUS_CHANNEL* static VMBUS_CHANNEL*
GetChannelFromRelId( GetChannelFromRelId(
u32 relId u32 relId
) )
...@@ -329,7 +329,7 @@ VmbusProcessChannelEvent( ...@@ -329,7 +329,7 @@ VmbusProcessChannelEvent(
Handler for events Handler for events
--*/ --*/
void static void
VmbusOnEvents( VmbusOnEvents(
void void
) )
...@@ -389,7 +389,7 @@ VmbusOnEvents( ...@@ -389,7 +389,7 @@ VmbusOnEvents(
Send a msg on the vmbus's message connection Send a msg on the vmbus's message connection
--*/ --*/
int static int
VmbusPostMessage( VmbusPostMessage(
void * buffer, void * buffer,
size_t bufferLen size_t bufferLen
...@@ -419,7 +419,7 @@ VmbusPostMessage( ...@@ -419,7 +419,7 @@ VmbusPostMessage(
Send an event notification to the parent Send an event notification to the parent
--*/ --*/
int static int
VmbusSetEvent(u32 childRelId) VmbusSetEvent(u32 childRelId)
{ {
int ret=0; int ret=0;
......
...@@ -348,7 +348,7 @@ HvInit ( ...@@ -348,7 +348,7 @@ HvInit (
Cleanup routine. This routine is called normally during driver unloading or exiting. Cleanup routine. This routine is called normally during driver unloading or exiting.
--*/ --*/
void static void
HvCleanup ( HvCleanup (
void void
) )
...@@ -390,7 +390,7 @@ HvCleanup ( ...@@ -390,7 +390,7 @@ HvCleanup (
involves a hypercall. involves a hypercall.
--*/ --*/
HV_STATUS static HV_STATUS
HvPostMessage( HvPostMessage(
HV_CONNECTION_ID connectionId, HV_CONNECTION_ID connectionId,
HV_MESSAGE_TYPE messageType, HV_MESSAGE_TYPE messageType,
...@@ -444,7 +444,7 @@ HvPostMessage( ...@@ -444,7 +444,7 @@ HvPostMessage(
involves a hypercall. involves a hypercall.
--*/ --*/
HV_STATUS static HV_STATUS
HvSignalEvent( HvSignalEvent(
) )
{ {
...@@ -467,7 +467,7 @@ HvSignalEvent( ...@@ -467,7 +467,7 @@ HvSignalEvent(
Otherwise, we create and initialize the message and event pages. Otherwise, we create and initialize the message and event pages.
--*/ --*/
int static int
HvSynicInit ( HvSynicInit (
u32 irqVector u32 irqVector
) )
...@@ -611,7 +611,7 @@ HvSynicInit ( ...@@ -611,7 +611,7 @@ HvSynicInit (
Cleanup routine for HvSynicInit(). Cleanup routine for HvSynicInit().
--*/ --*/
void static void
HvSynicCleanup( HvSynicCleanup(
void void
) )
......
...@@ -792,7 +792,7 @@ NetVscDisconnectFromVsp( ...@@ -792,7 +792,7 @@ NetVscDisconnectFromVsp(
Callback when the device belonging to this driver is added Callback when the device belonging to this driver is added
--*/ --*/
int static int
NetVscOnDeviceAdd( NetVscOnDeviceAdd(
struct hv_device *Device, struct hv_device *Device,
void *AdditionalInfo void *AdditionalInfo
...@@ -909,7 +909,7 @@ NetVscOnDeviceAdd( ...@@ -909,7 +909,7 @@ NetVscOnDeviceAdd(
Callback when the root bus device is removed Callback when the root bus device is removed
--*/ --*/
int static int
NetVscOnDeviceRemove( NetVscOnDeviceRemove(
struct hv_device *Device struct hv_device *Device
) )
...@@ -981,7 +981,7 @@ NetVscOnDeviceRemove( ...@@ -981,7 +981,7 @@ NetVscOnDeviceRemove(
Perform any cleanup when the driver is removed Perform any cleanup when the driver is removed
--*/ --*/
void static void
NetVscOnCleanup( NetVscOnCleanup(
struct hv_driver *drv struct hv_driver *drv
) )
......
...@@ -203,7 +203,7 @@ GetRingBufferIndices(RING_BUFFER_INFO* RingInfo) ...@@ -203,7 +203,7 @@ GetRingBufferIndices(RING_BUFFER_INFO* RingInfo)
Dump out to console the ring buffer info Dump out to console the ring buffer info
--*/ --*/
void static void
DumpRingInfo(RING_BUFFER_INFO* RingInfo, char *Prefix) DumpRingInfo(RING_BUFFER_INFO* RingInfo, char *Prefix)
{ {
u32 bytesAvailToWrite; u32 bytesAvailToWrite;
...@@ -249,7 +249,7 @@ CopyFromRingBuffer( ...@@ -249,7 +249,7 @@ CopyFromRingBuffer(
Get various debug metrics for the specified ring buffer Get various debug metrics for the specified ring buffer
--*/ --*/
void static void
RingBufferGetDebugInfo( RingBufferGetDebugInfo(
RING_BUFFER_INFO *RingInfo, RING_BUFFER_INFO *RingInfo,
RING_BUFFER_DEBUG_INFO *DebugInfo RING_BUFFER_DEBUG_INFO *DebugInfo
...@@ -281,7 +281,7 @@ RingBufferGetDebugInfo( ...@@ -281,7 +281,7 @@ RingBufferGetDebugInfo(
Get the interrupt mask for the specified ring buffer Get the interrupt mask for the specified ring buffer
--*/ --*/
u32 static u32
GetRingBufferInterruptMask( GetRingBufferInterruptMask(
RING_BUFFER_INFO *rbi RING_BUFFER_INFO *rbi
) )
...@@ -298,7 +298,7 @@ GetRingBufferInterruptMask( ...@@ -298,7 +298,7 @@ GetRingBufferInterruptMask(
Initialize the ring buffer Initialize the ring buffer
--*/ --*/
int static int
RingBufferInit( RingBufferInit(
RING_BUFFER_INFO *RingInfo, RING_BUFFER_INFO *RingInfo,
void *Buffer, void *Buffer,
...@@ -329,7 +329,7 @@ RingBufferInit( ...@@ -329,7 +329,7 @@ RingBufferInit(
Cleanup the ring buffer Cleanup the ring buffer
--*/ --*/
void static void
RingBufferCleanup( RingBufferCleanup(
RING_BUFFER_INFO* RingInfo RING_BUFFER_INFO* RingInfo
) )
...@@ -345,7 +345,7 @@ RingBufferCleanup( ...@@ -345,7 +345,7 @@ RingBufferCleanup(
Write to the ring buffer Write to the ring buffer
--*/ --*/
int static int
RingBufferWrite( RingBufferWrite(
RING_BUFFER_INFO* OutRingInfo, RING_BUFFER_INFO* OutRingInfo,
SG_BUFFER_LIST SgBuffers[], SG_BUFFER_LIST SgBuffers[],
...@@ -435,7 +435,7 @@ RingBufferWrite( ...@@ -435,7 +435,7 @@ RingBufferWrite(
Read without advancing the read index Read without advancing the read index
--*/ --*/
int static int
RingBufferPeek( RingBufferPeek(
RING_BUFFER_INFO* InRingInfo, RING_BUFFER_INFO* InRingInfo,
void* Buffer, void* Buffer,
...@@ -484,7 +484,7 @@ RingBufferPeek( ...@@ -484,7 +484,7 @@ RingBufferPeek(
Read and advance the read index Read and advance the read index
--*/ --*/
int static int
RingBufferRead( RingBufferRead(
RING_BUFFER_INFO* InRingInfo, RING_BUFFER_INFO* InRingInfo,
void * Buffer, void * Buffer,
...@@ -555,7 +555,7 @@ RingBufferRead( ...@@ -555,7 +555,7 @@ RingBufferRead(
Assume there is enough room. Handles wrap-around in dest case only!! Assume there is enough room. Handles wrap-around in dest case only!!
--*/ --*/
u32 static u32
CopyToRingBuffer( CopyToRingBuffer(
RING_BUFFER_INFO *RingInfo, RING_BUFFER_INFO *RingInfo,
u32 StartWriteOffset, u32 StartWriteOffset,
...@@ -596,7 +596,7 @@ CopyToRingBuffer( ...@@ -596,7 +596,7 @@ CopyToRingBuffer(
Assume there is enough room. Handles wrap-around in src case only!! Assume there is enough room. Handles wrap-around in src case only!!
--*/ --*/
u32 static u32
CopyFromRingBuffer( CopyFromRingBuffer(
RING_BUFFER_INFO *RingInfo, RING_BUFFER_INFO *RingInfo,
void * Dest, void * Dest,
......
...@@ -202,7 +202,7 @@ RndisFilterOnSendRequestCompletion( ...@@ -202,7 +202,7 @@ RndisFilterOnSendRequestCompletion(
/* The one and only */ /* The one and only */
RNDIS_FILTER_DRIVER_OBJECT gRndisFilter; static RNDIS_FILTER_DRIVER_OBJECT gRndisFilter;
static inline RNDIS_DEVICE* GetRndisDevice(void) static inline RNDIS_DEVICE* GetRndisDevice(void)
{ {
...@@ -926,7 +926,7 @@ RndisFilterCloseDevice( ...@@ -926,7 +926,7 @@ RndisFilterCloseDevice(
} }
int static int
RndisFilterOnDeviceAdd( RndisFilterOnDeviceAdd(
struct hv_device *Device, struct hv_device *Device,
void *AdditionalInfo void *AdditionalInfo
......
...@@ -315,7 +315,7 @@ StorVscInitialize( ...@@ -315,7 +315,7 @@ StorVscInitialize(
Callback when the device belonging to this driver is added Callback when the device belonging to this driver is added
--*/ --*/
int static int
StorVscOnDeviceAdd( StorVscOnDeviceAdd(
struct hv_device *Device, struct hv_device *Device,
void *AdditionalInfo void *AdditionalInfo
...@@ -527,7 +527,7 @@ static int StorVscChannelInit(struct hv_device *Device) ...@@ -527,7 +527,7 @@ static int StorVscChannelInit(struct hv_device *Device)
} }
int static int
StorVscConnectToVsp( StorVscConnectToVsp(
struct hv_device *Device struct hv_device *Device
) )
...@@ -572,7 +572,7 @@ StorVscConnectToVsp( ...@@ -572,7 +572,7 @@ StorVscConnectToVsp(
Callback when the our device is being removed Callback when the our device is being removed
--*/ --*/
int static int
StorVscOnDeviceRemove( StorVscOnDeviceRemove(
struct hv_device *Device struct hv_device *Device
) )
...@@ -631,7 +631,7 @@ DPRINT_EXIT(STORVSC); ...@@ -631,7 +631,7 @@ DPRINT_EXIT(STORVSC);
} }
*********** */ *********** */
int static int
StorVscOnHostReset( StorVscOnHostReset(
struct hv_device *Device struct hv_device *Device
) )
...@@ -701,7 +701,7 @@ StorVscOnHostReset( ...@@ -701,7 +701,7 @@ StorVscOnHostReset(
Callback to initiate an I/O request Callback to initiate an I/O request
--*/ --*/
int static int
StorVscOnIORequest( StorVscOnIORequest(
struct hv_device *Device, struct hv_device *Device,
struct hv_storvsc_request *Request struct hv_storvsc_request *Request
...@@ -805,7 +805,7 @@ StorVscOnIORequest( ...@@ -805,7 +805,7 @@ StorVscOnIORequest(
Perform any cleanup when the driver is removed Perform any cleanup when the driver is removed
--*/ --*/
void static void
StorVscOnCleanup( StorVscOnCleanup(
struct hv_driver *Driver struct hv_driver *Driver
) )
...@@ -919,7 +919,7 @@ StorVscOnReceive( ...@@ -919,7 +919,7 @@ StorVscOnReceive(
} }
} }
void static void
StorVscOnChannelCallback( StorVscOnChannelCallback(
void * Context void * Context
) )
......
...@@ -24,6 +24,6 @@ ...@@ -24,6 +24,6 @@
#pragma once #pragma once
const char VersionDate[]=__DATE__; static const char VersionDate[]=__DATE__;
const char VersionTime[]=__TIME__; static const char VersionTime[]=__TIME__;
const char VersionDesc[]= "Version 2.0"; static const char VersionDesc[]= "Version 2.0";
...@@ -224,7 +224,7 @@ VmbusGetChannelInfo( ...@@ -224,7 +224,7 @@ VmbusGetChannelInfo(
--*/ --*/
struct hv_device* static struct hv_device*
VmbusChildDeviceCreate( VmbusChildDeviceCreate(
GUID DeviceType, GUID DeviceType,
GUID DeviceInstance, GUID DeviceInstance,
...@@ -248,7 +248,7 @@ VmbusChildDeviceCreate( ...@@ -248,7 +248,7 @@ VmbusChildDeviceCreate(
Registers the child device with the vmbus Registers the child device with the vmbus
--*/ --*/
int static int
VmbusChildDeviceAdd( VmbusChildDeviceAdd(
struct hv_device *ChildDevice) struct hv_device *ChildDevice)
{ {
...@@ -267,7 +267,7 @@ VmbusChildDeviceAdd( ...@@ -267,7 +267,7 @@ VmbusChildDeviceAdd(
Unregisters the child device from the vmbus Unregisters the child device from the vmbus
--*/ --*/
void static void
VmbusChildDeviceRemove( VmbusChildDeviceRemove(
struct hv_device *ChildDevice) struct hv_device *ChildDevice)
{ {
...@@ -346,7 +346,7 @@ VmbusOnDeviceAdd( ...@@ -346,7 +346,7 @@ VmbusOnDeviceAdd(
Callback when the root bus device is removed Callback when the root bus device is removed
--*/ --*/
int VmbusOnDeviceRemove( static int VmbusOnDeviceRemove(
struct hv_device *dev struct hv_device *dev
) )
{ {
...@@ -375,7 +375,7 @@ int VmbusOnDeviceRemove( ...@@ -375,7 +375,7 @@ int VmbusOnDeviceRemove(
Perform any cleanup when the driver is removed Perform any cleanup when the driver is removed
--*/ --*/
void static void
VmbusOnCleanup( VmbusOnCleanup(
struct hv_driver *drv struct hv_driver *drv
) )
...@@ -399,7 +399,7 @@ VmbusOnCleanup( ...@@ -399,7 +399,7 @@ VmbusOnCleanup(
DPC routine to handle messages from the hypervisior DPC routine to handle messages from the hypervisior
--*/ --*/
void static void
VmbusOnMsgDPC( VmbusOnMsgDPC(
struct hv_driver *drv struct hv_driver *drv
) )
...@@ -458,7 +458,7 @@ VmbusOnMsgDPC( ...@@ -458,7 +458,7 @@ VmbusOnMsgDPC(
DPC routine to handle events from the hypervisior DPC routine to handle events from the hypervisior
--*/ --*/
void static void
VmbusOnEventDPC( VmbusOnEventDPC(
struct hv_driver* drv struct hv_driver* drv
) )
...@@ -477,7 +477,7 @@ VmbusOnEventDPC( ...@@ -477,7 +477,7 @@ VmbusOnEventDPC(
ISR routine ISR routine
--*/ --*/
int static int
VmbusOnISR( VmbusOnISR(
struct hv_driver *drv struct hv_driver *drv
) )
......
...@@ -169,7 +169,7 @@ Name: blkvsc_drv_init() ...@@ -169,7 +169,7 @@ Name: blkvsc_drv_init()
Desc: BlkVsc driver initialization. Desc: BlkVsc driver initialization.
--*/ --*/
int blkvsc_drv_init(PFN_DRIVERINITIALIZE pfn_drv_init) static int blkvsc_drv_init(PFN_DRIVERINITIALIZE pfn_drv_init)
{ {
int ret=0; int ret=0;
STORVSC_DRIVER_OBJECT *storvsc_drv_obj=&g_blkvsc_drv.drv_obj; STORVSC_DRIVER_OBJECT *storvsc_drv_obj=&g_blkvsc_drv.drv_obj;
...@@ -214,7 +214,7 @@ Name: blkvsc_drv_exit() ...@@ -214,7 +214,7 @@ Name: blkvsc_drv_exit()
Desc: Desc:
--*/ --*/
void blkvsc_drv_exit(void) static void blkvsc_drv_exit(void)
{ {
STORVSC_DRIVER_OBJECT *storvsc_drv_obj=&g_blkvsc_drv.drv_obj; STORVSC_DRIVER_OBJECT *storvsc_drv_obj=&g_blkvsc_drv.drv_obj;
struct driver_context *drv_ctx=&g_blkvsc_drv.drv_ctx; struct driver_context *drv_ctx=&g_blkvsc_drv.drv_ctx;
...@@ -1390,7 +1390,7 @@ static int blkvsc_revalidate_disk(struct gendisk *gd) ...@@ -1390,7 +1390,7 @@ static int blkvsc_revalidate_disk(struct gendisk *gd)
return 0; return 0;
} }
int blkvsc_getgeo(struct block_device *bd, struct hd_geometry *hg) static int blkvsc_getgeo(struct block_device *bd, struct hd_geometry *hg)
{ {
sector_t total_sectors = get_capacity(bd->bd_disk); sector_t total_sectors = get_capacity(bd->bd_disk);
sector_t cylinder_times_heads=0; sector_t cylinder_times_heads=0;
......
...@@ -90,7 +90,7 @@ Name: netvsc_drv_init() ...@@ -90,7 +90,7 @@ Name: netvsc_drv_init()
Desc: NetVsc driver initialization Desc: NetVsc driver initialization
--*/ --*/
int netvsc_drv_init(PFN_DRIVERINITIALIZE pfn_drv_init) static int netvsc_drv_init(PFN_DRIVERINITIALIZE pfn_drv_init)
{ {
int ret=0; int ret=0;
NETVSC_DRIVER_OBJECT *net_drv_obj=&g_netvsc_drv.drv_obj; NETVSC_DRIVER_OBJECT *net_drv_obj=&g_netvsc_drv.drv_obj;
...@@ -634,7 +634,7 @@ Name: netvsc_drv_exit() ...@@ -634,7 +634,7 @@ Name: netvsc_drv_exit()
Desc: Desc:
--*/ --*/
void netvsc_drv_exit(void) static void netvsc_drv_exit(void)
{ {
NETVSC_DRIVER_OBJECT *netvsc_drv_obj=&g_netvsc_drv.drv_obj; NETVSC_DRIVER_OBJECT *netvsc_drv_obj=&g_netvsc_drv.drv_obj;
struct driver_context *drv_ctx=&g_netvsc_drv.drv_ctx; struct driver_context *drv_ctx=&g_netvsc_drv.drv_ctx;
......
...@@ -161,7 +161,7 @@ void MemUnmapIO(void *virt) ...@@ -161,7 +161,7 @@ void MemUnmapIO(void *virt)
/* iounmap(virt); */ /* iounmap(virt); */
} }
void TimerCallback(unsigned long data) static void TimerCallback(unsigned long data)
{ {
struct osd_timer *t = (struct osd_timer *) data; struct osd_timer *t = (struct osd_timer *) data;
...@@ -269,7 +269,7 @@ unsigned long Virtual2Physical(void * VirtAddr) ...@@ -269,7 +269,7 @@ unsigned long Virtual2Physical(void * VirtAddr)
return pfn << PAGE_SHIFT; return pfn << PAGE_SHIFT;
} }
void WorkItemCallback(struct work_struct *work) static void WorkItemCallback(struct work_struct *work)
{ {
WORKITEM* w = (WORKITEM*)work; WORKITEM* w = (WORKITEM*)work;
......
...@@ -130,7 +130,7 @@ Name: storvsc_drv_init() ...@@ -130,7 +130,7 @@ Name: storvsc_drv_init()
Desc: StorVsc driver initialization. Desc: StorVsc driver initialization.
--*/ --*/
int storvsc_drv_init(PFN_DRIVERINITIALIZE pfn_drv_init) static int storvsc_drv_init(PFN_DRIVERINITIALIZE pfn_drv_init)
{ {
int ret=0; int ret=0;
STORVSC_DRIVER_OBJECT *storvsc_drv_obj=&g_storvsc_drv.drv_obj; STORVSC_DRIVER_OBJECT *storvsc_drv_obj=&g_storvsc_drv.drv_obj;
...@@ -184,7 +184,7 @@ Name: storvsc_drv_exit() ...@@ -184,7 +184,7 @@ Name: storvsc_drv_exit()
Desc: Desc:
--*/ --*/
void storvsc_drv_exit(void) static void storvsc_drv_exit(void)
{ {
STORVSC_DRIVER_OBJECT *storvsc_drv_obj=&g_storvsc_drv.drv_obj; STORVSC_DRIVER_OBJECT *storvsc_drv_obj=&g_storvsc_drv.drv_obj;
struct driver_context *drv_ctx=&g_storvsc_drv.drv_ctx; struct driver_context *drv_ctx=&g_storvsc_drv.drv_ctx;
......
...@@ -311,7 +311,7 @@ Desc: Main vmbus driver initialization routine. Here, we ...@@ -311,7 +311,7 @@ Desc: Main vmbus driver initialization routine. Here, we
- setup the vmbus root device - setup the vmbus root device
- retrieve the channel offers - retrieve the channel offers
--*/ --*/
int vmbus_bus_init(PFN_DRIVERINITIALIZE pfn_drv_init) static int vmbus_bus_init(PFN_DRIVERINITIALIZE pfn_drv_init)
{ {
int ret=0; int ret=0;
unsigned int vector=0; unsigned int vector=0;
...@@ -436,7 +436,7 @@ Name: vmbus_bus_exit() ...@@ -436,7 +436,7 @@ Name: vmbus_bus_exit()
Desc: Terminate the vmbus driver. This routine is opposite of vmbus_bus_init() Desc: Terminate the vmbus driver. This routine is opposite of vmbus_bus_init()
--*/ --*/
void vmbus_bus_exit(void) static void vmbus_bus_exit(void)
{ {
VMBUS_DRIVER_OBJECT *vmbus_drv_obj=&g_vmbus_drv.drv_obj; VMBUS_DRIVER_OBJECT *vmbus_drv_obj=&g_vmbus_drv.drv_obj;
struct vmbus_driver_context *vmbus_drv_ctx=&g_vmbus_drv; struct vmbus_driver_context *vmbus_drv_ctx=&g_vmbus_drv;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment