diff --git a/vmmon-only/common/task.c b/vmmon-only/common/task.c index 5d34cf4d..f3752069 100644 --- a/vmmon-only/common/task.c +++ b/vmmon-only/common/task.c @@ -544,7 +544,7 @@ Task_Terminate(void) *----------------------------------------------------------------------------- */ -Selector +static Selector TaskGetFlatWriteableDataSegment(void) { DTR hostGDTR; diff --git a/vmmon-only/common/vmx86.c b/vmmon-only/common/vmx86.c index 86e52fb4..cf64b123 100644 --- a/vmmon-only/common/vmx86.c +++ b/vmmon-only/common/vmx86.c @@ -49,7 +49,7 @@ #include "x86svm.h" #include "x86cpuid_asm.h" #if defined(__linux__) -#include +#include #endif #include "perfctr.h" #include "x86vtinstr.h" @@ -696,7 +696,7 @@ Vmx86FreeCrossPages(VMDriver *vm) *----------------------------------------------------------------------------- */ -void +static void Vmx86FreeVMDriver(VMDriver *vm) { Vmx86_Free(vm->ptRootMpns); @@ -729,7 +729,7 @@ Vmx86FreeVMDriver(VMDriver *vm) *----------------------------------------------------------------------------- */ -VMDriver * +static VMDriver * Vmx86AllocVMDriver(uint32 numVCPUs) { VMDriver *vm = Vmx86_Calloc(1, sizeof *vm, TRUE); diff --git a/vmmon-only/linux/driver.c b/vmmon-only/linux/driver.c index 3d8b7228..ab8e2dc4 100644 --- a/vmmon-only/linux/driver.c +++ b/vmmon-only/linux/driver.c @@ -267,7 +267,7 @@ LinuxDriverInitTSCkHz(void) *---------------------------------------------------------------------- */ -int +static int LinuxDriverInit(void) { int retval; @@ -335,7 +335,7 @@ LinuxDriverInit(void) *---------------------------------------------------------------------- */ -void +static void LinuxDriverExit(void) { /* diff --git a/vmmon-only/linux/hostif.c b/vmmon-only/linux/hostif.c index b9e3d30c..4ed1d5ad 100644 --- a/vmmon-only/linux/hostif.c +++ b/vmmon-only/linux/hostif.c @@ -2922,7 +2922,7 @@ HostIF_CallOnEachCPU(void (*func)(void*), // IN: function to call *----------------------------------------------------------------------------- */ -Bool +static Bool HostIFCheckTrackedMPN(VMDriver *vm, // IN: The VM instance MPN mpn) // IN: The MPN { @@ -3042,7 +3042,7 @@ HostIF_ReadPhysical(VMDriver *vm, // IN: The VM instance *---------------------------------------------------------------------- */ -int +static int HostIFWritePhysicalWork(MA ma, // MA to be written to VA64 addr, // src data to write Bool kernelBuffer, // is the buffer in kernel space? @@ -3201,7 +3201,7 @@ HostIF_GetCurrentPCPU(void) *---------------------------------------------------------------------- */ -int +static int HostIFStartTimer(Bool rateChanged, //IN: Did rate change? unsigned int rate) //IN: current clock rate { diff --git a/vmnet-only/bridge.c b/vmnet-only/bridge.c index bc4727c8..be8140e8 100644 --- a/vmnet-only/bridge.c +++ b/vmnet-only/bridge.c @@ -1411,7 +1411,7 @@ VNetBridgeComputeHeaderPos(struct sk_buff *skb) // IN: buffer to examine *---------------------------------------------------------------------- */ -void +static void VNetBridgeSendLargePacket(struct sk_buff *skb, // IN: packet to split VNetBridge *bridge) // IN: bridge { diff --git a/vmnet-only/driver.c b/vmnet-only/driver.c index f314ff2e..fe5923d8 100644 --- a/vmnet-only/driver.c +++ b/vmnet-only/driver.c @@ -50,18 +50,6 @@ #include "vmnetInt.h" -/* - * Initialization and creation routines from other files. - * Putting them here reduces the need for so many header files. - */ - -extern int VNetUserIf_Create(VNetPort **ret); -extern int VNetNetIf_Create(char *devName, VNetPort **ret, int hubNum); -extern int VNetBridge_Create(char *devName, uint32 flags, VNetJack *hubJack, - VNetPort **ret); -extern int VNetUserListener_Create(uint32 classMask, VNetJack *hubJack, VNetPort **ret); - - /* * Structure for cycle detection of host interfaces. This * struct is only used by VNetCycleDetectIf(). @@ -295,7 +283,7 @@ VNetRemovePortFromList(const VNetPort *port) // IN: port to remove from list *---------------------------------------------------------------------- */ -int +static int vmnet_init_module(void) { int retval; @@ -374,7 +362,7 @@ vmnet_init_module(void) *---------------------------------------------------------------------- */ -void +static void vmnet_cleanup_module(void) { unregister_chrdev(VNET_MAJOR_NUMBER, "vmnet"); diff --git a/vmnet-only/vnetInt.h b/vmnet-only/vnetInt.h index f6a90a13..71a6e310 100644 --- a/vmnet-only/vnetInt.h +++ b/vmnet-only/vnetInt.h @@ -219,6 +219,18 @@ extern int VNetProc_Init(void); extern void VNetProc_Cleanup(void); +/* + * Initialization and creation routines from other files. + * Putting them here reduces the need for so many header files. + */ + +extern int VNetUserIf_Create(VNetPort **ret); +extern int VNetNetIf_Create(char *devName, VNetPort **ret, int hubNum); +extern int VNetBridge_Create(const char *devName, uint32 flags, VNetJack *hubJack, + VNetPort **ret); +extern int VNetUserListener_Create(uint32 classMask, VNetJack *hubJack, VNetPort **ret); + + /* *---------------------------------------------------------------------- *