Cleanup making internal functions static

This commit is contained in:
Ali Mashtizadeh 2015-02-16 13:23:21 -08:00
parent 2bb2090c93
commit 0d335ebe20
7 changed files with 18 additions and 18 deletions

View File

@ -168,7 +168,7 @@ Debug_SymbolToInt(const char *s)
extern DebugCommand __kdbgcmd_start[];
extern DebugCommand __kdbgcmd_end[];
void
static void
Debug_Help(int argc, const char *argv[])
{
int i;
@ -187,7 +187,7 @@ Debug_Help(int argc, const char *argv[])
REGISTER_DBGCMD(help, "Display the list of commands", Debug_Help);
void
static void
Debug_Echo(int argc, const char *argv[])
{
int i;
@ -201,7 +201,7 @@ Debug_Echo(int argc, const char *argv[])
REGISTER_DBGCMD(echo, "Echo arguments", Debug_Echo);
void
static void
Debug_Dump(int argc, const char *argv[])
{
uint64_t off, len;
@ -220,7 +220,7 @@ Debug_Dump(int argc, const char *argv[])
REGISTER_DBGCMD(dump, "Dump a region of memory", Debug_Dump);
void
static void
Debug_Disasm(int argc, const char *argv[])
{
uintptr_t off;

View File

@ -54,7 +54,7 @@ Disk_Flush(Disk *disk, void *buf, SGArray *sga, DiskCB cb, void *arg)
return disk->flush(disk, buf, sga, cb, arg);
}
void
static void
Debug_Disks(int argc, const char *argv[])
{
Disk *d;
@ -67,7 +67,7 @@ Debug_Disks(int argc, const char *argv[])
REGISTER_DBGCMD(disks, "List disks", Debug_Disks);
void
static void
Debug_DumpDisk(int argc, const char *argv[])
{
uint64_t ctrlNo, diskNo;

View File

@ -70,7 +70,7 @@ DiskCache_Init()
cacheAlloc = 0;
}
int
static int
DiskCacheLookup(Disk *disk, uint64_t diskOffset, DiskCacheEntry **entry)
{
struct CacheHashTable *table;
@ -93,7 +93,7 @@ DiskCacheLookup(Disk *disk, uint64_t diskOffset, DiskCacheEntry **entry)
return 0;
}
int
static int
DiskCacheAlloc(Disk *disk, uint64_t diskOffset, DiskCacheEntry **entry)
{
struct CacheHashTable *table;
@ -206,7 +206,7 @@ DiskCache_Write(DiskCacheEntry *entry)
return Disk_Write(entry->disk, buf, &sga, NULL, NULL);
}
void
static void
Debug_DiskCache(int argc, const char *argv[])
{
kprintf("Hits: %lld\n", cacheHit);

View File

@ -205,7 +205,7 @@ KTime_GetEpochNS()
return epoch;
}
void
static void
Debug_Date()
{
UnixEpoch epoch = KTime_GetEpoch();
@ -222,7 +222,7 @@ Debug_Date()
REGISTER_DBGCMD(date, "Print date", Debug_Date);
void
static void
Debug_Ticks()
{
kprintf("Ticks Per Second: %lu\n", ticksPerSecond);

View File

@ -186,7 +186,7 @@ PAlloc_AllocPage()
return (void *)pg;
}
void
static void
PAllocFreePage(void *region)
{
FreePage *pg = (FreePage *)region;
@ -228,7 +228,7 @@ PAlloc_Release(void *pg)
Spinlock_Unlock(&pallocLock);
}
void
static void
Debug_PAllocStats(int argc, const char *argv[])
{
kprintf("Total Pages: %llu\n", totalPages);
@ -238,7 +238,7 @@ Debug_PAllocStats(int argc, const char *argv[])
REGISTER_DBGCMD(pallocstats, "Page allocator statistics", Debug_PAllocStats);
void
static void
Debug_PAllocDump(int argc, const char *argv[])
{
struct FreePage *it;

View File

@ -108,7 +108,7 @@ Slab_Free(Slab *slab, void *region)
Spinlock_Unlock(&slab->lock);
}
void
static void
Debug_Slabs(int argc, const char *argv[])
{
Slab *slab;

View File

@ -585,7 +585,7 @@ Thread_Dump(Thread *thr)
}
}
void
static void
Debug_Threads(int argc, const char *argv[])
{
int c = CPU();
@ -613,7 +613,7 @@ Debug_Threads(int argc, const char *argv[])
REGISTER_DBGCMD(threads, "Display list of threads", Debug_Threads);
void
static void
Debug_Processes(int argc, const char *argv[])
{
Process *proc;
@ -631,7 +631,7 @@ Debug_Processes(int argc, const char *argv[])
REGISTER_DBGCMD(processes, "Display list of processes", Debug_Processes);
void
static void
Debug_ThreadInfo(int argc, const char *argv[])
{
}